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.

The American E.V. Has Been Crushed. Will It Take the U.S. Auto Industry with It?

https://www.nytimes.com/2026/07/15/magazine/electric-cars-american-evs.html
1•thelastgallon•22s ago•0 comments

Is the Industrial Revolution a good precedent for explosive growth today?

https://mattsclancy.github.io/2026/07/27/industrial-revolution-growth.html
1•NewCzech•4m ago•0 comments

I used a loophole in British law to fly a plane with no licence [video]

https://www.youtube.com/watch?v=GGCf9QuxXB8
1•skibz•4m ago•0 comments

When "no healthy upstream" isn't about the upstream you think

https://sahansera.dev/no-healthy-upstream/
2•sahan•5m ago•0 comments

Knuth versus Email

https://www-cs-faculty.stanford.edu/~knuth/email.html
2•thombles•8m ago•0 comments

Stock market turmoil sheds stark light on the opaque AI economy

https://www.theguardian.com/technology/2026/aug/02/stock-market-turmoil-nvidia-china-light-ai-eco...
3•beardyw•9m ago•0 comments

DropKick – A Minimal Commit/Reveal Rescue Protocol

https://conduition.io/bitcoin/dropkick/
3•cestef•10m ago•0 comments

Artificial Intelligence: Ars Notoria and the Promise of Instant Knowledge

https://publicdomainreview.org/essay/ars-notoria/
2•jruohonen•11m ago•0 comments

Show HN: We made Arcad, a parametric CAD in the browser, free and no signup

https://app.arcad.studio/
3•steinvakt2•13m ago•0 comments

The hive mind for your product

https://www.rtrvr.ai/rover/blog/hive-mind-for-your-product
2•quarkcarbon279•18m ago•1 comments

Call stack diffs

https://oskrim.github.io/engineering/2026/08/02/call-stack-diffs.html
3•tremguy•20m ago•0 comments

Moon landing anniversary, former astronauts say voting is Americans' mission

https://www.dailynews.com/2026/07/20/on-anniversary-of-moon-landing-former-astronauts-say-voting-...
2•rbanffy•22m ago•0 comments

A Top Law Firm Went from Standing Up to Trump to Bending the Knee

https://www.nytimes.com/2026/08/02/us/politics/paul-weiss-trump.html
2•sbulaev•22m ago•0 comments

Research Topics in ML, AI and Deep Learning

https://blog.sparsh.dev/research-topics-in-ml-ai-and-deep-learning/
2•sparshrestha•23m ago•0 comments

Xcsset is back: macOS malware that worms through Xcode projects

https://unit42.paloaltonetworks.com/xcsset-v40-malware-analysis/
2•nyku•26m ago•0 comments

She left her ex. He tracked her through a network of policing cameras

https://www.washingtonpost.com/technology/2026/08/02/how-police-officers-used-vast-network-camera...
3•pcl•28m ago•1 comments

Claude Code – Don't Attach Open File by Default

https://github.com/anthropics/claude-code/issues/63925
2•danmaz74•28m ago•0 comments

Play games with your brain signals using Octopus 16 wireless EEG device

https://www.cnx-software.com/2026/08/02/play-games-with-your-brain-signals-using-octopus-16-wirel...
3•giuliomagnifico•31m ago•0 comments

SUbstantial update to UK train mapping

https://trainmap.co.uk/map.html
2•optionalltd•35m ago•0 comments

How the Amiga Reads Floppies

https://www.techtravels.org/2008/09/how-the-amiga-reads-floppies/
2•Bluestein•36m ago•0 comments

Show HN: 8bit/cnlibs – 8bit Shadcn component library

https://8bit.cnlibs.com/
2•samke-•38m ago•0 comments

Archaeology Found Under England's Finest Fortified Manor House(Historic England) [video]

https://www.youtube.com/watch?v=W0Zj0kuylTQ
2•zeristor•39m ago•0 comments

Syzygy – Package and version integration knowledge as reusable CLI plugins

https://syz.sh
2•viaadus•39m ago•0 comments

Show HN: Syncular – offline-first SQL sync with TypeScript and Rust cores

https://github.com/syncular/syncular
9•quambo•41m ago•1 comments

Serving a 4GB video from Postgres: 2M rows in pg_largeobject

https://www.youtube.com/watch?v=pfu8OoCIU6g
2•navs•44m ago•0 comments

Show HN: Vein, a minimalist open-source resource management game

https://d2ykijtrvb890q.cloudfront.net/
2•thevahidal•44m ago•0 comments

US bank places trust in ransomware crew that promised to delete its data

https://www.theregister.com/cyber-crime/2026/07/31/us-bank-places-trust-in-ransomware-crew-that-p...
3•chrisjj•46m ago•0 comments

Entertainment Breakdown: Medium's Surging Pop-Culture Publication

https://medium.com/theentertainmentbreakdown/entertainment-breakdown-mediums-surging-pop-culture-...
2•raynchad•49m ago•1 comments

Freedom of Thought: The Fast-Growing Medium Publication That's Here to Stay

https://medium.com/freedomofthought
2•raynchad•50m ago•1 comments

Ask HN: Am I the only one getting so many cursor ads?

3•alexander2002•53m ago•2 comments