YARA · SEKOIA.IO Community
SEKOIA_Bot_Lin_Zerobot_Dec22
Detect the linux Zerobot implant using specific strings
- Author
- Sekoia.io
- Date
- 2022-08-05
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detect the linux Zerobot implant using specific strings
It defines 15 patterns (15 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
bot-lin-zerobot-dec22.yarDetection Rule License 1.1
rule SEKOIA_Bot_Lin_Zerobot_Dec22 : FILE
{
meta:
= "Detect the linux Zerobot implant using specific strings"
= "Sekoia.io"
= "ce028297-a526-4a6a-95db-8762fb5895f6"
= "2022-08-05"
= "2024-12-19"
= "https://www.fortinet.com/blog/threat-research/zerobot-new-go-based-botnet-campaign-targets-multiple-vulnerabilities"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/bot_lin_zerobot_dec22.yar#L1-L30"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "0f4faba9873fa360615b20bc637ecb40f56e6c7f65153f61a762e378320f94c1"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "rm -rf "
$str02 = "wget http://"
$str03 = "curl -O http://"
$str04 = "tftp"
$str05 = "-c get"
$str06 = "ftpget -v -u anonymous -P"
$str07 = "chmod 777"
$str08 = "nohup"
$str09 = "/dev/null 2>&1 &"
$str10 = "zero."
$str11 = "ppc64le"
$str12 = "riscv64"
$str13 = "s390x"
$str14 = "rm -rf ~/.bash_history"
$str15 = "history -c"
condition:
11 of ( $str* ) and filesize < 10KB
}
Strings (15 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "rm -rf " | |
| $str02 | text | "wget http://" | |
| $str03 | text | "curl -O http://" | |
| $str04 | text | "tftp" | |
| $str05 | text | "-c get" | |
| $str06 | text | "ftpget -v -u anonymous -P" | |
| $str07 | text | "chmod 777" | |
| $str08 | text | "nohup" | |
| $str09 | text | "/dev/null 2>&1 &" | |
| $str10 | text | "zero." | |
| $str11 | text | "ppc64le" | |
| $str12 | text | "riscv64" | |
| $str13 | text | "s390x" | |
| $str14 | text | "rm -rf ~/.bash_history" | |
| $str15 | text | "history -c" |
Condition
11 of ( $str* ) and filesize < 10KBIn plain words (Heuristic)
- The file must be smaller than 10KB (a cheap guard that skips large files).
- At least 11 patterns in ( $str* ) 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: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
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: ce028297-a526-4a6a-95db-8762fb5895f6
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20