YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_SUSP_RAR_NTFS_ADS
Detects RAR archive with NTFS alternate data stream
- Auteur
- Proofpoint
- Date
- 2024-12-17
- Modifiée
- 2025-01-17
- Score / Qualité
- 70 / 83
Ce que détecte cette règle
Detects RAR archive with NTFS alternate data stream
Elle définit 3 motifs (1 texte, 2 hex, 0 regex).
YARA-X indique : warning[text_as_hex]: hex pattern could be written as text literal
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
rule SIGNATURE_BASE_SUSP_RAR_NTFS_ADS : HUNTING FILE
{
meta:
= "Detects RAR archive with NTFS alternate data stream"
= "Proofpoint"
= "ca2b5904-b3d3-53cd-a973-6f30f0831a94"
= "2024-12-17"
= "2025-01-17"
= "https://www.proofpoint.com/us/blog/threat-insight/hidden-plain-sight-ta397s-new-attack-chain-delivers-espionage-rats"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_ta397_dec24.yar#L82-L110"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "feec47858379c29300d249d1693f68dc085300f493891d1a9d4ea83b8db6e3c3"
= "53a653aae9678075276bdb8ccf5eaff947f9121f73b8dcf24858c0447922d0b1"
= "bcca4771e8f940ce8cfcff08284545fec6163df549e1fb589d89ca3fa335f04c"
= 70
= 83
= "HUNTING, FILE"
= "hunting"
strings:
$rar_magic = {52 61 72 21}
$ads = {
03 // Header Type -> Service Header
23 // Header flags
[17-20] // Flags and extra data area
00 // Windows
03 // Length of name = STM = 3
53 54 4d // STM NTFS alternate data stream
[1-2] // variable int (vint) for size of the stream name -> 1-2 bytes should be enough to take into account
07 // Data type = Service data = Service header data array
3a // Start of the ADS name -> start with colon ":"
}
$neg = "Zone.Identifier"
condition:
$rar_magic at 0 and $ads and not $neg in ( @ads [ 1 ] .. @ads [ 1 ] + 15 )
}
Chaînes (3 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $rar_magic | hex | {52 61 72 21} | |
| $ads | hex | { 03 // Header Type -> Service Header 23 // Header flags [17-20] // Flags and extra data a … | |
| $neg | texte | "Zone.Identifier" |
Condition
$rar_magic at 0 and $ads and not $neg in ( @ads [ 1 ] .. @ads [ 1 ] + 15 )En clair (Heuristique)
- Le motif $rar_magic doit se trouver à l’offset 0.
- Le motif $neg doit se trouver dans la plage @ads [ 1 ] .. @ads [ 1 ] + 15.
- Le motif $neg ne doit PAS être présent.
- Le motif $ads 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é.
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).
- feec47858379c29300d249d1693f68dc085300f493891d1a9d4ea83b8db6e3c3
- 53a653aae9678075276bdb8ccf5eaff947f9121f73b8dcf24858c0447922d0b1
Licence et attribution
Auteur : Proofpoint
Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence : Detection Rule License 1.1 (licence du dépôt)
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: ca2b5904-b3d3-53cd-a973-6f30f0831a94
Métadonnées
| category | hunting |
|---|
Règles liées
- Suspect / chasseSignature Base (Florian Roth / Nextron)· Proofpoint· 2024-11-27
- APT / acteurSignature Base (Florian Roth / Nextron)· Proofpoint· 2024-11-20
- GénériqueSignature Base (Florian Roth / Nextron)· Proofpoint· 2024-11-27