Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_Shellcode_Apihashing_FIN8_1

Detects FIN8 Shellcode APIHashing

GenericSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
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:
		description = "Detects FIN8 Shellcode APIHashing"
		author = "Frank Boldewin (@r3c0nst)"
		id = "bca5601c-2998-545b-8dd0-ec3c861e6291"
		date = "2021-03-16"
		modified = "2023-12-05"
		reference = "https://www.bitdefender.com/files/News/CaseStudies/study/394/Bitdefender-PR-Whitepaper-BADHATCH-creat5237-en-EN.pdf"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_fin8.yar#L1-L19"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "5d47119a588aa69b3e241618d6dbb9df6117a6751bbff39a1f95340bc26611a7"
		score = 75
		quality = 85
		tags = ""

	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)

IdentifierTypeValueModifiers
$APIHashing32bit1hex{81 F7 99 5D 52 69 81 F3 30 D7 00 AB}
$APIHashing32bit2hex{68 F2 55 03 88 68 65 19 6D 1E}
$APIHashing32bit3hex{68 9B 59 27 21 C1 E9 17 33 4C 24 10 68 37 5C 32 F4}
$APIHashing64bit1hex{49 BF 65 19 6D 1E F2 55 03 88 49 BE 37 5C 32 F4 9B 59 27 21}
$APIHashing64bit2hex{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.

Open in editor

References

Licence & attribution

Author: Frank Boldewin (@r3c0nst)

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: bca5601c-2998-545b-8dd0-ec3c861e6291