.NET Security

Enforce OWASP security standards for .NET authentication, authorization, and secrets management.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/ngxtm/skill-rule --skill net-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: .NET Security
Source: https://github.com/ngxtm/skill-rule/tree/main/rules/dotnet/security
Command: npx skills add https://github.com/ngxtm/skill-rule --skill net-security

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses critical security vulnerabilities in .NET applications, ensuring compliance with industry best practices and protecting sensitive data.

Core Features & Use Cases

  • Secure Authentication & Authorization: Implements robust mechanisms like JWT and policy-based authorization.
  • Vulnerability Prevention: Provides guidelines to prevent common attacks such as SQL injection, XSS, and CSRF.
  • Secrets Management: Guides on securely handling API keys, connection strings, and other secrets.
  • Use Case: Ensure your ASP.NET Core API correctly handles user authentication using JWT and implements fine-grained authorization to protect specific resources.

Quick Start

Apply the .NET Security skill to secure your ASP.NET Core application's authentication and authorization.

Frequently Asked Questions about .NET Security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I secure ASP.NET Core authentication using JWT Bearer?

To secure ASP.NET Core authentication using JWT Bearer, you enforce robust token validation and policy-based authorization to protect specific resources and prevent unauthorized access.

What is the best way to prevent SQL injection and XSS in .NET applications?

The best way to prevent SQL injection and XSS in .NET applications is by applying OWASP guidelines, utilizing parameterized queries for database access, and enforcing strict input validation.

How should I manage API keys and connection strings in ASP.NET Core?

You should manage API keys and connection strings in ASP.NET Core by utilizing secure secrets storage solutions like Azure Key Vault to protect sensitive data and ensure compliance.

Does the .NET Security skill support policy-based authorization?

Yes, .NET Security supports policy-based authorization, allowing you to implement fine-grained access control to protect specific resources within your ASP.NET Core API applications.

When do I need OWASP security standards for my .NET application?

You need OWASP security standards for your .NET application when addressing critical security vulnerabilities, ensuring compliance with industry best practices, and protecting sensitive user data.