Skip to main content
Mallory
MalwareUsed by 1 actor

Flagpro

Flagpro is a malware family associated with the China-linked BlackTech threat group. The provided content describes it as being used in the initial stage of attacks to investigate a target environment, download and execute a second-stage malware payload, and exfiltrate data to its command-and-control (C2) server. Its C2 communications are bidirectional and Base64-encoded. Flagpro has been distributed via spearphishing email attachments and can execute malicious VBA macros embedded in .xlsm files, relying on user interaction with the malicious attachment. It can execute commands such as "net view" on a targeted system for discovery. The malware can check the name of the window displayed on the system and determine whether the target system is using Japanese, Taiwanese, or English by detecting specific Windows Security and Internet Explorer dialogs. It can also close specific Windows Security and Internet Explorer dialog boxes to mask external connections. The content further notes that U.S. and Japanese agencies observed BlackTech targeting multiple Cisco versions with custom malware including Flagpro.

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

THREAT ACTORS

Groups observed using it

1 distinct threat actor attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details
BlackTech

BlackTech uses a new malware for these attack cases. We call it “Flagpro”. Flagpro is used in the initial stage of attacks to investigate target’s environment, download a second stage malware and execute it.

via ntt security japaninsight-jp.nttsecurity.com
MITRE ATT&CK

Techniques & procedures

26 distinct techniques documented for this family, organized by ATT&CK tactic.

T1584.001DomainsEvidence1

A sophisticated hacking group tied to the government of China is exploiting routers in attacks on a variety of organizations... The group specifically targets “branch routers” — smaller appliances used at more remote branch offices to connect to a corporate headquarters.

Initial Access

1 technique
T1566.001Spearphishing AttachmentEvidence4

An attack case using Flagpro starts with a spear phishing e-mail. The message is adjusted to its target organization... The attackers attach a password protected archived file (ZIP or RAR) to the email... The archived file includes an xlsm format file and it contains a malicious macro.

Execution

4 techniques
T1059.003Windows Command ShellEvidence3
TacticExecution

Following list indicates Flagpro’s main functions: ... Execute OS commands and send the results

T1059.005Visual BasicEvidence2
TacticExecution

The archived file includes an xlsm format file and it contains a malicious macro. If a user activates the macro, a malware will be dropped.

T1204User ExecutionEvidence1
TacticExecution

The content repeatedly describes victims being lured into opening malicious attachments, enabling macros, launching installers, clicking embedded files/links, or otherwise directly executing malicious content.

T1204.002Malicious FileEvidence2
TacticExecution

The archived file includes an xlsm format file and it contains a malicious macro. If a user activates the macro, a malware will be dropped.

Persistence

2 techniques
T1547.001Registry Run Keys / Startup FolderEvidence4

The content repeatedly describes malware and threat actors establishing persistence by adding values under HKCU/HKLM\Software\Microsoft\Windows\CurrentVersion\Run or RunOnce, and by placing executables, scripts, or .lnk files in the Startup folder. | Examples include malware copied to '%AppData%\Microsoft\Windows\Start Menu\Programs\Startup', creation of '.lnk' shortcuts in Startup, and scripts or batch files placed in Startup folders.

T1556Modify Authentication ProcessEvidence1

Specifically, upon gaining an initial foothold into a target network and gaining administrator access to network edge devices, BlackTech cyber actors often modify the firmware to hide their activity across the edge devices to further maintain persistence in the network.

T1547.001Registry Run Keys / Startup FolderEvidence4

The content repeatedly describes malware and threat actors establishing persistence by adding values under HKCU/HKLM\Software\Microsoft\Windows\CurrentVersion\Run or RunOnce, and by placing executables, scripts, or .lnk files in the Startup folder. | Examples include malware copied to '%AppData%\Microsoft\Windows\Start Menu\Programs\Startup', creation of '.lnk' shortcuts in Startup, and scripts or batch files placed in Startup folders.

Stealth

5 techniques
T1027Obfuscated Files or InformationEvidence3
TacticStealth

The content repeatedly describes malware and threat actors using obfuscated code, encrypted strings, Base64/XOR/RC4/AES encoding, VMProtect/ConfuserEx/SmartAssembly, stack strings, control-flow flattening, opaque predicates, and hidden payloads to evade analysis and detection.

T1027.013Encrypted/Encoded FileEvidence1
TacticStealth

"Bumblebee has been delivered as password-protected zipped ISO files" / "Flagpro has been delivered within ZIP or RAR password-protected archived files." / "TA505 has password-protected malicious Word documents."

