YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_SUSP_PY_Shell_Spawn_Jun23_1
Detects suspicious one-liner to spawn a shell using Python
Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
- Author
- Florian Roth
- Date
- 2023-06-15
- Modified
- 2023-12-05
- Score / Quality
- 70 / 85
What this rule detects
Detects suspicious one-liner to spawn a shell using Python
It defines 1 patterns (1 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
susp-py-shell-spawn-jun23-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_PY_Shell_Spawn_Jun23_1 : SCRIPT
{
meta:
= "Detects suspicious one-liner to spawn a shell using Python"
= "Florian Roth"
= "15fd2c9a-c425-5d4d-9209-fd3826074d6c"
= "2023-06-15"
= "2023-12-05"
= "https://www.mandiant.com/resources/blog/barracuda-esg-exploited-globally"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_barracuda_esg_unc4841_jun23.yar#L119-L131"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "63e94447930d5a00399de753076facbfb2bf18dd8c815f01aaefd14678aea034"
= 70
= 85
= "SCRIPT"
strings:
$x1 = "python -c import pty;pty.spawn(\"/bin/" ascii
condition:
1 of them
}
Strings (1 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "python -c import pty;pty.spawn(\"/bin/" | ascii |
Condition
1 of themIn plain words (Heuristic)
- At least 1 patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
Licence & attribution
Author: Florian Roth
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 15fd2c9a-c425-5d4d-9209-fd3826074d6c
Tags:SCRIPT
Related rules
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-06-15
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-11-09
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-12-10
- ExploitSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-12-10
- Suspicious / huntingSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23