large-file-write-heredoc

Pass

Audited by Gen Agent Trust Hub on Jun 18, 2026

Risk Level: SAFE
Full Analysis
  • [COMMAND_EXECUTION]: The skill documents how to use the run_shell tool to execute a Python script that writes content to a file. This is an intended functional fallback for when standard file-writing tools fail due to size constraints.
  • [DYNAMIC_EXECUTION]: The pattern uses `python3
  • << 'EOF'` to execute a dynamically generated Python script. The skill provides clear instructions on escaping characters and using unique delimiters to ensure the script executes correctly.
  • [INDIRECT_PROMPT_INJECTION]: The skill defines a template for processing external data (large file contents). It includes boundary markers (heredoc delimiters like PYEOF) and specific escaping instructions to mitigate risks of content breaking the execution logic.
Audit Metadata
Risk Level
SAFE
Analyzed
Jun 18, 2026, 12:05 AM
Security Audit — agent-trust-hub — large-file-write-heredoc