Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
Back to malware
MalwareRansomwareUsed by 2 actorsExploits 1 CVE

FlawedGrace

FlawedGrace is a full-featured remote access trojan (RAT) first observed in November 2017 and associated in reporting with TA505, including later CL0P-linked activity. It has been delivered as a secondary payload by TA505 malware such as ServHelper and Get2, including phishing campaigns using macro-enabled Microsoft Office and Publisher attachments, PDF lures linking to fake Adobe plugin pages, direct executable URLs, and malicious Excel documents embedding Get2 as an OLE object. In 2019 reporting, TA505 campaigns used Get2 to download FlawedGrace alongside other payloads including FlawedAmmyy, Snatch, and SDBbot. Reporting also states that in 2019 TA505 leveraged CL0P ransomware as a final payload in a phishing campaign involving a macro-enabled document that used the Get2 dropper to download SDBbot and FlawedGrace.

FlawedGrace is described as written in C++ using object-oriented and multithreaded techniques. It uses a custom encrypted binary command-and-control protocol over port 443 and has been described as having a sophisticated, high-performance, robust, and flexible networking component. One analysis states it uses a custom and complex virtual filesystem for configuration management and command-and-control communications. In an analyzed sample, encrypted configuration data including C2 IPs and ports was stored in files such as C:\ProgramData\21851a60.dat using AES-CBC with the hardcoded key c3oeCSIfx0J6UtcV. Reported commands include target_download, target_upload, target_rdp, target_passwords, target_script, and destroy_os. MITRE ATT&CK mapping in the content associates FlawedGrace with obfuscated files or information via encrypted or encoded files.

FlawedGrace has also been observed in post-exploitation and persistence workflows. In incidents involving exploitation of SolarWinds Serv-U CVE-2021-35211, NCC Group reported attackers linked to TA505/CL0P using PowerShell to deploy Cobalt Strike and then hijacking the legitimate RegIdleBackup scheduled task by abusing its COM handler to load FlawedGrace RAT. The reporting notes that altered COM handler CLSIDs and Base64-encoded registry objects associated with a FlawedGrace loader were indicators of compromise in those cases. Additional artifacts referenced in the content include a YARA rule named Windows.Trojan.FlawedGrace and sample hashes for the main executable from a reverse-engineering writeup: SHA-1 9bb72ae1dc6c49806064992e0850dc8cb02571ed and MD5 bc91e2c139369a1ae219a11cbd9a243b.

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.

EXPLOITED CVES

Vulnerabilities exploited

1 CVE Mallory has correlated with this family across public research and vendor advisories. Each row links to the full Mallory page for that vulnerability.

1 CVES
CVE-2021-35211RCE in SolarWinds Serv-U Managed File Transfer and Secure FTP

...abusing the COM handler associated with it to execute malicious code, leading to FlawedGrace RAT.

via ncc group researchnccgroup.com
THREAT ACTORS

Groups observed using it

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

View more details
TA505

Get2 was, in turn, observed downloading FlawedGrace, FlawedAmmyy, Snatch, and SDBbot (a new RAT) as secondary payloads.

via proofpoint threat insight blogproofpoint.com
lacetempest

rule Windows_Trojan_FlawedGrace_8c5eb04b { ... threat_name = "Windows.Trojan.FlawedGrace" ... }

via rapid7 velociraptor artifact exchangedocs.velociraptor.app
MITRE ATT&CK

Techniques & procedures

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

Initial Access

2 techniques
T1566PhishingEvidence1

CL0P actors send a large volume of spear-phishing emails to employees of an organization to gain initial access.

T1566.001Spearphishing AttachmentEvidence1

On September 9 Proofpoint researchers observed tens of thousands of emails attempting to deliver Microsoft Excel attachments with English and Greek lures.

Stealth

2 techniques
T1027Obfuscated Files or InformationEvidence5

The content repeatedly describes payloads, strings, configuration files, scripts, URLs, and binaries being obfuscated or encoded using Base64, XOR, RC4, AES, RSA, hex encoding, custom algorithms, and other methods across many malware families and threat actors.

T1027.013Encrypted/Encoded FileEvidence2

Examples throughout the content include 'encrypted payloads decrypted and executed in memory,' 'encrypts its configuration file,' 'AES-encrypted resource,' 'RC4 encrypted embedded scripts,' and 'payload includes an encrypted main component.'

Credential Access

1 technique
T1003OS Credential DumpingEvidence1

You can find the IDB for the main executable, and for the 64-bit password stealer module, here.

Command and Control

3 techniques
T1071Application Layer ProtocolEvidence2

FlawedAmmyy / FlawedGrace remote access trojan (RAT) collects information and attempts to communicate with the Command and Control (C2) server to enable the download of additional malware components [T1071], [T1105].

T1095Non-Application Layer ProtocolEvidence1

FlawedGrace uses a complicated binary protocol for its command and control. It can use a configurable port for communications, but all samples we have observed to date have used port 443.

T1105Ingress Tool TransferEvidence3

The “downloader” variant is stripped of the tunneling and hijacking functionality and is used as a basic downloader.

INDICATORS OF COMPROMISE

IOCs tracked for this family

11 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.

View more in app
Network
3 tracked

IPs, domains, and DNS infrastructure linked to this family.

Hashes
6 tracked

File hashes (MD5, SHA-1, SHA-256) from samples and reports.

Other
2 tracked

Other indicator types observed in public reporting.

TypeValueLatest sighting
hash.md5●●●●●●●●●●●●View more in app5 years ago
hash.sha1●●●●●●●●●●●●View more in app5 years ago
hash.sha256●●●●●●●●●●●●View more in app7 years ago
hash.sha256●●●●●●●●●●●●View more in app7 years ago
domain●●●●●●●●●●●●View more in app7 years ago
hash.sha256●●●●●●●●●●●●View more in app7 years ago
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 matching11

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

Threat actor attribution2

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

Exploited vulnerabilities1

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 mapping8

Every documented technique, ranked by evidence weight.

Researcher chatter

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