angular-security

Community

Prevent XSS and secure Angular apps

Authoroguzhan18
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Protect Angular applications from client-side vulnerabilities including cross-site scripting (XSS), cross-site request forgery (CSRF), unsafe DOM usage, and misconfigured Content Security Policy by providing actionable guidance, safe coding patterns, and migration notes for Angular v21.

Core Features & Use Cases

  • XSS Prevention: Guidance on using DomSanitizer, safe innerHTML patterns, and when to use bypass methods responsibly.
  • CSRF & HttpClient Security: Instructions for configuring XSRF cookie/header strategies and using HttpClient securely with interceptors.
  • CSP & Trusted Types: Recommendations for enabling Content Security Policy and Trusted Types providers to reduce attack surface.
  • Use Case: Audit a component that renders user-generated HTML, secure API calls with XSRF protection, and produce code fixes to satisfy CSP and sanitization requirements.

Quick Start

Use the angular-security skill to audit my Angular component and return XSS, CSRF, CSP, and sanitization remediation steps with code examples.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: angular-security
Download link: https://github.com/oguzhan18/angular-ecosystem-skills/archive/main.zip#angular-security

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.