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-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://blog.intel471.com/2020/05/21/a-brief-history-of-ta505/}, language = {English}, urldate = {2020-05-23} } 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 elf.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 (20201023 | autogenerated rule brought to you by yara-signator)
rule win_flawedgrace_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-12-22"
        version = "1"
        description = "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 = "20201222"
        malpedia_hash = "30354d830a29f0fbd3714d93d94dea941d77a130"
        malpedia_version = "20201023"
        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 = { 6a01 6a00 c605????????01 ff15???????? a3???????? 8d44242c 50 }
            // n = 7, score = 200
            //   6a01                 | push                1
            //   6a00                 | push                0
            //   c605????????01       |                     
            //   ff15????????         |                     
            //   a3????????           |                     
            //   8d44242c             | lea                 eax, [esp + 0x2c]
            //   50                   | push                eax

        $sequence_1 = { ff30 8d45f0 50 e8???????? ffb694000000 e8???????? 83c404 }
            // n = 7, score = 200
            //   ff30                 | push                dword ptr [eax]
            //   8d45f0               | lea                 eax, [ebp - 0x10]
            //   50                   | push                eax
            //   e8????????           |                     
            //   ffb694000000         | push                dword ptr [esi + 0x94]
            //   e8????????           |                     
            //   83c404               | add                 esp, 4

        $sequence_2 = { 6690 a801 7409 d1e8 352083b8ed eb02 d1e8 }
            // n = 7, score = 200
            //   6690                 | nop                 
            //   a801                 | test                al, 1
            //   7409                 | je                  0xb
            //   d1e8                 | shr                 eax, 1
            //   352083b8ed           | xor                 eax, 0xedb88320
            //   eb02                 | jmp                 4
            //   d1e8                 | shr                 eax, 1

        $sequence_3 = { 8b9514c0ffff 3a4a01 7523 838518c0ffff02 838514c0ffff02 80bdb9c0ffff00 75ae }
            // n = 7, score = 200
            //   8b9514c0ffff         | mov                 edx, dword ptr [ebp - 0x3fec]
            //   3a4a01               | cmp                 cl, byte ptr [edx + 1]
            //   7523                 | jne                 0x25
            //   838518c0ffff02       | add                 dword ptr [ebp - 0x3fe8], 2
            //   838514c0ffff02       | add                 dword ptr [ebp - 0x3fec], 2
            //   80bdb9c0ffff00       | cmp                 byte ptr [ebp - 0x3f47], 0
            //   75ae                 | jne                 0xffffffb0

        $sequence_4 = { 83ec48 a1???????? 33c5 8945f8 803d????????00 53 56 }
            // n = 7, score = 200
            //   83ec48               | sub                 esp, 0x48
            //   a1????????           |                     
            //   33c5                 | xor                 eax, ebp
            //   8945f8               | mov                 dword ptr [ebp - 8], eax
            //   803d????????00       |                     
            //   53                   | push                ebx
            //   56                   | push                esi

        $sequence_5 = { 334814 8b45f0 c1e808 0fb6c0 894de4 }
            // n = 5, score = 200
            //   334814               | xor                 ecx, dword ptr [eax + 0x14]
            //   8b45f0               | mov                 eax, dword ptr [ebp - 0x10]
            //   c1e808               | shr                 eax, 8
            //   0fb6c0               | movzx               eax, al
            //   894de4               | mov                 dword ptr [ebp - 0x1c], ecx

        $sequence_6 = { e8???????? 8bd8 83c408 3bde 7317 803f00 740b }
            // n = 7, score = 200
            //   e8????????           |                     
            //   8bd8                 | mov                 ebx, eax
            //   83c408               | add                 esp, 8
            //   3bde                 | cmp                 ebx, esi
            //   7317                 | jae                 0x19
            //   803f00               | cmp                 byte ptr [edi], 0
            //   740b                 | je                  0xd

        $sequence_7 = { 66660f1f840000000000 a1???????? ff34b0 ff15???????? 46 3b35???????? 72e9 }
            // n = 7, score = 200
            //   66660f1f840000000000     | nop    word ptr [eax + eax]
            //   a1????????           |                     
            //   ff34b0               | push                dword ptr [eax + esi*4]
            //   ff15????????         |                     
            //   46                   | inc                 esi
            //   3b35????????         |                     
            //   72e9                 | jb                  0xffffffeb

        $sequence_8 = { c685a8fbffff00 c685a9fbffff68 c685aafbffff00 c685abfbffff61 c685acfbffff00 c685adfbffff69 c685aefbffff00 }
            // n = 7, score = 200
            //   c685a8fbffff00       | mov                 byte ptr [ebp - 0x458], 0
            //   c685a9fbffff68       | mov                 byte ptr [ebp - 0x457], 0x68
            //   c685aafbffff00       | mov                 byte ptr [ebp - 0x456], 0
            //   c685abfbffff61       | mov                 byte ptr [ebp - 0x455], 0x61
            //   c685acfbffff00       | mov                 byte ptr [ebp - 0x454], 0
            //   c685adfbffff69       | mov                 byte ptr [ebp - 0x453], 0x69
            //   c685aefbffff00       | mov                 byte ptr [ebp - 0x452], 0

        $sequence_9 = { 331c85e0934500 8bc2 335f4c c1e810 8bcb 0fb6c0 c1e918 }
            // n = 7, score = 200
            //   331c85e0934500       | xor                 ebx, dword ptr [eax*4 + 0x4593e0]
            //   8bc2                 | mov                 eax, edx
            //   335f4c               | xor                 ebx, dword ptr [edi + 0x4c]
            //   c1e810               | shr                 eax, 0x10
            //   8bcb                 | mov                 ecx, ebx
            //   0fb6c0               | movzx               eax, al
            //   c1e918               | shr                 ecx, 0x18

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