Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Trojan_Win_Bbtok_Lnk_Sep23

Finds BBTok installation LNK file

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-09-26
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Finds BBTok installation LNK file

It defines 4 patterns (3 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

trojan-win-bbtok-lnk-sep23.yarDetection Rule License 1.1
rule SEKOIA_Trojan_Win_Bbtok_Lnk_Sep23 : FILE
{
	meta:
		description = "Finds BBTok installation LNK file"
		author = "Sekoia.io"
		id = "b1d5dae6-d92f-4a4a-ae90-528cdb3e9e4c"
		date = "2023-09-26"
		modified = "2024-12-19"
		reference = "https://research.checkpoint.com/2023/behind-the-scenes-of-bbtok-analyzing-a-bankers-server-side-components/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/trojan_win_bbtok_lnk_sep23.yar#L1-L21"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "32bf07e3740399105359b62d8a612dfa731b024e06c9104b71b496919b5efe9e"
		logic_hash = "5783487585dde1314c485bdcf3942b7e8b572c0689522ea136240833d2a64f5b"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$lnk = {4C 00 00 00}
		$str01 = "%ProgramFiles(x86)%\\Microsoft\\Edge\\Application\\msedge.exe" ascii wide
		$str02 = ".pdf /Y & start" wide
		$str03 = "\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe -nologo" wide

	condition:
		all of them and filesize < 10KB
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$lnkhex{4C 00 00 00}
$str01text"%ProgramFiles(x86)%\\Microsoft\\Edge\\Application\\msedge.exe"ascii wide
$str02text".pdf /Y & start"wide
$str03text"\\Microsoft.NET\\Framework\\v4.0.30319\\MSBuild.exe -nologo"wide

Condition

all of them and filesize < 10KB

In plain words (Heuristic)

  • The file must be smaller than 10KB (a cheap guard that skips large files).
  • All patterns in the rule 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

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • 32bf07e3740399105359b62d8a612dfa731b024e06c9104b71b496919b5efe9e

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

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: b1d5dae6-d92f-4a4a-ae90-528cdb3e9e4c

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE