YARA · SEKOIA.IO Community
SEKOIA_Tool_Enum4Linux_Strings
Detects enum4linux based on strings
- Author
- Sekoia.io
- Date
- 2024-02-02
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects enum4linux based on strings
It defines 8 patterns (8 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
tool-enum4linux-strings.yarDetection Rule License 1.1
rule SEKOIA_Tool_Enum4Linux_Strings
{
meta:
= "Detects enum4linux based on strings"
= "Sekoia.io"
= "6b3094fe-1292-4da3-a1ed-9e255be531da"
= "2024-02-02"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_enum4linux_strings.yar#L1-L22"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "d3f7ddbdfb679b34777298aec84464d55fac7600b855526a7f13d8c8f17ab888"
= 75
= 80
= ""
= "1.0"
= "TLP:CLEAR"
strings:
$ = "my $os_info = `$command`;"
$ = "($global_workgroup) = $os_info =~"
$ = "sub enum_groups {"
$ = "if ($shares =~ /NT_STATUS_ACCESS_DENIED/) {"
$ = "Can't open share list file $shares_file"
$ = "my $users = `$command`;"
$ = "my @shares = <SHARES>;"
$ = "foreach my $grouptype (\"builtin\", \"domain\") {"
condition:
6 of them
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "my $os_info = `$command`;" | |
| $ | text | "($global_workgroup) = $os_info =~" | |
| $ | text | "sub enum_groups {" | |
| $ | text | "if ($shares =~ /NT_STATUS_ACCESS_DENIED/) {" | |
| $ | text | "Can't open share list file $shares_file" | |
| $ | text | "my $users = `$command`;" | |
| $ | text | "my @shares = <SHARES>;" | |
| $ | text | "foreach my $grouptype (\"builtin\", \"domain\") {" |
Condition
6 of themIn plain words (Heuristic)
- At least 6 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.
References
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: 6b3094fe-1292-4da3-a1ed-9e255be531da
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Related rules
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-09-06
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-02-29
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-12-05
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-11-15
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-08-23
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-02-08
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-09-09