Refactor Safely
Pass
Audited by Gen Agent Trust Hub on Apr 19, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it instructs the agent to ingest and process external code which may contain malicious instructions designed to influence agent behavior.
- Ingestion points: Code provided by the user or read from the workspace via
refactor_toolandget_minimal_context(referenced in SKILL.md). - Boundary markers: Absent. There are no instructions to the agent to use delimiters or to disregard natural language instructions found within comments or strings in the code being refactored.
- Capability inventory: The skill includes the
apply_refactor_toolwhich allows the agent to modify files in the local environment. - Sanitization: Absent. The skill does not define any validation or sanitization steps for the content being processed before it is used to influence the refactoring plan.
Audit Metadata