Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Malware_Swordldr

Detects Swordldr. Maybe chunk_1 is too restrictive

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compile avec YARA-X
Auteur
Sekoia.io
Date
2024-09-25
Modifiée
2024-12-19
Score / Qualité
75 / 80

Ce que détecte cette règle

Detects Swordldr. Maybe chunk_1 is too restrictive

Cibles : PE Windows.

Elle définit 10 motifs (0 texte, 10 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

malware-swordldr.yarDetection Rule License 1.1
rule SEKOIA_Malware_Swordldr : FILE
{
	meta:
		description = "Detects Swordldr. Maybe chunk_1 is too restrictive"
		author = "Sekoia.io"
		id = "4068c007-50f4-4913-a352-4a40dd4e452b"
		date = "2024-09-25"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/malware_swordldr.yar#L1-L29"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "d0cc758082e303275cbb8cd6b2048eff"
		hash = "7aa57da44718cd88f7d37b33a5d3ad74"
		logic_hash = "9e408181b9122925c0ff9efdaed688e659596b58b9108c0f280d9bc1624d73cb"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = { CC CC CC CC B0 01 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 02 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 03 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 04 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 05 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 06 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 07 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 08 C3 CC CC CC CC }
		$ = { CC CC CC CC B0 09 C3 CC CC CC CC }
		$chunk_1 = {
        48 63 44 24 40 44 8B 44 86 04 48 63 44 24 40 45 23 ?? 45 03 C0 8B 54 86 04 48 63 44 24 40 41 2B D0 41 03 ?? 89 54 86 04
        }

	condition:
		uint16be( 0 ) == 0x4d5a and 4 of them and #chunk_1 > 5
}

Chaînes (10 motifs)

IdentifiantTypeValeurModificateurs
$hex{ CC CC CC CC B0 01 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 02 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 03 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 04 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 05 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 06 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 07 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 08 C3 CC CC CC CC }
$hex{ CC CC CC CC B0 09 C3 CC CC CC CC }
$chunk_1hex{ 48 63 44 24 40 44 8B 44 86 04 48 63 44 24 40 45 23 ?? 45 03 C0 8B 54 86 04 48 63 44 24 40 41 2B D0 41 03 ?? 89 54 86 04 }

Condition

uint16be( 0 ) == 0x4d5a and 4 of them and #chunk_1 > 5

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 4 motifs de la règle doivent être trouvés.
  • Le motif $chunk_1 doit apparaître > 5 fois.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

Hashes d’échantillons

Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).

  • d0cc758082e303275cbb8cd6b2048eff
  • 7aa57da44718cd88f7d37b33a5d3ad74

Licence et attribution

Auteur : Sekoia.io

Dépôt source : SEKOIA.IO Community @ a438a5901a

Licence : Detection Rule License 1.1 (licence du dépôt)

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: 4068c007-50f4-4913-a352-4a40dd4e452b

Métadonnées

version1.0
classificationTLP:CLEAR

Tags:FILE