T1036MasqueradingEvidence1
TacticStealth

In the most cases, this created EXE files are named “dwm.exe”.

T1564Hide ArtifactsEvidence2
TacticStealth

In Flagpro v2.0, the same codes... are repeatedly inserted to hide important as a handy obfuscation technique.

T1564.003Hidden WindowEvidence1
TacticStealth

Flagpro can close specific Windows Security and Internet Explorer dialog boxes to mask external connections.

T1556Modify Authentication ProcessEvidence1

Specifically, upon gaining an initial foothold into a target network and gaining administrator access to network edge devices, BlackTech cyber actors often modify the firmware to hide their activity across the edge devices to further maintain persistence in the network.

Credential Access

2 techniques
T1003OS Credential DumpingEvidence1

The content references collection of credential material from local systems, including "Bumblebee can capture and compress stolen credentials from the Registry and volume shadow copies," "GALLIUM collected ... password hashes from the SAM hive in the Registry," and "Windigo has used a script to gather credentials in files left on disk by OpenSSH backdoors."

T1556Modify Authentication ProcessEvidence1

Specifically, upon gaining an initial foothold into a target network and gaining administrator access to network edge devices, BlackTech cyber actors often modify the firmware to hide their activity across the edge devices to further maintain persistence in the network.

Discovery

6 techniques
T1010Application Window DiscoveryEvidence1
TacticDiscovery

Multiple malware families are described as identifying/enumerating open windows or capturing foreground window titles (e.g., via EnumWindows, GetForegroundWindow, GetWindowText) to understand user activity and provide context for keylogging/screencapture.

T1016System Network Configuration DiscoveryEvidence2
TacticDiscovery

The content repeatedly describes actors and malware using commands and APIs such as ipconfig /all, ifconfig, arp -a, route print, netsh interface show, GetAdaptersInfo, and GetIpNetTable to gather IP addresses, MAC addresses, DNS, DHCP, gateways, routing tables, ARP cache, proxy settings, and network adapter/interface details.

T1018Remote System DiscoveryEvidence1
TacticDiscovery

During the 2015 Ukraine Electric Power Attack, Sandworm Team remotely discovered systems over LAN connections. OT systems were visible from the IT network as well, giving adversaries the ability to discover operational assets.

T1033System Owner/User DiscoveryEvidence3
TacticDiscovery

Flagpro v2.0 checks whether both username and password are filled in a dialog as an additional feature before clicking the OK button.

T1057Process DiscoveryEvidence2
TacticDiscovery

The content repeatedly describes malware and threat actors obtaining lists of running processes, using utilities such as tasklist, ps, WMI, Get-Process, CreateToolhelp32Snapshot, EnumProcesses, and similar APIs/commands to enumerate active processes on victim systems.

T1614.001System Language DiscoveryEvidence2
TacticDiscovery

Avaddon checks for specific keyboard layouts and OS languages to avoid targeting Commonwealth of Independent States (CIS) entities... Bazar can perform a check to ensure that the operating system's keyboard and language settings are not set to Russian... Clop has checked the keyboard language using the GetKeyboardLayout() function... Ryuk has been observed to query the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language and the value InstallLanguage.

Collection

1 technique
T1005Data from Local SystemEvidence2

The content repeatedly describes threat actors and malware collecting, stealing, identifying, copying, or staging files, documents, credentials, logs, databases, and other information from compromised hosts or local systems.

T1071.001Web ProtocolsEvidence3

Flagpro communicates with C&C server using HTTP.

T1105Ingress Tool TransferEvidence1

Flagpro is used in the initial stage of attacks to investigate target’s environment, download a second stage malware and execute it... Regarding to downloading and executing a tool, Flagpro stores the downloaded file in file path “%Temp%\~MY[0-9A-F].tmp” first. Then, Flagpro adds extension “.exe” to the name of stored file and executes the file.

T1132Data EncodingEvidence3

The received commands from a C&C server are encoded with Base64... It encodes data with Base64 and sends to the C&C server.

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence2

ADVSTORESHELL exfiltrates data over the same channel used for C2... Agrius exfiltrated staged data using tools such as Putty and WinSCP, communicating with command and control servers... numerous malware and groups sent victim data, files, credentials, or host information over existing C2 channels.

Other

1 technique
T1562.001Disable or Modify ToolsEvidence1

Flagpro can close specific Windows Security and Internet Explorer dialog boxes to mask external connections. ... HermeticWiper can disable pop-up information about folders and desktop items...

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution1

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping26

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.