security
ASP.NET Core and .NET Security Articles, Tutorials & News
ASP.NET Core and .NET Security articles, tutorials, and news from the DotNetNews archive.
562 articles Updated
This DotNetNews topic collects ASP.NET Core security material from the daily archive. ASP.NET Core and .NET Security sits in the ASP.NET Core and broader Microsoft web stack that most C# services use. The page is for people who already ship C# and need a faster way to find relevant posts.
Expect publisher tutorials, release notes, architecture write-ups, and field notes linked from DotNetNews issues. Start here is a short editorial shortlist for ASP.NET Core and .NET Security; the archive list is chronological and larger. Nothing here claims every article was production-tested by the editors.
Recurring subtopics in recent issues include ASP.NET Core security, .NET security, secure coding C#, and ASP.NET Core hardening. Secondary angles such as ASP.NET Core security and .NET security appear when the archive actually covered them. Related hubs such as ASP.NET Core Authentication and ASP.NET Core Authorization cover adjacent problems.
Each card points at the original publisher URL and the DotNetNews issue that carried it, so you can read the article in context or jump straight to the source.
Start here
Editor picks for Security
-
Implementing Passkey Authentication in ASP.NET Core Applications
C# Corner Issue #502
Passkeys keep moving from nice-to-have to baseline. Good starter piece for WebAuthn in ASP.NET Core.
-
OWASP Top 10 for .NET Developers - Part 8: Preventing Software and Data Integrity Failures
Medium Issue #497
A worthwhile security reminder that clean scans and passing tests do not cover supply-chain and integrity failure risks.
-
Why and When We Need to Use [CustomAuthorize] in ASP.NET
Medium Issue #497
Custom authorization is easy to overuse, so the "when" is the important part of this discussion.
-
How to Implement Passkey Authentication in ASP.NET Core Applications
C# Corner Issue #491
Implement secure passkey authentication in ASP.NET Core apps.
-
How Hidden Security Vulnerabilities Turn Into Business-Critical Incidents in Modern Applications
Medium Issue #490
Less framework-specific, but the business framing around hidden vulnerabilities and incident cost is still relevant for engineering leads.
-
Elsa 3.8 Preview: Secrets, State Machines, and a Security Hardening Pass
Medium Issue #489
Worth a skim if Elsa is on your radar and you care about security posture.
-
Building for the agentic web with .NET 11
YouTube Issue #472
Agentic web apps on .NET 11 shift from request-response to autonomous agent patterns.
-
Stop prompt injection from hijacking your agent, new security capabilities now released within Agent Framework
Microsoft Dev Blogs Issue #465
Prompt injection is still the biggest agent risk, so I'm glad to see more concrete platform defenses landing here.
Archive
Page 1 of 23
Newest first
-
How do you run a query against data the database can’t read?
Microsoft Dev Blogs Issue #589
Under the Hood: The Research Behind Microsoft SQL, part 3 Encryption at rest solves one threat. It stops someone who walks off with the disk. It does nothing about someone with administrative access t...
-
The Silent Serialization Trap: Safeguarding .NET JSON and XML Contracts During Obfuscation
Medium Issue #588
The Architectural Dilemma: Security vs. Interoperability
-
Opening a Legacy System to the Outside World: Building a Secure Customer API in .NET 10
Medium Issue #588
The brief
-
Encrypted, Tamper-Proof Tokens: Designing a C# Library for Expiring Download Links
Csharp on Medium Issue #582
A stateless, compact .NET 10 library with key rotation: what it does well, what it doesn’t, and when it makes sense to use itContinue reading on Stackademic »
-
Adding Human Approval Before an AI Agent Changes Production Systems
C# Corner Issue #581
Build a human approval workflow for AI agents that propose production changes using ASP.NET Core, C#, Entity Framework Core, and auditable execution controls.
-
How to Test AI Agents Against Prompt Injection Hidden in Tool Results
C# Corner Issue #578
Learn how to test AI agents for indirect prompt injection in tool results, verify tool authorization and side effects, and build adversarial xUnit tests in C#.
-
.NET October 2026 Out-of-Band Security Updates
Microsoft Dev Blogs Issue #578
Today, we are releasing out-of-band (OOB) security updates for .NET 8, .NET 9, and .NET 10, along with .NET 11 Release Candidate 3. We recommend updating as soon as possible. Security updates This out...
-
How to Sign Custom AWS HTTP Requests in .NET Using the SigV4 Signer
C# Corner Issue #577
Learn how to use the AWS SigV4 signer in .NET to sign and send custom HTTP requests with AWS credentials, regions, and service settings.
-
Keep PII Out of the Prompt: Reversible Pseudonymization for LLM Calls in .NET 10
Medium Issue #577
Mask names, emails, phones, IBANs and cards before the model sees them, then put them back safely, with one .NET middleware.
-
Your MCP Tool Should Ask First: Human Confirmation with Elicitation and MRTR in .NET 10
Medium Issue #577
Stateless MCP servers can now pause a tool and ask the user. How to build it in C# without trusting the requestState that comes back.
-
MCP Servers in C#: How They Work and How to Build One
C# Corner Issue #576
Learn how MCP servers expose tools to Claude, Copilot and ChatGPT, what the stateless 2026-07-28 spec changed, and how to build, connect and secure one in C#.
-
Building Enterprise-Ready Agentic AI Workflows Using .NET, Azure OpenAI, and Multi-Agent Orchestration
C# Corner Issue #576
Learn how to design enterprise Agentic AI workflows with .NET, Azure OpenAI, and multi-agent orchestration, including architecture, coordination, security, and integrations.
-
Securing AI Agent Tool Calls in .NET with an MCP Gateway
C# Corner Issue #575
Teams building agents in .NET meet the tool problem early. A Semantic Kernel function or an MCP client can call a database, a repository, or an internal service, and the moment it works, the questions...
-
Keeping a Secret Role on the Server in a Real-Time SignalR Game
Medium Issue #575
How I kept the spy’s identity out of every browser in Casus by sending each player their own view over SignalR, and tested it over real…
-
How to Revoke a JWT Before It Expires
Milan's .NET Weekly Issue #574
ASP.NET Core validates a JWT by its signature and expiry, so a stolen token keeps working after the user changes their password.
-
How Long Should You Keep Closed Dependabot Alerts?
C# Corner - Riya Patel Issue #574
-
How to Test Post-Quantum Key Exchange APIs in .NET 11
C# Corner Issue #573
Learn how to test ML-KEM key encapsulation and decapsulation in .NET 11, including shared-secret verification, key import, invalid-input handling, and cross-platform support.
-
NVIDIA Launches Open Agent Safety Platform for AI Agents
C# Corner - Mahesh Chand Issue #572
-
Stop shipping the sops binary in your .NET images
Medium Issue #572
SOPS is a good way to keep secrets in git. It encrypts the values in a YAML, JSON, dotenv, INI or binary file while leaving the keys…
-
How to Secure File Uploads in ASP.NET Core by Checking File Signatures
C# Corner Issue #572
Learn how to secure ASP.NET Core file uploads by validating file signatures, enforcing allowlists and size limits, and safely handling uploaded files.
-
Your AI coding agent can leak one customer’s data to another — and every test will still pass
Medium Issue #571
I built TenantLint, an open-source Roslyn analyzer that catches cross-tenant data leaks in .NET at build time: in your IDE, in CI, and…
-
How to Add Rate Limiting to ASP.NET Core APIs
C# Corner Issue #570
Learn how to configure and apply ASP.NET Core rate limiting policies, choose limiter algorithms, and return HTTP 429 responses for excessive API requests.
-
GitHub Is Changing Dependabot Alert Retention: What Gets Deleted?
C# Corner - Riya Patel Issue #570
-
How to Secure File Uploads in ASP.NET Core by Checking File Signatures
C# Corner Issue #569
Learn how to secure ASP.NET Core file uploads by validating file signatures, enforcing size limits, and safely storing uploaded files.