web-security-implementation

Pass

Audited by Gen Agent Trust Hub on Sep 4, 2026

Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill utilizes the Bash tool to perform legitimate security audits and infrastructure testing. Commands include npm audit and npx audit-ci for dependency scanning, curl for verifying HTTP headers and CORS configurations, and grep for identifying dangerous code patterns like dangerouslySetInnerHTML or eval(). These operations are strictly confined to the skill's primary purpose of security auditing.
  • [EXTERNAL_DOWNLOADS]: The skill references and suggests the use of standard, well-known security utilities via npx, including trufflesecurity/trufflehog for secret scanning and @cyclonedx/cyclonedx-npm for SBOM generation. It also documents the use of official GitHub Actions like gitleaks/gitleaks-action. All downloads originate from reputable security organizations and public registries, following industry best practices for supply chain security.
  • [INDIRECT_PROMPT_INJECTION]: The skill describes an attack surface for indirect injection as it provides instructions for processing potentially untrusted user data (e.g., user display names or rich text) to demonstrate sanitization techniques.
  • Ingestion points: Data enters the context via req.body in the Zod validation middleware (references/body-of-knowledge.md) and is simulated as stored content in src/components/UserProfile/UserProfile.tsx (examples/sample-output.md).
  • Boundary markers: The instructions explicitly mandate the use of strict boundary markers and security controls, such as CSP nonces and Zod schema definitions, to prevent the execution of embedded instructions.
  • Capability inventory: The skill possesses Bash, Write, Edit, and Read capabilities, which are used for auditing and remediation of the codebase.
  • Sanitization: The skill provides extensive implementation details for sanitization using DOMPurify with strict allowlists, React's automatic JSX escaping, and parameterized SQL queries to mitigate injection risks.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 4, 2026, 08:32 AM