code-writing-guide
Pass
Audited by Gen Agent Trust Hub on Sep 29, 2026
Risk Level: SAFEDYNAMIC_CONTEXT_INJECTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_CONTEXT_INJECTION]: The skill uses the dynamic context injection syntax (
!command) inresources/unity-modern-guidelines.mdandresources/unity-references.mdto execute shell commands at load time. The command!grep "m_EditorVersion:" ProjectSettings/ProjectVersion.txt 2>/dev/null | sed 's/m_EditorVersion: //' | grep . || echo unknownis used to detect the project's Unity version from local metadata files. This is a functional use of the platform's features to tailor the agent's behavior to the specific environment. - [INDIRECT_PROMPT_INJECTION]: The skill contains a vulnerability surface for indirect prompt injection because it directs the agent to ingest and act upon data from external, potentially untrusted sources.
- Ingestion points: The agent is instructed to read
ProjectSettings/ProjectVersion.txt(via dynamic shell output), Unity packageREADME.mdfiles found inLibrary/PackageCache/, and dependency configuration inAssets/packages.config. - Boundary markers: The instructions do not specify any delimiters or safety warnings to prevent the agent from following instructions that might be embedded within these external files.
- Capability inventory: The skill gives the agent instructions to modify, create, and delete code files across the project and to use project-specific tools like
unity_play_control. - Sanitization: There is no requirement or guidance for the agent to sanitize or validate the content of these external files before using them to inform code generation or project modifications.
Audit Metadata