Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Implant_Lin_Geacon

Finds Geacon samples based on specific strings

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

Ce que détecte cette règle

Finds Geacon samples based on specific strings

Cibles : ELF Linux.

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

implant-lin-geacon.yarDetection Rule License 1.1
rule SEKOIA_Implant_Lin_Geacon : FILE
{
	meta:
		description = "Finds Geacon samples based on specific strings"
		author = "Sekoia.io"
		id = "ad71522e-270b-47d0-9c01-081f05a2b72a"
		date = "2024-01-11"
		modified = "2024-12-19"
		reference = "https://www.sentinelone.com/blog/geacon-brings-cobalt-strike-capabilities-to-macos-threat-actors/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/implant_lin_geacon.yar#L1-L35"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "c6fa5815bf618eb588d511f18231042944dee20c1b13096c44910d43ca552bfa"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$gea01 = "geacon/config.init" ascii
		$gea02 = "geacon_pro-master/config/config.go" ascii
		$gea03 = "geacon_plus-main/config/config.go" ascii
		$gea04 = "command type %d is not support by geacon now" ascii
		$gea05 = "main/sysinfo.GeaconID" ascii
		$str01 = "command.StealToken" ascii
		$str02 = "command.MakeToken" ascii
		$str03 = "command/misc.go" ascii
		$str04 = "config/c2profile.go" ascii
		$str05 = "crypt.AesCBCDecrypt" ascii
		$str06 = "packet.File_Browse" ascii
		$str07 = "packet.FirstBlood" ascii
		$str08 = "packet.ParseCommandShell" ascii
		$str09 = "packet.ParseCommandUpload" ascii
		$str10 = "packet.PushResult" ascii
		$str11 = "sysinfo.GetComputerName" ascii
		$str12 = "sysinfo.IsOSX64" ascii
		$str13 = "util..inittask" ascii

	condition:
		uint32( 0 ) == 0x464C457F and ( ( 1 of ( $gea* ) and 2 of ( $str* ) ) or 8 of ( $str* ) )
}

Chaînes (18 motifs)

IdentifiantTypeValeurModificateurs
$gea01texte"geacon/config.init"ascii
$gea02texte"geacon_pro-master/config/config.go"ascii
$gea03texte"geacon_plus-main/config/config.go"ascii
$gea04texte"command type %d is not support by geacon now"ascii
$gea05texte"main/sysinfo.GeaconID"ascii
$str01texte"command.StealToken"ascii
$str02texte"command.MakeToken"ascii
$str03texte"command/misc.go"ascii
$str04texte"config/c2profile.go"ascii
$str05texte"crypt.AesCBCDecrypt"ascii
$str06texte"packet.File_Browse"ascii
$str07texte"packet.FirstBlood"ascii
$str08texte"packet.ParseCommandShell"ascii
$str09texte"packet.ParseCommandUpload"ascii
$str10texte"packet.PushResult"ascii
$str11texte"sysinfo.GetComputerName"ascii
$str12texte"sysinfo.IsOSX64"ascii
$str13texte"util..inittask"ascii

Condition

uint32( 0 ) == 0x464C457F and ( ( 1 of ( $gea* ) and 2 of ( $str* ) ) or 8 of ( $str* ) )

En clair (Heuristique)

  • Le fichier doit commencer par l’en-tête ELF — un exécutable Linux/Unix.
  • Au moins 1 motifs de ( $gea* ) doivent être trouvés.
  • Au moins 2 motifs de ( $str* ) doivent être trouvés.
  • Au moins 8 motifs de ( $str* ) 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 : 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: ad71522e-270b-47d0-9c01-081f05a2b72a

Métadonnées

version1.0
classificationTLP:CLEAR

Tags:FILE