Sigma rule: Vim GTFOBin Abuse - Linux
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-415b5d71351f, updated 2026-06-05T00:00:00.000Z.
Rule
- Title
- Vim GTFOBin Abuse - Linux
- Status
- test
- Level
- high
- Author
- Nasreddine Bencherchali (Nextron Systems), Luc Génaux
- Date
- 2022-12-28
- Modified
- 2026-06-05
- File
- rules/linux/process_creation/proc_creation_lnx_vim_shell_execution.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the use of "vim" and it's siblings commands to execute a shell or proxy commands.
Such behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.
Log source
- product
- linux
- category
- process_creation
Detection
selection_img:
Image|endswith:
- '/rvim'
- '/vi'
- '/vim'
- '/vimdiff'
CommandLine|contains:
- ' --cmd '
- ' -c'
selection_cli:
CommandLine|contains:
- ':!/'
- ':!$'
- ':!..'
- ':lua '
- ':py '
- ':shell'
- '/bin/bash'
- '/bin/dash'
- '/bin/fish'
- '/bin/sh'
- '/bin/csh'
- '/bin/ksh'
- '/bin/zsh'
- '/bin/tmux'
condition: all of selection_*False positives (as the rule lists them)
- Unknown
Tags
- attack.execution
- attack.discovery
- attack.t1059
- attack.t1083
MITRE ATT&CK ids this rule names
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/
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_vim_shell_execution.yml
Sources and licences
SigmaHQ
"Vim GTFOBin Abuse - Linux" by Nasreddine Bencherchali (Nextron Systems), Luc Génaux (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_vim_shell_execution.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Vim GTFOBin Abuse - Linux",
entity page, dataset version ref-415b5d71351f, updated 2026-06-05T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/7ab8f73a-fcff-428b-84aa-6a5ff7877dea (accessed 2026-11-03).
Underlying source: SigmaHQ rule 7ab8f73a-fcff-428b-84aa-6a5ff7877dea, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.