Tags

#security
security

49stories
1 d agolatest
Cosmos DB
Check keys before rotating
CDAzure Cosmos DB Blog Iria Osara Oct 21

Safe Key Rotation for Azure Cosmos DB is now generally available

Azure Cosmos DB's Safe Key Rotation now shows the last-used timestamp for each account key and can be turned on from the Features blade in the Azure portal. Teams can confirm whether a key is still in use before regenerating it or disabling local authentication. That lowers the risk of an outage caused by rotating a key that a forgotten application still depends on.

ASP.NET Core
Keep the cookie small

Shrinking the ASP.NET Core auth cookie with ITicketStore

Cookie authentication in ASP.NET Core serializes the whole AuthenticationTicket into the cookie, so large claim sets can push it past WAF limits. Implementing ITicketStore keeps the ticket on the server and leaves only a session key in the cookie. The article compares an in-memory store with a distributed cache version and discusses the scaling and revocation trade-offs.

Claude security
Shrink reachable code

Using Claude to shrink code attack surface: 493 issues in 25 projects

Anthropic shared research on using Claude to find code that a deployment can reach but does not need, then restrict or remove it. Across 25 open-source projects with over five million lines, it reported 493 issues. In OpenSSH, about 4,500 lines of experimental post-quantum signature code reachable before authentication were addressed in releases 10.5 and 10.6. It is a concrete method for teams using AI in security reviews.

Foundry Agent
MCP in Foundry agents
BTTaiseer Joudeh (Bit of Tech) Taiseer Joudeh Oct 20

Connecting an MCP Server to Microsoft Foundry Agent Service

Part 9 of Taiseer Joudeh's MCP series shows how to attach an existing ASP.NET Core MCP server to a hosted Foundry agent without changing its code. The setup covers a Foundry project, an Entra app registration, a custom MCP connection using OAuth identity passthrough, and a toolbox. It matters for .NET teams that want the agent loop in Azure while user-based authorization still works.

MCP · ASP.NET Core
Your API as MCP tools
DVDEV Community: #aspnetcore Rahmat Afridi Oct 19

Exposing Existing ASP.NET Core APIs to AI Agents with a Secure MCP Server

A practical guide to adding a Model Context Protocol server to an existing ASP.NET Core app using the official ModelContextProtocol C# SDK. It covers wrapping existing services as read-only tools, locking the endpoint down with JWT authentication and per-tool authorization, and verifying the surface with an MCP client. Useful for teams that want AI agents to use their current APIs without a rewrite.

Graph + RAG
RAG over Microsoft Graph
DPdotnetpro (de) Dr. Veikko Krypczyk Oct 19

Building a RAG assistant with Microsoft Graph and .NET

Microsoft Graph supplies calendar, mail and document data that can be indexed with Azure AI Search and passed to a language model to produce sourced answers. The article walks through a .NET retrieval-augmented generation flow with code for loading context, chunking documents and calling the model. It stresses least-privilege scopes and permission-aware retrieval, which matter for any enterprise assistant.

ADFS + OIDC
Extra claims from ADFS

Using the ADFS userinfo endpoint instead of allatclaims

This post shows how to keep the ADFS ID token small and fetch extra claims from the OpenID Connect userinfo endpoint instead of using allatclaims. It covers the urn:microsoft:userinfo claim rules and the ASP.NET Core OpenIdConnect setting that merges those claims. It also flags the audience error that appears when the wrong token is sent.

ASP.NET Core
Review agent-written code
DVDEV Community: #aspnetcore Mehdi Mohseni Oct 18

Reviewing Agent-Written .NET Code: Green Builds Can Still Hide Bugs

Mehdi Mohseni argues that coding agents now write much of the code, but developers still need the judgment to spot code that looks right and is wrong. Using ASP.NET Core examples, he shows how generated code can compile, pass tests and still hide a fail-open security check or a silent misconfiguration. A practical read for anyone reviewing agent output.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message