Skip to content

Commit f7f8cc1

Browse files
EzLuckynasbench
andauthored
Merge PR #6051 from @EzLucky - Update Vim GTFOBin Abuse - Linux
update: Vim GTFOBin Abuse - Linux - Increase coverage and enhance logic --------- Co-authored-by: Nasreddine Bencherchali <monsteroffire2@gmail.com>
1 parent 1935ff1 commit f7f8cc1

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

rules/linux/process_creation/proc_creation_lnx_vim_shell_execution.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ description: |
55
Detects the use of "vim" and it's siblings commands to execute a shell or proxy commands.
66
Such behavior may be associated with privilege escalation, unauthorized command execution, or to break out from restricted environments.
77
references:
8+
- https://gtfobins.github.io/gtfobins/vi/
89
- https://gtfobins.github.io/gtfobins/vim/
910
- https://gtfobins.github.io/gtfobins/rvim/
1011
- https://gtfobins.github.io/gtfobins/vimdiff/
11-
author: Nasreddine Bencherchali (Nextron Systems)
12+
author: Nasreddine Bencherchali (Nextron Systems), Luc Génaux
1213
date: 2022-12-28
13-
modified: 2024-09-02
14+
modified: 2026-06-05
1415
tags:
16+
- attack.execution
1517
- attack.discovery
18+
- attack.t1059
1619
- attack.t1083
1720
logsource:
1821
category: process_creation
@@ -21,21 +24,28 @@ detection:
2124
selection_img:
2225
Image|endswith:
2326
- '/rvim'
27+
- '/vi'
2428
- '/vim'
2529
- '/vimdiff'
2630
CommandLine|contains:
27-
- ' --cmd'
28-
- ' -c '
31+
- ' --cmd '
32+
- ' -c'
2933
selection_cli:
3034
CommandLine|contains:
3135
- ':!/'
36+
- ':!$'
37+
- ':!..'
3238
- ':lua '
3339
- ':py '
40+
- ':shell'
3441
- '/bin/bash'
3542
- '/bin/dash'
3643
- '/bin/fish'
3744
- '/bin/sh'
45+
- '/bin/csh'
46+
- '/bin/ksh'
3847
- '/bin/zsh'
48+
- '/bin/tmux'
3949
condition: all of selection_*
4050
falsepositives:
4151
- Unknown

0 commit comments

Comments
 (0)