AgentTesla — Office (OOXML) / .DOC malware analysis

Static analysis result for SHA-256 31d46cd6e6cbc833…

MALICIOUS

Office (OOXML) / .DOC

290.3 KB Created: 2022-06-24 13:25:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2022-06-24
MD5: 088d34bc9ef5ab6a3b197bd054bf5696 SHA-1: d11de98d385d04d519961261d966c8b23b6d8044 SHA-256: 31d46cd6e6cbc833fe6eb9ef4297d8daf47118df307cf63c5115707b4d401b13
410 Risk Score

Malware Insights

AgentTesla · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1059.001 PowerShell T1204.002 Malicious File

The sample contains VBA macros, including a Document_Open macro that utilizes Shell() and CreateObject() to execute code. ClamAV detections indicate this is AgentTesla, a known information-stealer. The VBA code appears to be designed to download and execute a second-stage payload, consistent with AgentTesla's typical behavior.

Heuristics 11

  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • ClamAV: Win.Dropper.AgentTesla-9969002-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Win.Dropper.AgentTesla-9969002-0
  • ClamAV detection on extracted artifact critical EXTRACTED_FILE_CLAMAV
    ClamAV flagged at least one file extracted from inside this sample. Even when the wrapping document carries no AV detection of its own, a hit on the carved artifact is a strong indicator the sample is a delivery vehicle.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • GetObject call high OLE_VBA_GETOBJ
    GetObject 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.
  • Suspicious extracted artifact high 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.
  • VBA project inside OOXML medium OOXML_VBA
    Document contains vbaProject.bin — VBA macros present
  • 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 http://www.allapi.net/
    • http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas
    • http://schemas.microsoft.com/office/drawing/2014/chartex
    • http://schemas.openxmlformats.org/markup-compatibility/2006
    • http://schemas.openxmlformats.org/officeDocument/2006/relationships
    • http://schemas.openxmlformats.org/officeDocument/2006/math
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing
    • http://schemas.openxmlformats.org/wordprocessingml/2006/main
    • http://schemas.microsoft.com/office/word/2010/wordml
    • http://schemas.microsoft.com/office/word/2012/wordml
    • http://schemas.microsoft.com/office/word/2015/wordml/symex
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroup
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInk
    • http://schemas.microsoft.com/office/word/2006/wordml
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShape

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas
1ba97f172b446c895703dd96e179eb389cac353d50752ac6037bc7306b2148c9
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 19708 bytes
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s). Carved macro source contains an auto-exec entry point and execution/download terms.
vbaProject_00.bin
a7244482c899747804e9f2d7a6ec4f4b82682302755587d49877b5d727b81d33
vba-project OOXML VBA project: word/vbaProject.bin 49664 bytes
Detection
ClamAV: Win.Dropper.AgentTesla-9969002-0
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s). Carved macro source contains an auto-exec entry point and execution/download terms.