Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Downloader_Win_Search

'Search.exe' script used by APT42

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

What this rule detects

'Search.exe' script used by APT42

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

downloader-win-search.yarDetection Rule License 1.1
rule SEKOIA_Downloader_Win_Search : FILE
{
	meta:
		description = "'Search.exe' script used by APT42"
		author = "Sekoia.io"
		id = "8094ddda-6294-4dee-93cb-de79aaed1ec6"
		date = "2024-08-23"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/downloader_win_search.yar#L1-L18"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "a29fa85ecfc0e5554c21f3b9db185de97b3504517403f4aa102adbd2c46dc1bf"
		hash = "f83e2b3be2e6db20806a4b9b216edc7508fa81ce60bf59436d53d3ae435b6060"
		logic_hash = "1b25f04d1d2c9b7bdc7e0bd17d2f2876c27f9c4acb3a2afca6a4df531e769740"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "C:\\Users\\pc\\source\\repos\\Search\\Search\\obj\\Debug\\Search.pdb"

	condition:
		uint16be( 0 ) == 0x4d5a and all of them
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$text"C:\\Users\\pc\\source\\repos\\Search\\Search\\obj\\Debug\\Search.pdb"

Condition

uint16be( 0 ) == 0x4d5a and all of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • 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).

  • a29fa85ecfc0e5554c21f3b9db185de97b3504517403f4aa102adbd2c46dc1bf
  • f83e2b3be2e6db20806a4b9b216edc7508fa81ce60bf59436d53d3ae435b6060

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: 8094ddda-6294-4dee-93cb-de79aaed1ec6

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE