Aller au contenu

YARA · Embee Research

EMBEERESEARCH_Win_Cobalt_Strike_Loader_Shellcode_Jun_2023

Detection of an encoder observed with Cobalt Strike shellcode

Outil offensifCobalt StrikeEmbee ResearchDetection Rule License 1.1Compile avec YARA-X
Auteur
Matthew @ Embee_research
Date
2023-07-03
Score / Qualité
75 / 75

Ce que détecte cette règle

Detection of an encoder observed with Cobalt Strike shellcode

Famille de malware associée : Cobalt Strike.

Elle définit 3 motifs (1 texte, 2 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

win-cobalt-strike-loader-shellcode-jun-2023.yarDetection Rule License 1.1
rule EMBEERESEARCH_Win_Cobalt_Strike_Loader_Shellcode_Jun_2023 : FILE
{
	meta:
		description = "Detection of an encoder observed with Cobalt Strike shellcode"
		author = "Matthew @ Embee_research"
		id = "ea52b9e7-f2bd-5c9f-9ee1-506baa48be84"
		date = "2023-07-03"
		modified = "2023-07-03"
		reference = "https://github.com/embee-research/Yara-detection-rules/"
		source_url = "https://github.com/embee-research/Yara-detection-rules//blob/ac56d6f6fd2a30c8cb6e5c0455d6519210a8b0f4/Rules/win_cobalt_shellcode_encoder_jun_2023.yar#L1-L21"
		license_url = "N/A"
		logic_hash = "42b4b9ab681f3164168de84e76bcd8161865fa9e5871d70a6de534b23896e4f0"
		score = 75
		quality = 75
		tags = "FILE"
		vendor = ""

	strings:
		$get_enc_offset = {8b 88 c0 00 00 00 8b 90 c4 00 00 00 48 8d b0 c8 00 00 00}
		$decode_loop = {ac 83 e1 03 d2 c8 ff c1 aa ff ca 75 f3}
		$b64_initial_bytes = "SInISIlMJAiLiMAAAACLkMQAAABIjbDIAAAA" wide ascii

	condition:
		(( $get_enc_offset and $decode_loop ) or $b64_initial_bytes ) and filesize < 10000KB
}

Chaînes (3 motifs)

IdentifiantTypeValeurModificateurs
$get_enc_offsethex{8b 88 c0 00 00 00 8b 90 c4 00 00 00 48 8d b0 c8 00 00 00}
$decode_loophex{ac 83 e1 03 d2 c8 ff c1 aa ff ca 75 f3}
$b64_initial_bytestexte"SInISIlMJAiLiMAAAACLkMQAAABIjbDIAAAA"wide ascii

Condition

(( $get_enc_offset and $decode_loop ) or $b64_initial_bytes ) and filesize < 10000KB

En clair (Heuristique)

  • Le fichier doit faire moins de 10000KB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Le motif $get_enc_offset doit être présent.
  • Le motif $decode_loop doit être présent.
  • Le motif $b64_initial_bytes 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

Licence et attribution

Auteur : Matthew @ Embee_research

Dépôt source : Embee Research @ ac56d6f6fd

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: ea52b9e7-f2bd-5c9f-9ee1-506baa48be84

Métadonnées

vendor

Tags:FILE

Plus de règles Cobalt Strike