frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Certified in Theory, Broken in Practice: Assumption Gaps in Cryptographic Model

https://arxiv.org/abs/2607.21839
1•sbulaev•9m ago•0 comments

The Future Is Here (2009)

https://retout.co.uk/2009/10/25/the_future_is_here/
1•jruohonen•10m ago•0 comments

MonkeysCode and Capuchin AI: The Agentic IDE That Gives You Total Control

https://monkeyscode.com/blog/introducing-monkeyscode-capuchin-the-agentic-ide-that-gives-you-tota...
1•monkeyscloud•12m ago•0 comments

What Has Happened to Taste?

https://www.esquire.com/style/a71276009/what-has-happened-to-taste/
1•acmnrs•17m ago•0 comments

Kestrel – passive AD audit tool on native C

https://github.com/ssteelfactor-oss/Kestrel
1•steelfactor•22m ago•0 comments

Transformer Transformer: A Unified Model for Motion-Conditioned Robot Co-Design

https://transformer-transformer.github.io/
2•ilreb•23m ago•0 comments

Exit Codes

https://bettercli.org/design/exit-codes/
1•ankitg12•24m ago•0 comments

One transcript, four different GPA views

https://mongol-jimmi.github.io/medcompass-audit/guides/gpa-formulas.html
1•medcompassaudit•24m ago•0 comments

An autonomous fleet to turn your Intent into production systems

https://intentlab.ai/blog/turn-your-intent-into-production-systems
1•jinqueeny•26m ago•0 comments

Show HN: Poople Today – Word Ladders Ending in Poop

https://poopletoday.com/
1•aitooltrek-com•27m ago•0 comments

Show HN: I run 30B 22tok/s, 109tok/s not novel,6GB/16GB RAM overcoming llama.cpp

https://github.com/FedericoTs/quantprobe
1•federicoTXTS•28m ago•0 comments

Scrum's "Product Owner" Problem

https://rethinkingsoftware.substack.com/p/scrums-product-owner-problem
1•aard•28m ago•0 comments

When the Walls Came Down

http://scripting.com/2026/07/28/115945.html
2•Tomte•32m ago•0 comments

If U.S. labs slow down AGI development, this could be 2028

1•aliahad•35m ago•0 comments

Good CLI Design Is Mostly Silence

https://yarlson.dev/blog/good-cli-design-is-mostly-silence/
1•ankitg12•35m ago•0 comments

A dystopian world where LLMs can't code but can generate software binaries

https://twitter.com/random_walker/status/2082163285588107752
1•kristianpaul•39m ago•0 comments

The NEET Paper Leak

https://medium.com/freedomofthought/the-neet-paper-leak-why-accountability-matters-more-than-resi...
1•raynchad•39m ago•1 comments

Jason Arday

https://unherd.com/2026/07/jason-arday-cambridges-dei-darling/
1•Tomte•40m ago•0 comments

The Lisa: Apple's Most Influential Failure (2023)

https://computerhistory.org/blog/the-lisa-apples-most-influential-failure/
3•droidjj•40m ago•0 comments

FCC bans foreign-produced solar inverters, grid lockout begins today

https://pv-magazine-usa.com/2026/07/28/fcc-bans-foreign-produced-solar-inverters-grid-lockout-beg...
1•xbmcuser•42m ago•0 comments

Indian EV makers beat Tesla, BYD in global efficiency race

https://restofworld.org/2026/indian-evs-beat-tesla-byd-icct-efficiency-ranking/
1•donohoe•42m ago•0 comments

The Great Oxidation Event: How Cyanobacteria Changed Life

https://asm.org/articles/2022/february/the-great-oxidation-event-how-cyanobacteria-change
1•andsoitis•48m ago•1 comments

The rise of AI-written fiction book sales on Amazon, 2023-2026

https://twitter.com/TuhinChakr/status/2082124139973030095
1•qingcharles•55m ago•1 comments

Show HN: MetrIQ – An AI fitness coach who supports you

https://metriq.fitness
2•zinas•56m ago•1 comments

Le Crane: Analyzing Lithographs "Anamorphosis Suite" by Salvador Dalí

https://community.wolfram.com/groups/-/m/t/2701419
1•jruohonen•56m ago•0 comments

Going IndieWeb

https://www.roycehaynes.com/articles/going-indieweb/
2•roycehaynes•57m ago•0 comments

The Internet of AI

https://om.co/2026/05/04/say-hello-to-the-internet-of-ai/
1•simonpure•1h ago•0 comments

Cosmos 3 Edge

https://huggingface.co/blog/nvidia/cosmos3edge
2•gmays•1h ago•0 comments

Evolution as Fact and Theory

https://en.wikipedia.org/wiki/Evolution_as_fact_and_theory
2•chistev•1h ago•0 comments

Simulating the core pulse in Helion's Trenta

https://twitter.com/i/status/2082005900806783425
1•abhinavsns•1h ago•0 comments