Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Hacktool_Earthworm_Strings

Detects Mac/Win/Linux EarthWorm based on strings

HacktoolEarthwormSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X
Autor
Sekoia.io
Datum
2022-02-08
Geändert
2024-12-19
Score / Qualität
75 / 80

Was diese Regel erkennt

Detects Mac/Win/Linux EarthWorm based on strings

Zugehörige Malware-Familie: Earthworm.

Ziele: Windows-PE, Linux-ELF, macOS-Mach-O.

Sie definiert 4 Muster (4 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

hacktool-earthworm-strings.yarDetection Rule License 1.1
rule SEKOIA_Hacktool_Earthworm_Strings : FILE
{
	meta:
		description = "Detects Mac/Win/Linux EarthWorm based on strings"
		author = "Sekoia.io"
		id = "6c9b0225-8c41-49f9-9745-245bc7ef942f"
		date = "2022-02-08"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/hacktool_earthworm_strings.yar#L1-L22"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "0460c62fefc3d594ca758a37fbe1716182ffdca2920fedd32a707f7117702176"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "the read url is %s"
		$ = "--> %3d <-- (close)used tunnel %d , unused tunnel %d"
		$ = "ssocksd 0.0.0.0:%d <--[%4d usec]--> socks server"
		$ = "could not create one way tunnel"

	condition:
		( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a or uint32be( 0 ) == 0xcffaedfe ) and filesize < 100KB and 3 of them
}

Strings (4 Muster)

BezeichnerTypWertModifikatoren
$Text"the read url is %s"
$Text"--> %3d <-- (close)used tunnel %d , unused tunnel %d"
$Text"ssocksd 0.0.0.0:%d <--[%4d usec]--> socks server"
$Text"could not create one way tunnel"

Bedingung

( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a or uint32be( 0 ) == 0xcffaedfe ) and filesize < 100KB and 3 of them

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Die Datei muss mit dem ELF-Header beginnen — eine Linux/Unix-Programmdatei.
  • Die Datei muss mit einer Mach-O-/Fat-Signatur beginnen — eine macOS-Programmdatei.
  • Die Datei muss kleiner als 100KB sein (eine günstige Grenze, die große Dateien ausschließt).
  • Mindestens 3 Muster aus der Regel müssen treffen.

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: Sekoia.io

Quell-Repository: SEKOIA.IO Community @ a438a5901a

Lizenz: Detection Rule License 1.1 (Repository-Lizenz)

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: 6c9b0225-8c41-49f9-9745-245bc7ef942f

Metadaten

version1.0
classificationTLP:CLEAR

Tags:FILE

Weitere Earthworm-Regeln