{"id":"e2326866-609f-4015-aea9-7ec634e8aa04","title":"Shell Execution via Rsync - Linux","description":"Detects the use of the \"rsync\" utility to execute a shell. Such behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.\n","author":"Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.), Florian Roth","status":"experimental","level":"high","date":"2024-09-02","modified":"2025-01-18","tags":["attack.execution","attack.t1059"],"technique_ids":["T1059"],"logsource":{"category":"process_creation","product":"linux"},"falsepositives":["Legitimate cases in which \"rsync\" is used to execute a shell"],"references":["https://gtfobins.github.io/gtfobins/rsync/#shell"],"source_path":"rules/linux/process_creation/proc_creation_lnx_rsync_shell_execution.yml","source_sha256":"7e112d12f801268e1b5fa2d42be75bd525b1daa921ea00c49a8dfde85bda99c5","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_rsync_shell_execution.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Shell Execution via Rsync - Linux\nid: e2326866-609f-4015-aea9-7ec634e8aa04\nstatus: experimental\ndescription: |\n    Detects the use of the \"rsync\" utility to execute a shell. Such behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.\nreferences:\n    - https://gtfobins.github.io/gtfobins/rsync/#shell\nauthor: Li Ling, Andy Parkidomo, Robert Rakowski, Blake Hartstein (Bloomberg L.P.), Florian Roth\ndate: 2024-09-02\nmodified: 2025-01-18\ntags:\n    - attack.execution\n    - attack.t1059\nlogsource:\n    category: process_creation\n    product: linux\ndetection:\n    selection_img:\n        Image|endswith:\n            - '/rsync'\n            - '/rsyncd'\n        CommandLine|contains: ' -e '\n    selection_cli:\n        CommandLine|contains:\n            - '/ash '\n            - '/bash '\n            - '/dash '\n            - '/csh '\n            - '/sh '\n            - '/zsh '\n            - '/tcsh '\n            - '/ksh '\n            - \"'ash \"\n            - \"'bash \"\n            - \"'dash \"\n            - \"'csh \"\n            - \"'sh \"\n            - \"'zsh \"\n            - \"'tcsh \"\n            - \"'ksh \"\n    condition: all of selection_*\nfalsepositives:\n    - Legitimate cases in which \"rsync\" is used to execute a shell\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059","id":"T1059","name":"Command and Scripting Interpreter","page":"techniques/enterprise/T1059/"}],"data_path":"data/detection-rules/e2326866-609f-4015-aea9-7ec634e8aa04.json","kind":"sigma"}
