YARA · SEKOIA.IO Community
SEKOIA_Apt_Sofacy_Graphitemalware_Generic
Detects APT28 graphite malware based on strings
- 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.
import "pe"
rule SEKOIA_Apt_Sofacy_Graphitemalware_Generic : FILE
{
meta:
= "Detects APT28 graphite malware based on strings"
= "Sekoia.io"
= "6b51cfa3-4a7d-4c2a-9fd9-f129b8a18466"
= "2022-09-27"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_sofacy_graphitemalware_generic.yar#L3-L25"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "f4c994c36768bae6d6e3b5aeefb634e485ab7b483a693781f29d5ff44c71996f"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $ | 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.
Referenzen
Lizenz & Namensnennung
Autor: Sekoia.io
Quell-Repository: SEKOIA.IO Community @ a438a5901a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2022-01-26
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / AkteurSEKOIA.IO Community· Sekoia.io· 2024-09-23