analyzing-macro-malware-in-office-documents
Pass
Audited by Gen Agent Trust Hub on Jul 16, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill requires the installation of the
oletoolsandxlmdeobfuscatorpackages from the Python Package Index. It also directs users to downloadoledump.pyfrom the official blog of a well-known security researcher. These dependencies are standard requirements for the document analysis tasks described. - [COMMAND_EXECUTION]: The provided workflows and the
agent.pyscript facilitate the execution of several command-line analysis tools, includingolevba,oleid, andoledump. These tools are used for the static inspection of OLE streams and document structures to identify suspicious indicators without executing the document's payload. - [PROMPT_INJECTION]: The skill's primary function is to process untrusted data from potentially malicious Office documents. This exposes the agent to indirect prompt injection, where strings or code extracted from a document might be interpreted as commands by the AI agent during the analysis report generation.
- Ingestion points: Untrusted data enters the environment through
sys.argvand is processed byVBA_Parserandzipfileinagent.py. - Boundary markers: There are no explicit delimiters or warning instructions used to isolate the extracted macro strings from the agent's internal logic.
- Capability inventory: The agent possesses file system access and the ability to execute subprocesses as part of the analysis workflow.
- Sanitization: While the script performs regex-based deobfuscation to aid human analysis, it does not sanitize the extracted content to prevent it from being interpreted as instructions by the language model.
Audit Metadata