Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Implant_Win_Flagpro

Detect the Flagpro malware used by Blacktech

MalwareFlagproSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-04-22
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detect the Flagpro malware used by Blacktech

Associated malware family: Flagpro.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

implant-win-flagpro.yarDetection Rule License 1.1
rule SEKOIA_Implant_Win_Flagpro : FILE
{
	meta:
		description = "Detect the Flagpro malware used by Blacktech"
		author = "Sekoia.io"
		id = "08dd2de4-b359-424f-af04-7f294d519363"
		date = "2022-04-22"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/implant_win_flagpro.yar#L1-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "eb1aba9924af474d6d890572a9bf72e0d1aa5dc31dd4cc34648195b0207ab4d6"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "<BODY ID=CV20_LoaderDlg BGCOLOR=LIGHTGREY style=\"font-family:MS Shell Dlg;font-size:8\">" ascii
		$ = "<TABLE WIDTH=100% HEIGHT=100%>" ascii
		$ = "<TR WIDTH=100% HEIGHT=45%>" ascii
		$ = "<TD ALIGN=CENTER VALIGN=BOTTOM>" ascii
		$ = "TODO: Place controls here." ascii
		$ = "<TD ALIGN=RIGHT VALIGN=BOTTOM>" ascii
		$ = "<BUTTON STYLE=\"WIDTH:100\" ID=\"ButtonHelp\">Help</BUTTON>&nbsp;&nbsp;<BUTTON STYLE=\"WIDTH:100\" ID=\"ButtonOK\">OK</BUTTON>&nbsp;<BUTTON STYLE=\"WIDTH:100\" ID=\"ButtonCancel\">Cancel</BUTTON>" ascii
		$about_loader = /About V[0-9]+\.[0-9]+_Loader.../ wide
		$path = "f:\\dd\\vctools\\vc7libs\\ship\\atlmfc\\include\\" wide
		$regitry = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\" wide

	condition:
		uint16( 0 ) == 0x5A4D and all of them
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$text"<BODY ID=CV20_LoaderDlg BGCOLOR=LIGHTGREY style=\"font-family:MS Shell Dlg;font-size:8\">"ascii
$text"<TABLE WIDTH=100% HEIGHT=100%>"ascii
$text"<TR WIDTH=100% HEIGHT=45%>"ascii
$text"<TD ALIGN=CENTER VALIGN=BOTTOM>"ascii
$text"TODO: Place controls here."ascii
$text"<TD ALIGN=RIGHT VALIGN=BOTTOM>"ascii
$text"<BUTTON STYLE=\"WIDTH:100\" ID=\"ButtonHelp\">Help</BUTTON>&nbsp;&nbsp;<BUTTON STYLE=\"WIDTH:100\" ID=\"ButtonOK\">OK</BUTTON>&nbsp;<BUTTON STYLE=\"WIDTH:100\" …ascii
$about_loaderregex/About V[0-9]+\.[0-9]+_Loader.../wide
$pathtext"f:\\dd\\vctools\\vc7libs\\ship\\atlmfc\\include\\"wide
$regitrytext"Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\"wide

Condition

uint16( 0 ) == 0x5A4D 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

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: 08dd2de4-b359-424f-af04-7f294d519363

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Flagpro rules