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 auditandnpx audit-cifor dependency scanning,curlfor verifying HTTP headers and CORS configurations, andgrepfor identifying dangerous code patterns likedangerouslySetInnerHTMLoreval(). 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, includingtrufflesecurity/trufflehogfor secret scanning and@cyclonedx/cyclonedx-npmfor SBOM generation. It also documents the use of official GitHub Actions likegitleaks/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.bodyin the Zod validation middleware (references/body-of-knowledge.md) and is simulated as stored content insrc/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, andReadcapabilities, which are used for auditing and remediation of the codebase. - Sanitization: The skill provides extensive implementation details for sanitization using
DOMPurifywith strict allowlists, React's automatic JSX escaping, and parameterized SQL queries to mitigate injection risks.
Audit Metadata