Zero-trust security for every web app. Protect your ASP.NET Web API services with a multi-stage security pipeline that includes XSS detection, authentication, IP firewall, two-factor, activity/data authorization, account verification and suspension checks. To get started Visit https://ASPSecurityKit.net/docs/getting-started/ ASPSecurityKit also provides drop-in source code packages for your web services giving you end-to-end implementation of commonly needed endpoints/functionality including login, register, forgot password, account settings (change email/password), user management, permission management, administration (impersonation), localization, production-grade graceful error handling etc. To download these source code packages into your project, install ASPSecurityKit.Tools package if you haven't already and execute start-ask command in Visual Studio Package Manager Console. For more information, visit https://ASPSecurityKit.net/docs/source-packages/ Commonly Used Types: ASPSecurityKit.NetFramework.WebApi.ProtectAttribute ASPSecurityKit.NetFramework.WebApi.ASPSecurityKitWebApiFeature
A lightweight .NET library that sanitizes URLs by removing potentially harmful or unwanted characters. Inspired by Braintree's Sanitize URL for JavaScript, this package ensures URLs are safe for use in web applications, preventing XSS attacks and other vulnerabilities.
Default HTML sanitizer for MgSoftDev.KnowledgeHub, built on the HtmlSanitizer (Ganss.Xss) library. Cleans pasted Word/web markup and validates content before it is stored, while preserving KnowledgeHub's docimg:// and data: image references. Optional: register it to enable cleaning, or implement IKnowledgeHubHtmlSanitizer yourself.
Templates based on the ASPSecurityKit's Essential source package for different web frameworks such as ASP.NET Core MVC, Web API and ServiceStack. Hands-on tutorials based on these templates are available on https://ASPSecurityKit.net/docs/getting-started/ To learn more about what's inside the Essential source package, visit https://aspsecuritykit.net/docs/source-packages/#essential
Rich text editor for Blazor (.NET 8, .NET 9, .NET 10) with keyboard accessibility, ARIA support, emoji picker (1800+ emojis via BlazorEmo), emoji autocomplete (first-item auto-selected on open), XSS protection. Tested on Chrome, Edge, Firefox. Native Blazor component. GPL-3.0 for open-source.
Kun Framework object-storage abstraction (IFileStorage) with S3/MinIO and local-filesystem implementations. Active-web MIME types are stored with Content-Disposition: attachment as an anti-XSS defense.
🏆 Enterprise-grade .NET 8 Web API template with Clean Architecture and 100% COMPLETE security implementation! ✨ SECURITY MILESTONE ACHIEVED: All 19 security items COMPLETE! (19/19 - 100%) 🎉 Features comprehensive JWT authentication with token blacklist for proper logout, role-based access control, SignalR real-time messaging, input sanitization for XSS protection, security headers for browser protection, rate limiting, token versioning, encrypted ticket system for BOLA/IDOR protection, comprehensive audit logging, account lockout, and configurable session management. NEW in v1.6.0: Facility Management + File Storage - Enterprise multi-tenant facilities and comprehensive file management! NEW in v1.5.0: CSRF Protection (Architecture-Based) - JWT + localStorage provides inherent protection! NEW in v1.4.0: Input Sanitization - Automatic XSS protection with comprehensive guide! NEW in v1.3.0: Security Headers - Browser protection with CSP, X-Frame-Options, and more! NEW in v1.2.0: Token Blacklist - Proper logout functionality with immediate token invalidation! 📊 Current Status: • Security Score: 100% COMPLETE (19/19 items) 🎉 • HIPAA Compliance: 55% Complete (Core features done) • Production Ready: ✅ Yes • Documentation: 3,000+ lines of professional guides Perfect for building secure enterprise APIs requiring HIPAA readiness, healthcare applications, finance systems, or any high-security web applications with modern .NET practices.
A nuget package containing: Emailer, Common Document Generator, An Http Form and File Uploader, Java Script (Angular/JQuery), String Validator (Phone, Email, International Phone, Number, ect.) in Constant Time, XSS and Xml String Manipulator, and a Symmetric Key Base 64 Encryptor and Decryptor.
Advanced Anti-XSS Helper. Usage example: app.UseAntiXss(o => o.excludedApis = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "/api/GetData", "/api/Controller/AddData" } );
Middleware-level input validation for ASP.NET Core. Validates Content-Type, JSON format, request body size, and MIME types before model binding. Configurable via appsettings.json with path exclusions and extensible custom validators.
Library that contains helpful implementation to reduce XSS risks.
A lightweight library for adding common security headers to ASP.NET Core applications.
A sanitizer to remove elements and attributes from SGML based text files, such as HTML and XML. Note that this is a very simple implementation, but by using whitelists and a naïve URL detection implementation XSS may be prevented. Use at your own risk though.
Content Security Policy headers and per-request nonces for ASP.NET Core and Umbraco CMS 13 to 18. Provides nonce generation, tag helpers, view components and middleware.
A comprehensive security hardening package for ASP.NET Core Web APIs that automatically mitigates SQL Injection, XSS, CSRF, JWT attacks, rate limiting, and more OWASP Top 10 threats.
Context-aware HTML template engine for ASP.NET Core using C# string interpolation. Automatically escapes interpolated values based on HTML context (content, attributes, URLs) to prevent XSS.
Offline, zero-infrastructure .NET SAST scanner embedded directly in your SDK. Unlike SonarQube (Java 17 + PostgreSQL + 2 GB RAM), Primus Security activates with one NuGet package and one line of code. v2.1.0 ships 60 Roslyn-based SAST analyzers, 100 secret-detection patterns, SARIF 2.1.0 export, OWASP Top 10 2021 compliance report, configurable quality gates, A–E security ratings, persistent suppression store, baseline delta, and a 40-rule catalog with before/after code patches — all offline, air-gap safe. Beats SonarQube Community Edition for .NET on: SARIF export, OWASP report, CWE/PCI-DSS compliance, AI-agent MCP tools, and zero server infrastructure.
Middleware to sanitize HTTP headers and JSON request bodies
Refuses unsafe SVG and PDF uploads in Umbraco before they are stored. Parses rather than pattern matches, allowlists what is safe, and rejects rather than strips. Includes a health check for files already in the media library. Secure with zero configuration.
Biblioteca de segurança para validação de requisições HTTP com proteção contra SQL Injection, XSS, Path Traversal e outras ameaças.
A lightweight library designed to easily add standard security headers to ASP.NET applications.
Library that contains helpfull implementation for your web app application to reduce XSS risks.
Whitelist-based HTML sanitizer for XSS prevention with configurable allowed tags, attributes, and URL schemes.
A .NET 8 NuGet package for scanning API endpoints for common security vulnerabilities like SQL Injection, XSS, CSRF, and more.
Comprehensive security middleware for ASP.NET Core applications to protect against common web attacks and vulnerabilities
Core detection engines (SQL injection, XSS, command injection), RaspAlertBus and RaspContext for RASP.Net. Phase A: no runtime patching, AOT- and trim-compatible.
Enterprise Application Foundation - HTML sanitizer module
A .NET 8 NuGet package for scanning API endpoints for common security vulnerabilities like SQL Injection, XSS, CSRF, and more.
Safe-by-default Markdown to HTML for user- and CMS-authored content: raw HTML disabled, link and image URLs checked against a scheme allow-list at the Markdig AST/renderer level, external-link rel policy, and deterministic heading ids. Headless; wrap the result in a Blazor MarkupString yourself.