Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Apt_Sofacy_Graphitemalware_Generic

Detects APT28 graphite malware based on strings

APT / AkteurGraphiteSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X
Autor
Sekoia.io
Datum
2022-09-27
Geändert
2024-12-19
Score / Qualität
75 / 80

Was diese Regel erkennt

Detects APT28 graphite malware based on strings

Zugehörige Malware-Familie: Graphite.

Ziele: Windows-PE.

Sie definiert 7 Muster (7 Text, 0 Hex, 0 Regex). Verwendete YARA-Module: pe.

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

Enthält die Imports, die zum eigenständigen Kompilieren nötig sind.

apt-sofacy-graphitemalware-generic.yarDetection Rule License 1.1
import "pe"

rule SEKOIA_Apt_Sofacy_Graphitemalware_Generic : FILE
{
	meta:
		description = "Detects APT28 graphite malware based on strings"
		author = "Sekoia.io"
		id = "6b51cfa3-4a7d-4c2a-9fd9-f129b8a18466"
		date = "2022-09-27"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_sofacy_graphitemalware_generic.yar#L3-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "f4c994c36768bae6d6e3b5aeefb634e485ab7b483a693781f29d5ff44c71996f"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "Microsoft Enhanced RSA and AES Cryptographic Provider" wide
		$ = "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)" wide
		$ = "%s %04d sp%1d.%1d %s"
		$ = "%s%c%s%c%s"
		$ = "InternetReadFile"
		$ = "ObtainUserAgentString"
		$ = "CryptImportKey"

	condition:
		uint16be( 0 ) == 0x4d5a and filesize < 100KB and ( all of them or pe.imphash ( ) == "c56c322548250651361aef7dacf93eaf" )
}

Strings (7 Muster)

BezeichnerTypWertModifikatoren
$Text"Microsoft Enhanced RSA and AES Cryptographic Provider"wide
$Text"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"wide
$Text"%s %04d sp%1d.%1d %s"
$Text"%s%c%s%c%s"
$Text"InternetReadFile"
$Text"ObtainUserAgentString"
$Text"CryptImportKey"

Bedingung

uint16be( 0 ) == 0x4d5a and filesize < 100KB and ( all of them or pe.imphash ( ) == "c56c322548250651361aef7dacf93eaf" )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Die Datei muss kleiner als 100KB sein (eine günstige Grenze, die große Dateien ausschließt).
  • Alle Muster aus der Regel müssen treffen.
  • Nutzt das Modul pe.
  • Prüft den PE-Import-Hash (imphash).

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: Sekoia.io

Quell-Repository: SEKOIA.IO Community @ a438a5901a

Lizenz: Detection Rule License 1.1 (Repository-Lizenz)

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: 6b51cfa3-4a7d-4c2a-9fd9-f129b8a18466

Metadaten

version1.0
classificationTLP:CLEAR

Tags:FILE

Weitere Graphite-Regeln