YARA · SEKOIA.IO Community
SEKOIA_Apt_37_Chinotto
Detects obfuscation and string of APT37 stealer
- Author
- Sekoia.io
- Date
- 2023-02-27
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects obfuscation and string of APT37 stealer
Associated malware family: Chinotto.
Targets: Windows PE, Linux ELF.
It defines 3 patterns (0 text, 3 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SEKOIA_Apt_37_Chinotto : FILE
{
meta:
= "Detects obfuscation and string of APT37 stealer"
= "Sekoia.io"
= "eff8fd11-dc7a-4011-b083-181d0cca8790"
= "2023-02-27"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_37_chinotto.yar#L1-L50"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "feab7940559392bbf38f29267509340569160e0a3b257fd86e5c65ae087ea014"
= "c9d2c8b6011a53e68e4a6c6e51142cef3348951d0b379e49b1a65a1891538df5"
= "2f5be3773e7e3a2f6806cdef154adfabc454c0e57a49e437c5889ce09b739302"
= "5bf170c95ca0e2079653d694f783b5bcd38f274ea875f67f0b60db4ac552a66c"
= "6fad04c836bc923f12ebaec8d8fb0c7091b044bf6f5c97e36d7bf46b8494f978"
= "64fe964f342acca6d85d247c4f67503e4222a58dfc5c644dedc2006a4b356d39"
= "6e216b265ea391f71f2a609df995f36b9ba8b17c8859f6d8e4ce4a076d351efd"
= "70dcc03cde3dd5c5ec6a6a240190cfb51667aaba9c867e20281e8dfc43afa891"
= "5053390bde150b771f8efe344b692c6c5718ba9203a4b23f5323af1ee9060ff2"
= "089e4dfd8b25afe596eff05baae86156a4e3243c84faa15416cff31a5120e107"
= "37e096338a78cb06d6236cb5a04cf125f191871ded3c9421f08a37890a095eb8"
= "b90a2b0249407b271a5d849fe82cbf4e9a31c2c6259caf515c9be3897e327414"
= "8f4751ed22619b04009c4b85ec45c8140b570835ca4c638c9e6019e7b7eb66c7"
= "a721f102b4c9568379649f8004fa4eb460240145ab829d8ce3740dafb52d13c8"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$chunk_1 = {
C7 85 ?? ?? ?? ?? ?? ?? ?? 00
C7 85 ?? ?? ?? ?? ?? ?? ?? 00
33 C0
EB 03
8D 49 00
8B 8C 85 ?? ?? ?? ??
3B 8C 85 ?? ?? ?? ??
}
$chunk_2 = {
C7 84 24 ?? ?? ?? ?? ?? ?? 0? 00
C7 84 24 ?? ?? ?? ?? ?? ?? 0? 00
33 C0
EB 0D
8D A4 24 00 00 00 00
8D 9B 00 00 00 00
8B 8C 84 ?? ?? ?? ??
3B 8C 84 ?? ?? ?? ??
}
$movs_zip_dir_start = { C7 45 ?? 5A 69 70 20 C7 45 ?? 44 69 72 20 C7 45 ?? 53 74 61 72 C7 45 ?? 74 20 2D 20}
condition:
( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 1MB and ( $chunk_1 or $chunk_2 ) and $movs_zip_dir_start
}
Strings (3 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $chunk_1 | hex | { C7 85 ?? ?? ?? ?? ?? ?? ?? 00 C7 85 ?? ?? ?? ?? ?? ?? ?? 00 33 C0 EB 03 8D 49 00 8B 8C 85 ?? ?? ?? ?? … | |
| $chunk_2 | hex | { C7 84 24 ?? ?? ?? ?? ?? ?? 0? 00 C7 84 24 ?? ?? ?? ?? ?? ?? 0? 00 33 C0 EB 0D 8D A4 24 00 00 00 00 8D 9B 00 00 … | |
| $movs_zip_dir_start | hex | { C7 45 ?? 5A 69 70 20 C7 45 ?? 44 69 72 20 C7 45 ?? 53 74 61 72 C7 45 ?? 74 20 2D 20} |
Condition
( uint32be( 0 ) == 0x7f454c46 or uint16be( 0 ) == 0x4d5a ) and filesize < 1MB and ( $chunk_1 or $chunk_2 ) and $movs_zip_dir_startIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must start with the ELF header — a Linux/Unix executable.
- The file must be smaller than 1MB (a cheap guard that skips large files).
- Pattern $chunk_1 must be present.
- Pattern $chunk_2 must be present.
- Pattern $movs_zip_dir_start must be present.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- feab7940559392bbf38f29267509340569160e0a3b257fd86e5c65ae087ea014
- c9d2c8b6011a53e68e4a6c6e51142cef3348951d0b379e49b1a65a1891538df5
- 2f5be3773e7e3a2f6806cdef154adfabc454c0e57a49e437c5889ce09b739302
- 5bf170c95ca0e2079653d694f783b5bcd38f274ea875f67f0b60db4ac552a66c
- 6fad04c836bc923f12ebaec8d8fb0c7091b044bf6f5c97e36d7bf46b8494f978
- 64fe964f342acca6d85d247c4f67503e4222a58dfc5c644dedc2006a4b356d39
- 6e216b265ea391f71f2a609df995f36b9ba8b17c8859f6d8e4ce4a076d351efd
- 70dcc03cde3dd5c5ec6a6a240190cfb51667aaba9c867e20281e8dfc43afa891
- 5053390bde150b771f8efe344b692c6c5718ba9203a4b23f5323af1ee9060ff2
- 089e4dfd8b25afe596eff05baae86156a4e3243c84faa15416cff31a5120e107
- 37e096338a78cb06d6236cb5a04cf125f191871ded3c9421f08a37890a095eb8
- b90a2b0249407b271a5d849fe82cbf4e9a31c2c6259caf515c9be3897e327414
- 8f4751ed22619b04009c4b85ec45c8140b570835ca4c638c9e6019e7b7eb66c7
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: eff8fd11-dc7a-4011-b083-181d0cca8790
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2023-03-06
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27