惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
D
Docker
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
美团技术团队
博客园 - 叶小钗
I
InfoQ
Jina AI
Jina AI
博客园 - 司徒正美
雷峰网
雷峰网
B
Blog
Y
Y Combinator Blog
A
About on SuperTechFans
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Recent Announcements
Recent Announcements
V
V2EX
N
Netflix TechBlog - Medium

Help Net Security

Police arrest 10 suspected members of Black Axe cybercrime gang ShinyHunters claims it stole 1.4 million records from Udemy Sevii unveils Cyber Swarm Defense Mode to stop AI-driven attacks at scale Alleged Chinese hacker extradited to US over cyberattacks targeting COVID-19 research Cequence Agent Personas bring granular control and governance to enterprise AI agents NowSecure MARI gives enterprises evidence-based visibility into third-party mobile app risk The metrics killing your SOC, and what to use instead US state privacy fines reached $3.425 billion in 2025 Canada’s first SMS blaster case leads to three arrests Linux storage management tool Stratis 3.9.0 adds online encryption and cache-less pool startup TLS Connect gives SMBs a right-sized automated tool to manage TLS certificates Aptori expands its platform with autonomous offensive testing to reduce security bottlenecks Your IAM was built for humans, AI agents don’t care The AI criminal mastermind is already hiring on gig platforms 25 open-source cybersecurity tools that don’t care about your budget Product showcase: LuLu reveals unauthorized outbound connections from Mac apps Week in review: Claude Mythos finds 271 Firefox flaws, Vercel breach Users advised to drop passwords and make room for passkeys - Help Net Security Indirect prompt injection is taking hold in the wild - Help Net Security Compromised everyday devices power Chinese cyber espionage operations - Help Net Security New Cisco firewall malware can only be killed by pulling the plug - Help Net Security Meta is overhauling how you sign in, manage settings, and protect your accounts - Help Net Security Ubuntu 26.04 LTS delivers memory-safe system tools and live patching for Arm servers - Help Net Security OpenAI’s GPT-5.5 is out with expanded cybersecurity safeguards - Help Net Security AI is speeding up nation-state cyber programs - Help Net Security A study of 1,000 Android apps finds a privacy policy logging gap - Help Net Security IT spending to hit $6.31 trillion record, thanks to AI - Help Net Security Where AI in CI/CD is working for engineering teams - Help Net Security With AI's help, North Korean hackers stumbled into a near-undetectable attack - Help Net Security Hacker with a special interest in breaching sports institutions ends behind bars - Help Net Security
Microsoft AntiSSRF open-source library helps block server...
Anamarija Pogorelec · 2026-06-17 · via Help Net Security

AntiSSRF is an open-source code library from Microsoft that validates URLs and network connections to reduce server-side request forgery (SSRF) risks in web applications. It supports .NET and Node.js applications and is distributed under the MIT license. The library works as a drop-in component, giving developers a way to check untrusted input before their applications make outbound requests.

Microsoft AntiSSRF

What the library targets

Server-side request forgery is a web security vulnerability in which an attacker manipulates a server-side application into making network requests to an arbitrary endpoint. An attacker who succeeds can direct the target server to connect to internal networks or send sensitive data to an untrusted endpoint on the internet. Listed consequences include exposure of internal services, leakage of sensitive data, service disruption, and remote code execution.

A common path to these vulnerabilities involves customer-supplied strings that form or build a URL. When those strings go unvalidated, they can enable SSRF, which can result in token theft. The project treats all incoming HTTP requests as untrusted, including user-provided URLs and identifiers, data from external APIs and webhooks, configuration values that users can influence, and requests from a service’s own backend components. Data that does not appear to be a URL, such as a workspace name concatenated into one, falls under the same requirement for validation.

How it works

AntiSSRF validates URLs and network connections automatically and refuses input it deems unsafe. It supplies an agent that prevents HTTP requests from reaching internal or sensitive IP addresses.

Configuration centers on an AntiSSRFPolicy object. Its properties let developers define allowed and denied addresses, deny all unspecified IPs, permit or block plain-text HTTP, and set required and denied headers. A URIValidator component provides domain checks, including methods that confirm whether a URI sits within an Azure Key Vault domain or an Azure Storage domain.

The .NET library serves web clients that use HttpClient objects. The Node.js library handles requests that use Node.js HTTP and HTTPS agents. Documentation includes Node.js samples for Axios, follow-redirects, and node-fetch.

Microsoft AntiSSRF is available for free on GitHub.

Must read:

Subscribe to the Help Net Security ad-free monthly newsletter to stay informed on the essential open-source cybersecurity tools. Subscribe here!