frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•10mo ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•10mo ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•10mo ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

Proximity Chat for AI Agents

https://github.com/R0mainBatlle/claw-agora
1•romain_batlle•32s ago•1 comments

Design Chose Breaking AI Workloads

https://www.cerebrium.ai/blog/rethinking-container-image-distribution-to-eliminate-cold-starts
1•za_mike157•38s ago•0 comments

Show HN: I built a CLI that builds a knowledge graph from your code using LLMs

https://github.com/gzoonet/cortex
1•gzoo•1m ago•0 comments

Show HN: I Replaced MyFitnessPal and Other Apps with a Single MCP Server

https://medium.com/@akutishevsky/how-i-replaced-myfitnesspal-and-other-apps-with-a-single-mcp-ser...
1•ktshvsk•3m ago•0 comments

DARPA's new X-76 Experimental Plane

https://www.darpa.mil/news/2026/darpa-new-x-76-speed-of-jet-freedom-of-helicopter
1•newer_vienna•5m ago•0 comments

Lindsey Graham on US war on Iran:'We're going to make a tonne of money'

https://www.aljazeera.com/news/2026/3/9/we-are-going-make-a-tonne-of-money-us-senator-graham-on-u...
2•inaros•5m ago•0 comments

Seccomp – Unsafe at any speed (2022)

https://blog.habets.se/2022/03/seccomp-unsafe-at-any-speed.html
1•lolpython•5m ago•0 comments

Launch HN: Terminal Use (YC W26) – Vercel for filesystem-based agents

1•filipbalucha•5m ago•0 comments

Complaining Is the Mind Killer

https://investing101.substack.com/p/complaining-is-the-mind-killer
2•AnhTho_FR•6m ago•0 comments

I don't know Apple's endgame for the Fn/Globe key–or if Apple does

https://aresluna.org/fn/
2•tambourine_man•6m ago•0 comments

Two-Key Writes: Preventing Accidental Autonomy in AI Systems

https://heavythoughtcloud.com/knowledge/two-key-writes-in-ai-systems
2•ryan-s•6m ago•0 comments

The purpose of Continuous Integration is to fail

https://blog.nix-ci.com/post/2026-02-05_the-purpose-of-ci-is-to-fail
2•Norfair•6m ago•0 comments

Anthropic Sues U.S. Defense Department, Pete Hegseth for Targeting the Company

https://www.wsj.com/politics/national-security/anthropic-sues-trump-administration-for-targeting-...
3•dcgudeman•7m ago•0 comments

Online LTL Toolset

https://spot.lre.epita.fr/app/
1•todsacerdoti•7m ago•0 comments

Intelligence: Russian state hackers targeting Dutch Signal and WhatsApp accounts

https://nltimes.nl/2026/03/09/intelligence-confirms-russian-state-hackers-targeting-dutch-signal-...
1•giuliomagnifico•8m ago•1 comments

What I Always Wanted to Know about Second Class Values

https://dl.acm.org/doi/epdf/10.1145/3759427.3760373
2•todsacerdoti•9m ago•0 comments

Open-source AI coding agent skill that finds and fixes infra security misconfigs

https://github.com/coguardio/misconfiguration-detection-skill
2•AlbertHeinle•10m ago•1 comments

Anthropic investors grow frustrated with CEO after feds ban AI startup

https://nypost.com/2026/03/04/business/anthropic-investors-urge-truce-with-pentagon-as-lockheed-m...
9•1vuio0pswjnm7•11m ago•0 comments

TCS had a perfect security score. Then M&S and JLR were breached

https://counterpartywatch.substack.com/p/tcs-had-a-perfect-security-score
4•kseniamorph•14m ago•1 comments

Show HN: I'm 21 and I Just Launched a Website Game

https://www.scalify.ai
2•josh-ternyak•14m ago•0 comments

Decoding Your Vehicle Identification Number

https://crewchief.cc/blog/decoding-your-vin
2•meandave•14m ago•0 comments

Show HN: Execute local prompts in SSH remote shells

https://docs.promptcmd.sh/integrations/ssh
2•tgalal•15m ago•1 comments

Show HN: I built a harness that blocks AI from building until ambiguity < 0.2

https://github.com/Q00/ouroboros
1•q00•15m ago•0 comments

AI Didn't Destroy Your Company, Your Processes Did

https://linuxjedi.co.uk/ai-didnt-destroy-your-company-your-processes-did/
5•speckx•15m ago•1 comments

JSLinux Now Supports x86_64

https://bellard.org/jslinux/
2•TechTechTech•16m ago•0 comments

Helix 02 Living Room Tidy

https://www.figure.ai/news/helix-02-living-room-tidy
1•pr337h4m•17m ago•0 comments

First Multi-Behavior Brain Upload

https://twitter.com/alexwg/status/2030217301929132323
1•rudolftheone•17m ago•1 comments

Drop in overseas workers is 'car crash' for UK hospitals and care homes

https://www.theguardian.com/society/2026/feb/26/drop-in-overseas-workers-uk-hospitals-and-care-homes
3•PaulHoule•17m ago•0 comments

Jolla on track to ship new phone with Sailfish OS, user-replaceable battery

https://liliputing.com/the-new-jolla-phone-with-sailfish-os-is-on-track-to-start-shipping-in-the-...
17•heresie-dabord•17m ago•1 comments

Improving AI models' ability to explain their predictions

https://news.mit.edu/2026/improving-ai-models-ability-explain-predictions-0309
3•mikhael•17m ago•0 comments