Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 21f8e102f9b9d754…

MALICIOUS

Office (OLE)

61.0 KB Created: 2017-09-18 22:04:00 Authoring application: Microsoft Office Word First seen: 2018-02-26
MD5: bbb47030bf748dba3e982b9a726608b9 SHA-1: 1ba33298cfd068c60c759c6032a921d5551dfbf3 SHA-256: 21f8e102f9b9d754c76e28f94de51691c9e381d60669e5f601c8b450bcfdc3c7
310 Risk Score

Malware Insights

MITRE ATT&CK
T1059.001 PowerShell T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample contains a VBA macro with an autoopen subroutine that calls the Shell function. This function is used to execute a PowerShell command which attempts to resolve the local machine's hostname. This behavior is indicative of a downloader or reconnaissance stage, commonly seen in macro-based malware.

Heuristics 9

  • ClamAV: Doc.Macro.DollarShell-6346616-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Macro.DollarShell-6346616-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    On Error Resume Next
    VBA.Shell$ "" + "powershell [System.Net.DNS]::GetHostByName('').HostName", 0
    End Function
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
    Matched line in script
    On Error Resume Next
    VBA.Shell$ "" + "powershell [System.Net.DNS]::GetHostByName('').HostName", 0
    End Function
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub autoopen()
    MfKEFtN
  • Reference to PowerShell high SC_STR_POWERSHELL
    Reference to PowerShell
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 518 bytes
SHA-256: 02cf995991c524d9aaf1360921092d382c988d59ecf0f793476309cc75b42a75
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "Module1"


Sub autoopen()
MfKEFtN
End Sub

 
Public Function MfKEFtN()
On Error Resume Next
VBA.Shell$ "" + "powershell [System.Net.DNS]::GetHostByName('').HostName", 0
End Function

 
End Sub