Microsoft · Vendor blog

NeedyMantis: Unpacking a post-compromise malware family used in targeted operations

Published · Source: Microsoft

18 entities4 ATT&CK behaviors8 indicators10 claims

Entities & attribution

  • Artifact

    winsparkle.dll

    “%ProgramFiles%\ Poedit\WinSparkle.dll”

    Page 1 · Paragraph 20

  • Artifact

    libcurl.dll

    “%ProgramData%\USOShared\libcurl.dll”

    Page 1 · Paragraph 21

  • Artifact

    vim64.dll

    “%ProgramData%\VIM\vim64.dll”

    Page 1 · Paragraph 22

  • Artifact

    dbghelp.dll

    “%ProgramData%\office\dbghelp.dll”

    Page 1 · Paragraph 24

  • Artifact

    jli.dll

    “%ProgramData%\Intel\jli.dll”

    Page 1 · Paragraph 26

  • Artifact

    nvml.dll

    “%ProgramFiles%\modifiable\nvml.dll”

    Page 1 · Paragraph 27

  • Artifact

    encryptbase64.ps1

    “…launch it. In the analyzed sample, the next stage was named encryptbase64.ps1 .”

    Page 1 · Paragraph 42

  • Artifact

    7-zip.dll

    “7-zip.dll – Legitimate component of 7-Zip”

    Page 1 · Paragraph 49

  • Artifact

    7-zip32.dll

    “7-zip32.dll – Legitimate component of 7-Zip”

    Page 1 · Paragraph 50

  • Artifact

    7z.exe

    “7z.exe – Legitimate component of 7-Zip”

    Page 1 · Paragraph 51

  • Artifact

    disk2vhd.dll

    “Disk2vhd.dll – Legitimate Sysinternals component Disk2vhd”

    Page 1 · Paragraph 52

  • Artifact

    main.dll

    “main.dll – Legitimate Sysinternals component Ctrl2Cap”

    Page 1 · Paragraph 53

  • Artifact

    kernel32.dll

    “kernel32.dll – Legitimate kernel32.dll”

    Page 1 · Paragraph 54

  • Artifact

    dnsapi.dll

    “dnsapi.dll – Not a dnsapi.dll , but contains the malware’s configurati…”

    Page 1 · Paragraph 56

  • Artifact

    ws2_32.dll

    “ws2_32.dll – Not a ws2_32.dll , but contains a WebSockets based commun…”

    Page 1 · Paragraph 57

  • Artifact

    msvcrt140.dll

    “msvcrt140.dll – Not a msvcrt140.dll , but contains shellcode to load modu…”

    Page 1 · Paragraph 58

  • Artifact

    contoso-poedit.exe

    “It creates a mutex named - , such as Contoso-Poedit.exe . Like in the first-stage loader, most of the main componen…”

    Page 1 · Paragraph 76

  • Tool

    Cobalt Strike

    “The initial C2 beacon is an HTTPS GET request, similar to Figure 8 below:”

    Page 1 · Paragraph 96

MITRE ATT&CK behaviors

  • T1071.001 · Web Protocols

    Command and Control · C2 over HTTPS

    “…m archive format, loader architecture, command-and-control (C2) communications, and modular design. We also provide indica…”

    Page 1 · Paragraph 11

  • T1574.002 · DLL Side-Loading

    Defense Evasion · DLL sideloading

    “…der–masquerading as a required DLL—being loaded through DLL sideloading.”

    Page 1 · Paragraph 18

  • T1059.001 · PowerShell

    Execution · PowerShell execution

    “…yptbase64.ps1 was the second-stage loader. Despite its .ps1 PowerShell extension, the file contains x64 shellcode. Its purpose is …”

    Page 1 · Paragraph 66

  • T1566.001 · Spearphishing Attachment

    Initial Access · Spearphishing attachment

    “Phishing Triage agent”

    Page 1 · Paragraph 161

Indicators of compromise

Claims & evidence

  • Reported Claim

    NeedyMantis: Unpacking a post-compromise malware family used in targeted operations exhibits C2 over HTTPS (T1071.001)

    “…m archive format, loader architecture, command-and-control (C2) communications, and modular design. We also provide indica…”

    Page 1 · Paragraph 11

  • Reported Claim

    NeedyMantis: Unpacking a post-compromise malware family used in targeted operations exhibits DLL sideloading (T1574.002)

    “…der–masquerading as a required DLL—being loaded through DLL sideloading.”

    Page 1 · Paragraph 18

  • Reported Claim

    NeedyMantis: Unpacking a post-compromise malware family used in targeted operations exhibits PowerShell execution (T1059.001)

    “…yptbase64.ps1 was the second-stage loader. Despite its .ps1 PowerShell extension, the file contains x64 shellcode. Its purpose is …”

    Page 1 · Paragraph 66

  • Reported Claim

    NeedyMantis: Unpacking a post-compromise malware family used in targeted operations exhibits Spearphishing attachment (T1566.001)

    “Phishing Triage agent”

    Page 1 · Paragraph 161

  • Inferred Relationship

    C2 over HTTPS precedes DLL sideloading

    “…der–masquerading as a required DLL—being loaded through DLL sideloading.”

    Page 1 · Paragraph 18

  • Inferred Relationship

    DLL sideloading precedes PowerShell execution

    “…yptbase64.ps1 was the second-stage loader. Despite its .ps1 PowerShell extension, the file contains x64 shellcode. Its purpose is …”

    Page 1 · Paragraph 66

  • Inferred Relationship

    PowerShell execution precedes Spearphishing attachment

    “Phishing Triage agent”

    Page 1 · Paragraph 161

  • Reported Claim

    corp.tripswithengine.com used as network infrastructure

    “0x12c : C2 host ( corp.tripswithengine[.]com )”

    Page 1 · Paragraph 82

  • Reported Claim

    google.com used as network infrastructure

    “A 256-byte buffer is created that starts with google.com followed by random bytes”

    Page 1 · Paragraph 117

  • Lore Hypothesis

    Investigation hypothesizes A loader sideloaded via a signed binary stages an in-memory implant

    “…m archive format, loader architecture, command-and-control (C2) communications, and modular design. We also provide indica…”

    Page 1 · Paragraph 11