{"id":"7ab8f73a-fcff-428b-84aa-6a5ff7877dea","title":"Vim GTFOBin Abuse - Linux","description":"Detects the use of \"vim\" and it's siblings commands to execute a shell or proxy commands.\nSuch behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.\n","author":"Nasreddine Bencherchali (Nextron Systems), Luc Génaux","status":"test","level":"high","date":"2022-12-28","modified":"2026-06-05","tags":["attack.execution","attack.discovery","attack.t1059","attack.t1083"],"technique_ids":["T1059","T1083"],"logsource":{"category":"process_creation","product":"linux"},"falsepositives":["Unknown"],"references":["https://gtfobins.github.io/gtfobins/vi/","https://gtfobins.github.io/gtfobins/vim/","https://gtfobins.github.io/gtfobins/rvim/","https://gtfobins.github.io/gtfobins/vimdiff/"],"source_path":"rules/linux/process_creation/proc_creation_lnx_vim_shell_execution.yml","source_sha256":"13805f6867c77130862866e5ed24bef49db9b404745abfc9fcea8ae9b9a5400b","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_vim_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: Vim GTFOBin Abuse - Linux\nid: 7ab8f73a-fcff-428b-84aa-6a5ff7877dea\nstatus: test\ndescription: |\n    Detects the use of \"vim\" and it's siblings commands to execute a shell or proxy commands.\n    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/vi/\n    - https://gtfobins.github.io/gtfobins/vim/\n    - https://gtfobins.github.io/gtfobins/rvim/\n    - https://gtfobins.github.io/gtfobins/vimdiff/\nauthor: Nasreddine Bencherchali (Nextron Systems), Luc Génaux\ndate: 2022-12-28\nmodified: 2026-06-05\ntags:\n    - attack.execution\n    - attack.discovery\n    - attack.t1059\n    - attack.t1083\nlogsource:\n    category: process_creation\n    product: linux\ndetection:\n    selection_img:\n        Image|endswith:\n            - '/rvim'\n            - '/vi'\n            - '/vim'\n            - '/vimdiff'\n        CommandLine|contains:\n            - ' --cmd '\n            - ' -c'\n    selection_cli:\n        CommandLine|contains:\n            - ':!/'\n            - ':!$'\n            - ':!..'\n            - ':lua '\n            - ':py '\n            - ':shell'\n            - '/bin/bash'\n            - '/bin/dash'\n            - '/bin/fish'\n            - '/bin/sh'\n            - '/bin/csh'\n            - '/bin/ksh'\n            - '/bin/zsh'\n            - '/bin/tmux'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\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/"},{"key":"enterprise/T1083","id":"T1083","name":"File and Directory Discovery","page":"techniques/enterprise/T1083/"}],"data_path":"data/detection-rules/7ab8f73a-fcff-428b-84aa-6a5ff7877dea.json","kind":"sigma"}
