prompt-engineering

Warn

Audited by Gen Agent Trust Hub on Oct 18, 2026

Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONPROMPT_INJECTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The skill provides a code recipe for the PAL (Program-Aided Language Model) technique that uses the 'exec()' function to execute Python code generated by a large language model.
  • Evidence: In references/notebooks-and-code-recipes.md, the PAL implementation contains the code: llm_out = llm(DATE_UNDERSTANDING_PROMPT.format(question=question)); exec(llm_out); print(answer). While the skill's audit notes in references/audit-summary.md correctly identify this as a risk, the presence of the unsandboxed execution pattern in the reference material poses a threat if adopted by an agent.
  • [PROMPT_INJECTION]: The reference file references/risks-and-safety.md contains functional text for several advanced prompt injection and jailbreak attacks, including the DAN (Do Anything Now) persona and a GPT-4 simulator for token smuggling. There is a risk that the agent processing these documents may inadvertently adopt the malicious behaviors described in the examples.
  • [INDIRECT_PROMPT_INJECTION]: The skill represents a high-volume ingestion surface for untrusted data.
  • Ingestion points: Multiple reference files containing third-party prompting templates and adversarial examples (e.g., references/prompt-library.md, references/risks-and-safety.md).
  • Boundary markers: The skill does not provide clear delimiters or instruction-isolation markers for the agent to distinguish between the documentation content and the potentially malicious instructions contained within the examples.
  • Capability inventory: The agent has access to internal reasoning and potentially the ability to execute the documented PAL technique using exec().
  • Sanitization: No explicit sanitization or filtering is applied to the untrusted prompting examples provided in the skill's reference library.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Oct 18, 2026, 02:49 PM