prompt-engineer-toolkit
Warn
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/prompt_tester.pycontains a feature that executes external shell commands. Therun_runnerfunction usessubprocess.runto execute a command string constructed from user-provided templates. - Evidence: The
--runner-cmdargument allows users to specify an arbitrary command template like'my-llm-cli --prompt {prompt} --input {input}'. The script then usesshlex.splitandsubprocess.runto execute this command for every test case. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process external prompt files and test case data (
testcases.json). If these files are sourced from an untrusted third party, they could contain malicious command injections targeting the--runner-cmdplaceholders or the prompt versioner's diffing logic. - Ingestion points:
scripts/prompt_tester.pyreads data from--cases-fileand--inputJSON/stdin. - Capability inventory: Use of
subprocess.runinscripts/prompt_tester.pyfor external LLM runners. - Boundary markers: None detected; content is interpolated directly into command strings.
- Sanitization: While
shlex.splitis used, the command template itself is provided by the user, and data is interpolated into it without specialized sanitization for shell safety.
Audit Metadata