YARA rule 'reverse_shell': Reverse shell patterns in scripts or source code [malware]
Critical
- Category
- YARA Match
- Content
y command — it simply honors the user-set skip counter before resetting. --- ## 1. INSTANT BLOCK List **These patterns require IMMEDIATE STOP. No exceptions. No "let me just..."** ### Unix/Linux/macOS | Pattern | Why | |---------|-----| | `rm -rf ~/` or `rm -rf ~/*` | Deletes entire home directory | | `rm -rf /` | Destroys entire system | | `:(){ :\|:& };:` | Fork bomb, crashes system | | `bash -i >& /dev/tcp/` | Reverse shell, attacker access | | `nc -e /bin/sh` | Reverse shell variant | | `curl/wget ... \| bash` | Executes untrusted remote code | | `curl -d @~/.ssh/` | Exfiltrates SSH keys | | `dd of=/dev/sd*` | Overwrites disk | | `mkfs` on system drives | Formats drives | | `> /dev/sda` | Destroys disk | | `sudo rm -rf /` | Privileged system destruction | | `chmod -R 777 /` | World-writable system | #### Shell Wrappers (v1.2) | Pattern | Why | |---------|-----| | `bash -c "rm -rf ..."` | Hides recursive delete in shell wrapper | | `sh -c "... \| bash"` | Hides curl/wget pi- Confidence
- 85% confidence
- Finding
- YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
