YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Flagpro
Detects Flagpro
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Flagpro
Associated malware family: Flagpro.
Targets: Windows PE.
It defines 10 patterns (8 text, 0 hex, 2 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-flagpro.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Flagpro : FILE
{
meta:
= "Detects Flagpro"
= "ditekSHen"
= "da1bf899-feb5-5ed0-956e-c20bc3565a6e"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9032-L9049"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "c5e5944426b7be690ad62dd0d98a8fc6f8135cab0dbdd8a5aaf1670491eda59d"
= 75
= 75
= "FILE"
strings:
$s1 = "download...." fullword ascii
$s2 = "~MYTEMP" fullword wide
$s3 = ".?AVCV20_LoaderApp@@" fullword ascii
$s4 = ".?AVCV20_LoaderDlg@@" fullword ascii
$s5 = "ExecYes" fullword ascii
$s6 = /<BODY ID=CV\d+_LoaderDlg BGCOLOR=/ ascii
$n1 = "://139.162.87.180" wide
$n2 = "://172.104.109.217" wide
$n3 = "://org.misecure.com/index.html" wide
$b1 = /(get all|click|close|maybe|get_outerHTML|download\d) (finished|pass|ok|windows|failed)!/ fullword ascii
condition:
uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( 1 of ( $n* ) and ( 2 of ( $s* ) or 1 of ( $b* ) ) ) or ( 2 of ( $s* ) and 1 of ( $b* ) )
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "download...." | fullword ascii |
| $s2 | text | "~MYTEMP" | fullword wide |
| $s3 | text | ".?AVCV20_LoaderApp@@" | fullword ascii |
| $s4 | text | ".?AVCV20_LoaderDlg@@" | fullword ascii |
| $s5 | text | "ExecYes" | fullword ascii |
| $s6 | regex | /<BODY ID=CV\d+_LoaderDlg BGCOLOR=/ | ascii |
| $n1 | text | "://139.162.87.180" | wide |
| $n2 | text | "://172.104.109.217" | wide |
| $n3 | text | "://org.misecure.com/index.html" | wide |
| $b1 | regex | /(get all|click|close|maybe|get_outerHTML|download\d) (finished|pass|ok|windows|failed)!/ | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( 1 of ( $n* ) and ( 2 of ( $s* ) or 1 of ( $b* ) ) ) or ( 2 of ( $s* ) and 1 of ( $b* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 4 patterns in ( $s* ) must match.
- At least 1 patterns in ( $n* ) must match.
- At least 2 patterns in ( $s* ) must match.
- At least 1 patterns in ( $b* ) 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.
References
Licence & attribution
Author: ditekSHen
Source repository: ditekSHen detection @ e76c93dcde
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: da1bf899-feb5-5ed0-956e-c20bc3565a6e
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-04-22
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06