Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Apt_Cottonsandstorm_Win_Implant

Detects a simple win implant used by Cotton Sandstorm

APT / AkteurSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X
Autor
Sekoia.io
Datum
2024-11-05
Geändert
2024-12-19
Score / Qualität
75 / 80

Was diese Regel erkennt

Detects a simple win implant used by Cotton Sandstorm

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

apt-cottonsandstorm-win-implant.yarDetection Rule License 1.1
rule SEKOIA_Apt_Cottonsandstorm_Win_Implant : FILE
{
	meta:
		description = "Detects a simple win implant used by Cotton Sandstorm"
		author = "Sekoia.io"
		id = "04a5255c-f9bb-4612-b0e2-ed0326867055"
		date = "2024-11-05"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_cottonsandstorm_win_implant.yar#L1-L24"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "f797d71ed07d6e05556300e4ce0f2927"
		logic_hash = "dcb25ee236ca52f23cc6bfdbcedcbc6d407e88f06341e684f202a59954733ade"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "DIR =>" wide
		$ = "type=machines&md5=" wide
		$ = "File =>" wide
		$ = "&ip=" wide fullword
		$ = "&un=" wide fullword
		$ = "&cp=" wide fullword
		$ = "myFile\";filename=" ascii
		$ = "ifB75BcjsRBhy2et" ascii

	condition:
		uint16be( 0 ) == 0x4d5a and 4 of them and filesize < 500KB
}

Strings (8 Muster)

BezeichnerTypWertModifikatoren
$Text"DIR =>"wide
$Text"type=machines&md5="wide
$Text"File =>"wide
$Text"&ip="wide fullword
$Text"&un="wide fullword
$Text"&cp="wide fullword
$Text"myFile\";filename="ascii
$Text"ifB75BcjsRBhy2et"ascii

Bedingung

uint16be( 0 ) == 0x4d5a and 4 of them and filesize < 500KB

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Die Datei muss kleiner als 500KB sein (eine günstige Grenze, die große Dateien ausschließt).
  • Mindestens 4 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

Proben-Hashes

Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).

  • f797d71ed07d6e05556300e4ce0f2927

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: 04a5255c-f9bb-4612-b0e2-ed0326867055

Metadaten

version1.0
classificationTLP:CLEAR

Tags:FILE