SYMBOLCOMMON_NAMEaka. SYNONYMS
win.flawedgrace (Back to overview)

FlawedGrace

aka: GraceWire

Actor(s): TA505


According to ProofPoint, FlawedGrace is written in C++ and can be categorized as a Remote Access Trojan (RAT). It seems to have been developed in the second half of 2017 mainly.

FlawedGrace uses a series of commands:
FlawedGrace also uses a series of commands, provided below for reference:
* desktop_stat
* destroy_os
* target_download
* target_module_load
* target_module_load_external
* target_module_unload
* target_passwords
* target_rdp
* target_reboot
* target_remove
* target_script
* target_servers
* target_update
* target_upload

References
2021-12-01NCC GroupNikolaos Pantazopoulos, Michael Sandee
@online{pantazopoulos:20211201:tracking:b67c8f7, author = {Nikolaos Pantazopoulos and Michael Sandee}, title = {{Tracking a P2P network related to TA505}}, date = {2021-12-01}, organization = {NCC Group}, url = {https://research.nccgroup.com/2021/12/01/tracking-a-p2p-network-related-with-ta505/}, language = {English}, urldate = {2021-12-01} } Tracking a P2P network related to TA505
FlawedGrace Necurs
2021-10-21CrowdStrikeAlex Clinton, Tasha Robinson
@online{clinton:20211021:stopping:3c26152, author = {Alex Clinton and Tasha Robinson}, title = {{Stopping GRACEFUL SPIDER: Falcon Complete’s Fast Response to Recent SolarWinds Serv-U Exploit Campaign}}, date = {2021-10-21}, organization = {CrowdStrike}, url = {https://www.crowdstrike.com/blog/how-falcon-complete-stopped-a-solarwinds-serv-u-exploit-campaign/}, language = {English}, urldate = {2021-11-02} } Stopping GRACEFUL SPIDER: Falcon Complete’s Fast Response to Recent SolarWinds Serv-U Exploit Campaign
Cobalt Strike FlawedGrace TinyMet
2021-10-19ProofpointZydeca Cass, Axel F, Crista Giering, Matthew Mesa, Georgi Mladenov, Brandon Murphy
@online{cass:20211019:whatta:4d969e1, author = {Zydeca Cass and Axel F and Crista Giering and Matthew Mesa and Georgi Mladenov and Brandon Murphy}, title = {{Whatta TA: TA505 Ramps Up Activity, Delivers New FlawedGrace Variant}}, date = {2021-10-19}, organization = {Proofpoint}, url = {https://www.proofpoint.com/us/blog/threat-insight/whatta-ta-ta505-ramps-activity-delivers-new-flawedgrace-variant}, language = {English}, urldate = {2021-10-24} } Whatta TA: TA505 Ramps Up Activity, Delivers New FlawedGrace Variant
FlawedGrace MirrorBlast
2021-03-02Möbius Strip Reverse EngineeringRolf Rolles
@online{rolles:20210302:exhaustivelyanalyzed:ea1e91f, author = {Rolf Rolles}, title = {{An Exhaustively-Analyzed IDB for FlawedGrace}}, date = {2021-03-02}, organization = {Möbius Strip Reverse Engineering}, url = {https://www.msreverseengineering.com/blog/2021/3/2/an-exhaustively-analyzed-idb-for-flawedgrace}, language = {English}, urldate = {2021-03-04} } An Exhaustively-Analyzed IDB for FlawedGrace
FlawedGrace
2020-08-20CERT-FRCERT-FR
@techreport{certfr:20200820:development:d518522, author = {CERT-FR}, title = {{Development of the Activity of the TA505 Cybercriminal Group}}, date = {2020-08-20}, institution = {CERT-FR}, url = {https://www.cert.ssi.gouv.fr/uploads/CERTFR-2020-CTI-009.pdf}, language = {English}, urldate = {2020-08-28} } Development of the Activity of the TA505 Cybercriminal Group
AndroMut Bart Clop Dridex FlawedAmmyy FlawedGrace Get2 Locky Marap QuantLoader SDBbot ServHelper tRat TrickBot
2020-06-22CERT-FRCERT-FR
@techreport{certfr:20200622:volution:fba1cfa, author = {CERT-FR}, title = {{Évolution De Lactivité du Groupe Cybercriminel TA505}}, date = {2020-06-22}, institution = {CERT-FR}, url = {https://www.cert.ssi.gouv.fr/uploads/CERTFR-2020-CTI-006.pdf}, language = {French}, urldate = {2020-06-24} } Évolution De Lactivité du Groupe Cybercriminel TA505
Amadey AndroMut Bart Clop Dridex FlawedGrace Gandcrab Get2 GlobeImposter Jaff Locky Marap Philadephia Ransom QuantLoader Scarab Ransomware SDBbot ServHelper Silence tRat TrickBot
2020-06-17Twitter (@MsftSecIntel)Microsoft Security Intelligence
@online{intelligence:20200617:thread:b4b74d5, author = {Microsoft Security Intelligence}, title = {{A tweet thread on TA505 using CAPTCHA to avoid detection and infecting victims with FlawedGrace}}, date = {2020-06-17}, organization = {Twitter (@MsftSecIntel)}, url = {https://twitter.com/MsftSecIntel/status/1273359829390655488}, language = {English}, urldate = {2020-06-18} } A tweet thread on TA505 using CAPTCHA to avoid detection and infecting victims with FlawedGrace
FlawedGrace
2020-05-21Intel 471Intel 471
@online{471:20200521:brief:048d164, author = {Intel 471}, title = {{A brief history of TA505}}, date = {2020-05-21}, organization = {Intel 471}, url = {https://intel471.com/blog/a-brief-history-of-ta505}, language = {English}, urldate = {2022-02-14} } A brief history of TA505
AndroMut Bart Dridex FlawedAmmyy FlawedGrace Gandcrab Get2 GlobeImposter Jaff Kegotip Locky Necurs Philadephia Ransom Pony QuantLoader Rockloader SDBbot ServHelper Shifu Snatch TrickBot
2020-03-26TelekomThomas Barabosch
@online{barabosch:20200326:ta505s:24d9805, author = {Thomas Barabosch}, title = {{TA505's Box of Chocolate - On Hidden Gems packed with the TA505 Packer}}, date = {2020-03-26}, organization = {Telekom}, url = {https://www.telekom.com/en/blog/group/article/cybersecurity-ta505-s-box-of-chocolate-597672}, language = {English}, urldate = {2020-03-27} } TA505's Box of Chocolate - On Hidden Gems packed with the TA505 Packer
Amadey Azorult Clop FlawedGrace Get2 SDBbot Silence TinyMet TA505
2020-03-03PWC UKPWC UK
@techreport{uk:20200303:cyber:1f1eef0, author = {PWC UK}, title = {{Cyber Threats 2019:A Year in Retrospect}}, date = {2020-03-03}, institution = {PWC UK}, url = {https://www.pwc.co.uk/cyber-security/assets/cyber-threats-2019-retrospect.pdf}, language = {English}, urldate = {2020-03-03} } Cyber Threats 2019:A Year in Retrospect
KevDroid MESSAGETAP magecart AndroMut Cobalt Strike CobInt Crimson RAT DNSpionage Dridex Dtrack Emotet FlawedAmmyy FlawedGrace FriedEx Gandcrab Get2 GlobeImposter Grateful POS ISFB Kazuar LockerGoga Nokki QakBot Ramnit REvil Rifdoor RokRAT Ryuk shadowhammer ShadowPad Shifu Skipper StoneDrill Stuxnet TrickBot Winnti ZeroCleare Axiom
2020-02-13QianxinQi Anxin Threat Intelligence Center
@techreport{center:20200213:report:146d333, author = {Qi Anxin Threat Intelligence Center}, title = {{APT Report 2019}}, date = {2020-02-13}, institution = {Qianxin}, url = {https://ti.qianxin.com/uploads/2020/02/13/cb78386a082f465f259b37dae5df4884.pdf}, language = {English}, urldate = {2020-02-27} } APT Report 2019
Chrysaor Exodus Dacls VPNFilter DNSRat Griffon KopiLuwak More_eggs SQLRat AppleJeus BONDUPDATER Agent.BTZ Anchor AndroMut AppleJeus BOOSTWRITE Brambul Carbanak Cobalt Strike Dacls DistTrack DNSpionage Dtrack ELECTRICFISH FlawedAmmyy FlawedGrace Get2 Grateful POS HOPLIGHT Imminent Monitor RAT jason Joanap KerrDown KEYMARBLE Lambert LightNeuron LoJax MiniDuke PolyglotDuke PowerRatankba Rising Sun SDBbot ServHelper Snatch Stuxnet TinyMet tRat TrickBot Volgmer X-Agent Zebrocy
2020SecureworksSecureWorks
@online{secureworks:2020:gold:f38f910, author = {SecureWorks}, title = {{GOLD TAHOE}}, date = {2020}, organization = {Secureworks}, url = {https://www.secureworks.com/research/threat-profiles/gold-tahoe}, language = {English}, urldate = {2020-05-23} } GOLD TAHOE
Clop FlawedAmmyy FlawedGrace Get2 SDBbot ServHelper TA505
2019-01-14Möbius Strip Reverse EngineeringRolf Rolles
@online{rolles:20190114:quick:42a2552, author = {Rolf Rolles}, title = {{A Quick Solution to an Ugly Reverse Engineering Problem}}, date = {2019-01-14}, organization = {Möbius Strip Reverse Engineering}, url = {https://www.msreverseengineering.com/blog/2019/1/14/a-quick-solution-to-an-ugly-reverse-engineering-problem}, language = {English}, urldate = {2020-01-13} } A Quick Solution to an Ugly Reverse Engineering Problem
FlawedGrace
2019-01-09ProofpointDennis Schwarz, Proofpoint Staff
@online{schwarz:20190109:servhelper:e20586c, author = {Dennis Schwarz and Proofpoint Staff}, title = {{ServHelper and FlawedGrace - New malware introduced by TA505}}, date = {2019-01-09}, organization = {Proofpoint}, url = {https://www.proofpoint.com/us/threat-insight/post/servhelper-and-flawedgrace-new-malware-introduced-ta505}, language = {English}, urldate = {2019-12-20} } ServHelper and FlawedGrace - New malware introduced by TA505
FlawedGrace ServHelper
Yara Rules
[TLP:WHITE] win_flawedgrace_auto (20220516 | Detects win.flawedgrace.)
rule win_flawedgrace_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-05-16"
        version = "1"
        description = "Detects win.flawedgrace."
        info = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.6.0"
        signator_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.flawedgrace"
        malpedia_rule_date = "20220513"
        malpedia_hash = "7f4b2229e6ae614d86d74917f6d5b41890e62a26"
        malpedia_version = "20220516"
        malpedia_license = "CC BY-SA 4.0"
        malpedia_sharing = "TLP:WHITE"

    /* DISCLAIMER
     * The strings used in this rule have been automatically selected from the
     * disassembly of memory dumps and unpacked files, using YARA-Signator.
     * The code and documentation is published here:
     * https://github.com/fxb-cocacoding/yara-signator
     * As Malpedia is used as data source, please note that for a given
     * number of families, only single samples are documented.
     * This likely impacts the degree of generalization these rules will offer.
     * Take the described generation method also into consideration when you
     * apply the rules in your use cases and assign them confidence levels.
     */


    strings:
        $sequence_0 = { 0fb6c0 331485e09b4500 0fb6c1 c1e918 331485e0934500 8b1c8de09f4500 8b45f4 }
            // n = 7, score = 200
            //   0fb6c0               | movzx               eax, al
            //   331485e09b4500       | xor                 edx, dword ptr [eax*4 + 0x459be0]
            //   0fb6c1               | movzx               eax, cl
            //   c1e918               | shr                 ecx, 0x18
            //   331485e0934500       | xor                 edx, dword ptr [eax*4 + 0x4593e0]
            //   8b1c8de09f4500       | mov                 ebx, dword ptr [ecx*4 + 0x459fe0]
            //   8b45f4               | mov                 eax, dword ptr [ebp - 0xc]

        $sequence_1 = { c68588c8ffff0f c68589c8ffff00 c6858ac8ffff00 c6858bc8ffff48 c6858cc8ffff83 c6858dc8ffffc4 c6858ec8ffff20 }
            // n = 7, score = 200
            //   c68588c8ffff0f       | mov                 byte ptr [ebp - 0x3778], 0xf
            //   c68589c8ffff00       | mov                 byte ptr [ebp - 0x3777], 0
            //   c6858ac8ffff00       | mov                 byte ptr [ebp - 0x3776], 0
            //   c6858bc8ffff48       | mov                 byte ptr [ebp - 0x3775], 0x48
            //   c6858cc8ffff83       | mov                 byte ptr [ebp - 0x3774], 0x83
            //   c6858dc8ffffc4       | mov                 byte ptr [ebp - 0x3773], 0xc4
            //   c6858ec8ffff20       | mov                 byte ptr [ebp - 0x3772], 0x20

        $sequence_2 = { 51 52 e8???????? 83c40c ff7594 57 57 }
            // n = 7, score = 200
            //   51                   | push                ecx
            //   52                   | push                edx
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   ff7594               | push                dword ptr [ebp - 0x6c]
            //   57                   | push                edi
            //   57                   | push                edi

        $sequence_3 = { c685bde2ffff00 c685bee2ffff00 c685bfe2ffff00 c685c0e2ffff00 c685c1e2ffff00 c685c2e2ffff00 c685c3e2ffff00 }
            // n = 7, score = 200
            //   c685bde2ffff00       | mov                 byte ptr [ebp - 0x1d43], 0
            //   c685bee2ffff00       | mov                 byte ptr [ebp - 0x1d42], 0
            //   c685bfe2ffff00       | mov                 byte ptr [ebp - 0x1d41], 0
            //   c685c0e2ffff00       | mov                 byte ptr [ebp - 0x1d40], 0
            //   c685c1e2ffff00       | mov                 byte ptr [ebp - 0x1d3f], 0
            //   c685c2e2ffff00       | mov                 byte ptr [ebp - 0x1d3e], 0
            //   c685c3e2ffff00       | mov                 byte ptr [ebp - 0x1d3d], 0

        $sequence_4 = { c685ffd9ffff00 c68500daffff00 c68501daffff00 c68502daffff00 c68503daffff00 c68504daffffe2 c68505daffff31 }
            // n = 7, score = 200
            //   c685ffd9ffff00       | mov                 byte ptr [ebp - 0x2601], 0
            //   c68500daffff00       | mov                 byte ptr [ebp - 0x2600], 0
            //   c68501daffff00       | mov                 byte ptr [ebp - 0x25ff], 0
            //   c68502daffff00       | mov                 byte ptr [ebp - 0x25fe], 0
            //   c68503daffff00       | mov                 byte ptr [ebp - 0x25fd], 0
            //   c68504daffffe2       | mov                 byte ptr [ebp - 0x25fc], 0xe2
            //   c68505daffff31       | mov                 byte ptr [ebp - 0x25fb], 0x31

        $sequence_5 = { 85c0 740d 50 ff7514 56 e8???????? }
            // n = 6, score = 200
            //   85c0                 | test                eax, eax
            //   740d                 | je                  0xf
            //   50                   | push                eax
            //   ff7514               | push                dword ptr [ebp + 0x14]
            //   56                   | push                esi
            //   e8????????           |                     

        $sequence_6 = { c685efe0ffff49 c685f0e0ffff52 c685f1e0ffff65 c685f2e0ffff67 c685f3e0ffff69 c685f4e0ffff73 c685f5e0ffff74 }
            // n = 7, score = 200
            //   c685efe0ffff49       | mov                 byte ptr [ebp - 0x1f11], 0x49
            //   c685f0e0ffff52       | mov                 byte ptr [ebp - 0x1f10], 0x52
            //   c685f1e0ffff65       | mov                 byte ptr [ebp - 0x1f0f], 0x65
            //   c685f2e0ffff67       | mov                 byte ptr [ebp - 0x1f0e], 0x67
            //   c685f3e0ffff69       | mov                 byte ptr [ebp - 0x1f0d], 0x69
            //   c685f4e0ffff73       | mov                 byte ptr [ebp - 0x1f0c], 0x73
            //   c685f5e0ffff74       | mov                 byte ptr [ebp - 0x1f0b], 0x74

        $sequence_7 = { e8???????? eb02 33ff 8b5df8 53 ffd6 85ff }
            // n = 7, score = 200
            //   e8????????           |                     
            //   eb02                 | jmp                 4
            //   33ff                 | xor                 edi, edi
            //   8b5df8               | mov                 ebx, dword ptr [ebp - 8]
            //   53                   | push                ebx
            //   ffd6                 | call                esi
            //   85ff                 | test                edi, edi

        $sequence_8 = { c685eed7ffffff c685efd7ffff25 c685f0d7ffff50 c685f1d7ffff0e c685f2d7ffff00 c685f3d7ffff00 c685f4d7ffffff }
            // n = 7, score = 200
            //   c685eed7ffffff       | mov                 byte ptr [ebp - 0x2812], 0xff
            //   c685efd7ffff25       | mov                 byte ptr [ebp - 0x2811], 0x25
            //   c685f0d7ffff50       | mov                 byte ptr [ebp - 0x2810], 0x50
            //   c685f1d7ffff0e       | mov                 byte ptr [ebp - 0x280f], 0xe
            //   c685f2d7ffff00       | mov                 byte ptr [ebp - 0x280e], 0
            //   c685f3d7ffff00       | mov                 byte ptr [ebp - 0x280d], 0
            //   c685f4d7ffffff       | mov                 byte ptr [ebp - 0x280c], 0xff

        $sequence_9 = { ff75e4 e8???????? 8b45e0 8bce 894648 c745fcffffffff 8b45ec }
            // n = 7, score = 200
            //   ff75e4               | push                dword ptr [ebp - 0x1c]
            //   e8????????           |                     
            //   8b45e0               | mov                 eax, dword ptr [ebp - 0x20]
            //   8bce                 | mov                 ecx, esi
            //   894648               | mov                 dword ptr [esi + 0x48], eax
            //   c745fcffffffff       | mov                 dword ptr [ebp - 4], 0xffffffff
            //   8b45ec               | mov                 eax, dword ptr [ebp - 0x14]

    condition:
        7 of them and filesize < 966656
}
Download all Yara Rules