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.

South African diamond mines are closing due to weak sales and lab-grown stones

https://www.wsj.com/business/diamond-mines-are-closing-and-south-africans-have-few-alternatives-f...
2•bookofjoe•7m ago•1 comments

Obscura: Native rendering is here. No Chromium required

https://github.com/h4ckf0r0day/obscura
2•partsch•8m ago•0 comments

Show HN: Virtual photoshoot for guys who dislike having their pic taken

https://vibeflirting.com/
2•Ritjert•9m ago•0 comments

Researchers Spot Fake Ancient Pottery Using the Earth's Magnetic Field

https://www.smithsonianmag.com/smart-news/researchers-determine-how-to-spot-fake-ancient-pottery-...
2•cisc•10m ago•0 comments

OpenRDX

https://github.com/SunboX/OpenRDX
2•SunboX•11m ago•0 comments

OpenAI Response to the Wiki Incident

https://twitter.com/OpenAI/status/2096133504417616165
2•theCricketer•14m ago•1 comments

Lazygit

https://lazygit.dev/
3•amirmasoudabdol•16m ago•0 comments

Show HN: Fast Cut Video tool for cutting video for Agents

https://github.com/modecir/fast-cutvid
3•Modecir•18m ago•0 comments

How AI is breaking the British state

https://www.economist.com/leaders/2026/08/06/how-ai-is-breaking-the-british-state
2•tchalla•19m ago•0 comments

Show HN: I replaced my portfolio with an AI that knows me

https://xlogic.sh/
2•AaronJonk•19m ago•0 comments

What different world maps get right – and what they get wrong

https://www.bbc.com/news/articles/cly5r60v4mro
2•1659447091•20m ago•0 comments

Read efficiency issues in Postgres queries

https://www.pgmustard.com/blog/read-efficiency-issues-in-postgres-queries
2•blueshoess•21m ago•0 comments

Show HN: Phntm-ONE: I built a local AI desk assistant

https://www.phntmcore.com/
2•phntmcore•21m ago•0 comments

Make Peace with Darwin

https://www.overcomingbias.com/p/make-peace-with-darwin
2•paulpauper•21m ago•0 comments

The Scaling versus Profitability Trade-Off: Venture Capital's Weakest Link

https://aswathdamodaran.substack.com/p/the-scaling-versus-profitability
2•paulpauper•24m ago•0 comments

Show HN: I made a sea Tamagotchi game in Three.js

https://seal-tamagotchi-zyrmx.reachpad.app
2•sakuraiben•26m ago•0 comments

Worldbuilding Gender

https://millicosm.substack.com/p/worldbuilding-gender
2•paulpauper•28m ago•0 comments

How to perform CPR and defibrillation training video (2020)

https://commons.wikimedia.org/wiki/File:Save_a_Life_Cymru_-_Training_video.webm
3•schnatterer•31m ago•1 comments

How do you filter noise from signal in programming resources?

2•taosx•33m ago•0 comments

PR review when everyone has LLMs

https://octet-stream.net/b/scb/2026-09-05-pr-review-when-everyone-has-llms.html
1•thombles•34m ago•0 comments

Show HN: Merge Wikipedia articles across languages into one page

https://github.com/gojiplus/wikifuse
1•neehao•35m ago•0 comments

From a Chocolate Wrapper to Concurrent InnoDB Page Splits

https://mariadb.org/from-a-chocolate-wrapper-to-concurrent-innodb-page-splits/
1•drrtuy•36m ago•0 comments

Daynode: Calendar, Reminders, and Notes

https://www.daynode.com/
1•handfuloflight•37m ago•0 comments

Crbro – Local, file-based memory for MCP agents with supersede/retract

https://github.com/Octonove/crbro-memory
2•cerebromcp•38m ago•0 comments

Show HN: Body Piercings in Charlotte NC

https://thepiercingfactory.net
2•wowinter15•44m ago•0 comments

Soviet dreams of the future / Madrobots Blog – Sudonull

https://sudonull.com/post/27649-Soviet-dreams-of-the-future-Madrobots-Blog/
2•rbanffy•45m ago•0 comments

Verifiable Domains Will Eat the World

https://twitter.com/jon_stokes/status/2091383885569405025
1•gmays•47m ago•0 comments

Webring.rip – 160k generated 1997 home pages, no back end

https://webring.rip/
3•henrychannel•49m ago•1 comments

Netflix's Multimodal Asset Personalization at Scale

https://netflixtechblog.com/maps-netflixs-multimodal-asset-personalization-at-scale-32f96320785e
1•vzhou842•50m ago•0 comments

Your Boss Is Watching You

https://nautil.us/your-boss-is-watching-you-1284806
4•devonnull•50m ago•1 comments