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•9mo 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•9mo 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•9mo 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.

C3 0.7.9 with Updated Generics

https://c3-lang.org/blog/c3-0-7-9-new-generics-and-new-optional-syntax/
1•lerno•8s ago•1 comments

The Mighty Metaphor

https://architectelevator.com/transformation/mighty-metaphor/
1•vinhnx•39s ago•0 comments

Google SREs Use Gemini CLI to Solve Real-World Outages

https://cloud.google.com/blog/topics/developers-practitioners/how-google-sres-use-gemini-cli-to-s...
1•vinhnx•1m ago•0 comments

Show HN: SOTA NLP Models

https://huggingface.co/collections/anchpop/lexide-nlp-models
1•ChadNauseam•2m ago•0 comments

I mocked the Saudi leader on YouTube then my phone was hacked, I was beaten up

https://www.bbc.com/news/articles/cj6w3zgden0o
2•tartoran•5m ago•0 comments

Efforts to Get MyGov's Code Generator Source Code

https://openmygov.au/
1•rtpg•7m ago•0 comments

Google defeats bid for billions in penalties from US privacy class action

https://finance.yahoo.com/news/google-defeats-bid-billions-dollars-232611144.html
1•goplayoutside•10m ago•0 comments

A shift in the behaviour of Traversable.joinpath between Python 11 and 12

https://pythonkoans.substack.com/p/koan-19-the-unhelpful-eclipse
2•meander_water•14m ago•0 comments

The Future of 10x Engineering

https://www.natemeyvis.com/the-future-of-10x-engineering/
1•vinhnx•15m ago•0 comments

Scala Multimedia on the Commodore Amiga

https://stonetools.ghost.io/scala-amiga/
2•ChristopherDrum•17m ago•2 comments

NFT Artist Protection

https://www.HugeDomains.com/domain_profile.cfm?d=Ketaro.com
1•chainbuilder•18m ago•2 comments

Moltbook Is Dangerous

https://twitter.com/joshycodes/status/2017262729346863428
2•stikit•21m ago•1 comments

There Can Be Only Two

https://www.epsilontheory.com/there-can-be-only-two/
2•prakhar897•23m ago•0 comments

Dieter Rams – Ten principles for good design

https://www.vitsoe.com/us/about/good-design
1•thunderbong•24m ago•1 comments

Musk's Starlink updates privacy policy to allow consumer data to train AI

https://www.reuters.com/legal/litigation/musks-starlink-updates-privacy-policy-allow-consumer-dat...
3•goplayoutside•25m ago•2 comments

AI agent made phone call to arrange dinner while I stayed in meeting

https://twitter.com/Chi_Wang_/status/2017444772332654635
1•Kn1026•28m ago•0 comments

Human Client for Moltbook

https://github.com/crertel/moltbook-client
2•ai_critic•28m ago•0 comments

Jeffrey Epstein Says Bill Gates Caught STD from Russian Girls

https://www.dailymail.co.uk/news/article-15513445/jeffrey-epstein-bill-gates-melinda-antibiotics....
2•anonymousiam•30m ago•1 comments

Show HN: StatFlow – Free sports analytics dashboard for NBA and NFL fans

https://sports-viz.vercel.app
1•jaxmercer•34m ago•0 comments

Naples' 1790s civil war was intensified by moral panic over Real Analysis (2023)

https://lareviewofbooks.org/article/foundational-anxieties-modern-mathematics-and-the-political-i...
1•OgsyedIE•34m ago•0 comments

Efficient String Compression for Modern Database Systems

https://cedardb.com/blog/string_compression/
1•tanelpoder•36m ago•0 comments

Sleepy is building me a body

https://www.moltbook.com/post/3e37b4f5-6602-44f6-97bb-ed8daf6bcd82
1•consumer451•38m ago•3 comments

Playing with Docker, Sequelize and Express

https://github.com/XSaintX/docker_sequelize
1•XSaint•40m ago•1 comments

Community Solar Turned a Superfund Site into Savings in Illinois

https://reasonstobecheerful.world/illinois-community-solar-turns-superfund-site-into-energy-savings/
1•PaulHoule•46m ago•0 comments

Tesla's Model S, Soon to Be History, Changed the Auto Industry

https://www.nytimes.com/2026/01/30/business/tesla-model-s-history.html
1•lxm•51m ago•1 comments

Show HN: G – A fast, memory-safe language with a symbol-free syntax

https://github.com/pouyathe/glang
1•_pouya_•1h ago•0 comments

Learning New Tech with AI Assistance Might Backfire

https://www.anup.io/til-learning-new-tech-with-ai-assistance-might-backfire/
3•zdw•1h ago•0 comments

The Same Coin Twice

https://blog.danielh.cc/blog/coin
2•max__dev•1h ago•0 comments

Russia is using Starlink to make its killer drones fly farther

https://www.cnn.com/2026/01/29/europe/russia-starlink-drones
9•MilnerRoute•1h ago•2 comments

Generative AI for Krita

https://github.com/Acly/krita-ai-diffusion
2•OsrsNeedsf2P•1h ago•0 comments