YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_Shellcode_Apihashing_FIN8_1
Detects FIN8 Shellcode APIHashing
- Author
- Frank Boldewin (@r3c0nst)
- Date
- 2021-03-16
- Modified
- 2023-12-05
- Score / Quality
- 75 / 85
What this rule detects
Detects FIN8 Shellcode APIHashing
It defines 5 patterns (0 text, 5 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
shellcode-apihashing-fin8-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_Shellcode_Apihashing_FIN8_1
{
meta:
= "Detects FIN8 Shellcode APIHashing"
= "Frank Boldewin (@r3c0nst)"
= "bca5601c-2998-545b-8dd0-ec3c861e6291"
= "2021-03-16"
= "2023-12-05"
= "https://www.bitdefender.com/files/News/CaseStudies/study/394/Bitdefender-PR-Whitepaper-BADHATCH-creat5237-en-EN.pdf"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_fin8.yar#L1-L19"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "5d47119a588aa69b3e241618d6dbb9df6117a6751bbff39a1f95340bc26611a7"
= 75
= 85
= ""
strings:
$APIHashing32bit1 = {81 F7 99 5D 52 69 81 F3 30 D7 00 AB}
$APIHashing32bit2 = {68 F2 55 03 88 68 65 19 6D 1E}
$APIHashing32bit3 = {68 9B 59 27 21 C1 E9 17 33 4C 24 10 68 37 5C 32 F4}
$APIHashing64bit1 = {49 BF 65 19 6D 1E F2 55 03 88 49 BE 37 5C 32 F4 9B 59 27 21}
$APIHashing64bit2 = {48 B8 99 5D 52 69 30 D7 00 AB}
condition:
all of ( $APIHashing32bit* ) or all of ( $APIHashing64bit* )
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $APIHashing32bit1 | hex | {81 F7 99 5D 52 69 81 F3 30 D7 00 AB} | |
| $APIHashing32bit2 | hex | {68 F2 55 03 88 68 65 19 6D 1E} | |
| $APIHashing32bit3 | hex | {68 9B 59 27 21 C1 E9 17 33 4C 24 10 68 37 5C 32 F4} | |
| $APIHashing64bit1 | hex | {49 BF 65 19 6D 1E F2 55 03 88 49 BE 37 5C 32 F4 9B 59 27 21} | |
| $APIHashing64bit2 | hex | {48 B8 99 5D 52 69 30 D7 00 AB} |
Condition
all of ( $APIHashing32bit* ) or all of ( $APIHashing64bit* )In plain words (Heuristic)
- All patterns in ( $APIHashing32bit* ) must match.
- All patterns in ( $APIHashing64bit* ) must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
Licence & attribution
Author: Frank Boldewin (@r3c0nst)
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
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: bca5601c-2998-545b-8dd0-ec3c861e6291
Related rules
- Hack toolSignature Base (Florian Roth / Nextron)· Frank Boldewin (@r3c0nst)· 2022-11-22
- MalwareSignature Base (Florian Roth / Nextron)· Frank Boldewin (@r3c0nst)· 2020-08-17
- MalwareSignature Base (Florian Roth / Nextron)· Frank Boldewin (@r3c0nst)· 2020-05-17