api-design-first
Pass
Audited by Gen Agent Trust Hub on Nov 16, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [SAFE]: The skill provides robust architectural guidance for building secure, evolvable APIs. It emphasizes critical security controls such as tenant isolation, HSTS, secure CORS configurations, and rate limiting.
- [INDIRECT_PROMPT_INJECTION]: The skill proactively addresses the threat surface of indirect prompt injection in its guidelines for designing APIs for AI agents. It advises on using structured schemas, treating user content as untrusted, and implementing human-in-the-loop (HITL) confirmations for sensitive actions.
- Ingestion points: Found in
references/api-error-handling/examples/ApiClient.js(fetch) andreferences/api-error-handling/references/bootstrap.php(php://input). - Boundary markers: The skill explicitly recommends using closed JSON schemas and clear delimiters for user content in
references/apis-for-ai-agents-and-data.md. - Capability inventory: Data storage and retrieval via PHP PDO operations in example scripts.
- Sanitization: Guidance includes strict input validation and output sanitization to prevent injection attacks.
- [CREDENTIALS_UNSAFE]: The skill correctly demonstrates secure credential management by instructing users to store SHA-256 hashes of API keys rather than raw strings, as detailed in
references/auth-and-security.md. - [PROMPT_INJECTION]: A deterministic detector triggered a false positive on
references/apis-for-ai-agents-and-data.mddue to the presence of the phrase "ignore previous instructions." In context, this is an example used to teach users how to defend against such attacks, not an attempt to hijack the agent.
Audit Metadata