Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Tool_Enum4Linux_Strings

Detects enum4linux based on strings

Hack toolSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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:
		description = "Detects enum4linux based on strings"
		author = "Sekoia.io"
		id = "6b3094fe-1292-4da3-a1ed-9e255be531da"
		date = "2024-02-02"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_enum4linux_strings.yar#L1-L22"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "d3f7ddbdfb679b34777298aec84464d55fac7600b855526a7f13d8c8f17ab888"
		score = 75
		quality = 80
		tags = ""
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$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 them

In 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.

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

version1.0
classificationTLP:CLEAR