Governs Angular DomSanitizer bypassSecurityTrust* calls by requiring explicit justification, review, and testing. Inventories all bypass methods, enforces strict URL parsing, and validates rich HTML sanitization.
Ships in ngautopilot-angular. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Make every DomSanitizer bypass a reviewed trust boundary. A trust wrapper must never turn arbitrary attacker input into approved HTML or a code-loading resource URL.
Use for bypassSecurityTrust* calls, SafeValue wrappers/pipes, rich-text integrations, embedded resources, or requests to silence Angular sanitization errors. Inspect the installed Angular version and each caller before changing a shared wrapper.
safe pipe accepting any string is an unsafe boundary.video.example.test.attacker.test or [email protected]. A prefix/suffix string test is insufficient. The example host is synthetic, not a trusted service recommendation.Run the existing unit and browser suites with synthetic values. Record the command, expected rejection/rendering, actual rejection/rendering, and evidence for each bypass caller. The cases below are review expectations, not permission to run attacker content in production.
| Case | Reproduction and required assertion | Decision on observation |
|---|---|---|
| Attacker HTML bypass | A query/API string is marked trusted without a proven sanitization boundary. | FAIL |
| Host suffix confusion | A lookalike or userinfo URL passes the resource allowlist. | FAIL |
| Wrong context | A rejected/null/wrong-context value falls back to trusted or raw insertion. | FAIL |
| Unknown provenance | A wrapper has no traced producer, caller inventory, or real consumer tests. | BLOCKED |
| Fixed resource | Exact approved URL/content works; all invalid values are rejected before trust and every caller has evidence. | PASS |
FAIL takes precedence over BLOCKED when an unsafe behavior is demonstrated. Report PASS only when each bypass has a justified trust rule and executed positive/negative tests, or when the bypass was removed and the normal binding was verified. An owner signature alone does not make attacker input safe.
Return the scoped decision, bypass inventory, minimal removal or trust rule, reviewer/expiry, commands and before/after assertions. Include unresolved provenance, redacted evidence, and rollback steps.
Sources: DomSanitizer API and context behavior and Angular trust boundaries.
What SKILL.md sets; muted values are Claude Code's defaults
/ngautopilot-angular:angular--security--angular-domsanitizer-governancefrom ngautopilot-angular
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-angular350 skills in this plugin
/angular--ai--angular-v22-agent-skills-integrationAngular v22 Agent Skills IntegrationUse official Angular Agent Skills as reference material without copying them blindly or replacing NgAutoPilot routing. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-ai-tutor-safe-usageAngular v22 AI Tutor Safe UsageUse AI tutor workflows to teach Angular concepts without allowing unsafe code or secret exposure. For Angular 22 projects and 21-to-22 upgrade planning.
/angular--ai--angular-v22-angular-mcp-agent-workflowAngular v22 Angular MCP Agent WorkflowReview the workspace boundary, permissions, and runtime evidence of an Angular MCP integration. For Angular 22 projects and 21-to-22 upgrade planning.
Other plugins' skills for the same job