Aller au contenu

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_APT_KE3CHANG_TMPFILE

Detects Strings left in TMP Files created by K3CHANG Backdoor Ketrican

APT / acteurKetricanSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compile avec YARA-X
Auteur
Markus Neis, Swisscom
Date
2020-06-18
Modifiée
2023-12-05
Score / Qualité
75 / 85

Ce que détecte cette règle

Detects Strings left in TMP Files created by K3CHANG Backdoor Ketrican

Famille de malware associée : Ketrican.

Elle définit 7 motifs (7 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

apt-ke3chang-tmpfile.yarDetection Rule License 1.1
rule SIGNATURE_BASE_APT_KE3CHANG_TMPFILE : APT KE3CHANG TMPFILE FILE
{
	meta:
		description = "Detects Strings left in TMP Files created by K3CHANG Backdoor Ketrican"
		author = "Markus Neis, Swisscom"
		id = "84d411af-ea3d-5862-8c2f-7caca60c1b66"
		date = "2020-06-18"
		modified = "2023-12-05"
		reference = "https://app.any.run/tasks/a96f4f9d-c27d-490b-b5d3-e3be0a1c93e9/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_ke3chang.yar#L1-L21"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "4ef11e84d5203c0c425d1a76d4bf579883d40577c2e781cdccc2cc4c8a8d346f"
		logic_hash = "75c97fe2eeb82e09f52e98d76bd529824f171da4c802b5febc1036314d8145f0"
		score = 75
		quality = 85
		tags = "APT, KE3CHANG, TMPFILE, FILE"

	strings:
		$pps1 = "PSParentPath             : Microsoft.PowerShell.Core\\Registry::HKEY_CURRENT_USE" fullword ascii
		$pps2 = "PSPath                   : Microsoft.PowerShell.Core\\Registry::HKEY_CURRENT_USE" fullword ascii
		$psp1 = ": Microsoft.PowerShell.Core\\Registry" ascii
		$s4 = "PSChildName  : PhishingFilter" fullword ascii
		$s1 = "DisableFirstRunCustomize : 2" fullword ascii
		$s7 = "PSChildName  : 3" fullword ascii
		$s8 = "2500         : 3" fullword ascii

	condition:
		uint16( 0 ) == 0x5350 and filesize < 1KB and $psp1 and 1 of ( $pps* ) and 1 of ( $s* )
}

Chaînes (7 motifs)

IdentifiantTypeValeurModificateurs
$pps1texte"PSParentPath : Microsoft.PowerShell.Core\\Registry::HKEY_CURRENT_USE"fullword ascii
$pps2texte"PSPath : Microsoft.PowerShell.Core\\Registry::HKEY_CURRENT_USE"fullword ascii
$psp1texte": Microsoft.PowerShell.Core\\Registry"ascii
$s4texte"PSChildName : PhishingFilter"fullword ascii
$s1texte"DisableFirstRunCustomize : 2"fullword ascii
$s7texte"PSChildName : 3"fullword ascii
$s8texte"2500 : 3"fullword ascii

Condition

uint16( 0 ) == 0x5350 and filesize < 1KB and $psp1 and 1 of ( $pps* ) and 1 of ( $s* )

En clair (Heuristique)

  • Le fichier doit faire moins de 1KB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Au moins 1 motifs de ( $pps* ) doivent être trouvés.
  • Au moins 1 motifs de ( $s* ) doivent être trouvés.
  • Le motif $psp1 doit être présent.

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

  • 4ef11e84d5203c0c425d1a76d4bf579883d40577c2e781cdccc2cc4c8a8d346f

Licence et attribution

Auteur : Markus Neis, Swisscom

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: 84d411af-ea3d-5862-8c2f-7caca60c1b66

Tags:APTKE3CHANGTMPFILEFILE

Plus de règles Ketrican