Aller au contenu

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_APT_NK_Andariel_Lilithrat_Variant

Detects a variant of the Lilith RAT malware family

MalwareLilithratSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compile avec YARA-X
Auteur
CISA.gov (modified by Florian Roth, Nextron Systems)
Date
2024-07-25
Modifiée
2024-07-26
Score / Qualité
80 / 85

Ce que détecte cette règle

Detects a variant of the Lilith RAT malware family

Famille de malware associée : Lilithrat.

Cibles : PE Windows.

Elle définit 10 motifs (10 texte, 0 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

mal-apt-nk-andariel-lilithrat-variant.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_APT_NK_Andariel_Lilithrat_Variant : FILE
{
	meta:
		description = "Detects a variant of the Lilith RAT malware family"
		author = "CISA.gov (modified by Florian Roth, Nextron Systems)"
		id = "916a289b-db7b-5f09-9d3e-589c3f09101d"
		date = "2024-07-25"
		modified = "2024-07-26"
		reference = "https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-207a"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_nk_andariel_jul24.yar#L143-L178"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "3ce68908468ff85683b081842fa4faa579fbf6f7dc1a7fab5dcf7eac63d90aea"
		score = 80
		quality = 85
		tags = "FILE"

	strings:
		$lilith_1 = "Initiate a CMD session first." ascii
		$lilith_2 = "CMD is not open" ascii
		$lilith_3 = "Couldn't write command" ascii
		$lilith_4 = "Couldn't write to CMD: CMD not open" ascii
		$unique_1 = "Upload Error!" ascii
		$unique_2 = "ERROR: Downloading is already running!" ascii
		$unique_3 = "ERROR: Unable to open file:" ascii
		$unique_4 = "General error" ascii
		$unique_5 = "CMD error" ascii
		$unique_6 = "killing self" ascii

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 150KB and ( all of ( $lilith_* ) or 4 of ( $unique_* ) or 1 of ( $lilith_4 , $unique_2 ) )
}

Chaînes (10 motifs)

IdentifiantTypeValeurModificateurs
$lilith_1texte"Initiate a CMD session first."ascii
$lilith_2texte"CMD is not open"ascii
$lilith_3texte"Couldn't write command"ascii
$lilith_4texte"Couldn't write to CMD: CMD not open"ascii
$unique_1texte"Upload Error!"ascii
$unique_2texte"ERROR: Downloading is already running!"ascii
$unique_3texte"ERROR: Unable to open file:"ascii
$unique_4texte"General error"ascii
$unique_5texte"CMD error"ascii
$unique_6texte"killing self"ascii

Condition

uint16( 0 ) == 0x5a4d and filesize < 150KB and ( all of ( $lilith_* ) or 4 of ( $unique_* ) or 1 of ( $lilith_4 , $unique_2 ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Le fichier doit faire moins de 150KB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Tous les motifs de ( $lilith_* ) doivent être trouvés.
  • Au moins 4 motifs de ( $unique_* ) doivent être trouvés.
  • Au moins 1 motifs de ( $lilith_4 , $unique_2 ) doivent être trouvés.

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

Licence et attribution

Auteur : CISA.gov (modified by Florian Roth, Nextron Systems)

Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

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: 916a289b-db7b-5f09-9d3e-589c3f09101d

Tags:FILE