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.

How to Build a Google Sheets API Integration with Nango and Codex

https://nango.dev/blog/how-to-build-a-google-sheets-api-integration-with-nango-and-codex/
1•sapneshnaik•37s ago•0 comments

Where Did Earth Get Its Oceans? Maybe It Made Them Itself

https://www.quantamagazine.org/where-did-earth-get-its-oceans-maybe-it-made-them-itself-20260612/
1•ibobev•1m ago•0 comments

C64IDE: Powerful, Free Mac Commodore 64 IDE Review

https://retrogamecoders.com/c64ide-review/
1•ibobev•2m ago•0 comments

You can power on a Mac remotely

https://www.jeffgeerling.com/blog/2026/power-on-your-mac-remotely/
1•speckx•2m ago•0 comments

After empty promises, string theory finds new uses

https://www.science.org/content/article/after-empty-promises-string-theory-finds-new-uses
1•the-mitr•3m ago•0 comments

Second Circuit Rejects Sam Bankman-Fried's Appeal

https://www.citationneeded.news/second-circuit-rejects-sam-bankman-frieds-appeal/
2•cdrnsf•3m ago•0 comments

Show HN: VibeClip – open-source AI video editor you control by chatting

https://github.com/oktaydbk54/vibeclip
1•borandabak•3m ago•0 comments

In the Atacama Desert, astronomers live and work in a James Bond villain lair

https://www.bbc.com/future/article/20260609-inside-the-bond-set-where-astronomers-live
1•bookofjoe•4m ago•1 comments

Review of Synthetic Users Finds Synthetic Users Don't Work

https://www.thevoiceofuser.com/the-largest-review-of-synthetic-participants-ever-conducted-found-...
1•cdrnsf•5m ago•0 comments

Wasi: WebGPU – A Proposed WebAssembly System Interface API

https://github.com/WebAssembly/wasi-webgpu
2•giancarlostoro•7m ago•0 comments

Show HN: StackScope – I crawled over 40k indie launches to see what they ship

https://stackscope.dev/
1•datafreak_•8m ago•0 comments

HN Comment Golf

1•dijksterhuis•9m ago•2 comments

Fluxor: A zero-dependency PHP framework with file-based routing

https://github.com/lizzyman04/fluxor
1•lizzyman04•10m ago•0 comments

Elon Musk Is Colonizing Earth

https://www.nytimes.com/2026/06/12/opinion/elon-musk-spacex-starbase-texas.html
2•dieselgate•12m ago•0 comments

Anthropic's Fable is the most locked-down public model we've ever seen

https://www.understandingai.org/p/anthropics-fable-is-the-most-locked
2•speckx•13m ago•0 comments

The Roblox Problem

https://bxwrites.substack.com/p/the-roblox-problem
1•bushwart•16m ago•0 comments

Swamp Is Interesting Because It Doesn't Trust AI

https://ravegraph.beehiiv.com/p/swamp-is-interesting-because-it-doesn-t-trust-ai
1•nickstinemates•16m ago•0 comments

Adding ext3/4 compliant journaling to the 30-year-old GNU Hurd microkernel

https://github.com/mnikic/hurd-journaling
1•backend_dev82•17m ago•1 comments

Show HN: World Cup bracket game with no back end – brackets live in the URL

https://golazo.giitaayan.com
1•fellowplayer•17m ago•0 comments

Show HN: A Terrible Way to Consume Hacker News – AI Slop

https://deadinternet.tech/feed
3•keegandonley•17m ago•0 comments

500M Subscriber Livestream [video]

https://www.youtube.com/watch?v=A9TikdsD5eg
1•Cider9986•18m ago•0 comments

CRISPR Tech Selectively Shreds Cancer Cells, Including "Undruggable" Cancers

https://innovativegenomics.org/news/crispr-technique-selectively-shreds-cancer-cells/
1•gmays•19m ago•0 comments

Commits

https://shub.club/writings/2026/june/commits/
1•forthwall•19m ago•0 comments

American Ebola Unit Sparks Fury, Protests and a Political Crisis in Kenya

https://www.nytimes.com/2026/06/10/world/africa/ebola-kenya-us-protests.html
1•ViktorRay•20m ago•0 comments

Tesla, SpaceX, and xAI are launching the most epic chip-building effort

https://terafab.ai/
2•binyu•20m ago•0 comments

Enshittification of Policing

https://www.christopherburg.com/blog/enshittification-of-policing/
7•speckx•21m ago•0 comments

From ML engineer to AI-native: reskilling toward an edge

https://shrikar.com/writing/ml-engineer-to-ai-native-reskill
1•shrikar•23m ago•1 comments

Why birth order can shape a kid's future and what parents can do about it

https://www.washingtonpost.com/climate-environment/2026/06/09/why-birth-order-can-shape-kid-futur...
1•gmays•24m ago•0 comments

SpaceX makes largest ever stock market debut at $1.77T valuation

https://www.theguardian.com/science/2026/jun/12/spacex-stock-price-ipo-spcx
2•thomascountz•24m ago•0 comments

Apple Cut Frequencies in WWDC Keynote to Prevent Siri Activations

https://www.macrumors.com/2026/06/12/apple-cut-frequencies-to-prevent-siri-activations/
3•dabinat•25m ago•0 comments