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

Microsoft Scout

https://learn.microsoft.com/en-us/microsoft-scout/
1•doppp•4m ago•0 comments

Show HN: an AI that settles small couple arguments

https://thepiece.app/en
2•Byalpel•13m ago•0 comments

Teaching AI agents to ask better questions by playing "Battleship"

https://news.mit.edu/2026/teaching-ai-agents-ask-better-questions-playing-battleship-0603
1•droidjj•14m ago•0 comments

Digital Goods by ProxyStore

https://digitalgoods.proxysto.re/en
1•Cider9986•15m ago•0 comments

A Structure-Aware Fuzzing Experiment

https://fitzgen.com/2026/06/01/structure-aware-fuzzing-experiment.html
1•sfink•21m ago•0 comments

A Primer in Post-Training Reasoning Data: What We Know About How It Works

https://arxiv.org/abs/2606.02113
1•Anon84•21m ago•0 comments

JackHamr, cloud workspaces for orchestrating coding agents

https://www.jackhamr.ai
2•jrda•21m ago•0 comments

FUTO Swipe Relative error rate improvement vs. Gboard

https://swipe.futo.tech/
1•Cider9986•24m ago•0 comments

California Back and Pain Specialists Exposes 133GB of Patient Medical Records

https://write-ups.security-chu.com/2026/06/California-Back-Pain-Specialists-with-data-breach.html
1•news_rt•28m ago•0 comments

Pie: Yet another open-source coding agent in Rust

https://github.com/c4pt0r/pie
1•c4pt0r•29m ago•2 comments

I built a vulnerable app and spent $1,500 seeing if LLMs could hack it

https://kasra.blog/blog/i-spent-1500-seeing-if-llms-could-hack-my-app/
14•jc4p•33m ago•0 comments

Review of the MoErgo Go60 Keyboard

https://arslan.io/2026/06/02/review-of-the-moergo-go60-keyboard/
1•wapasta•33m ago•0 comments

Klaser Cards, a printable personal collection

https://klaser.cards/
2•Triphibian•34m ago•1 comments

Why Video Agent models are next

https://www.latent.space/p/video-agents
2•gmays•34m ago•0 comments

Dreambeans

https://labs.google/dreambeans
1•fallinditch•35m ago•0 comments

Aquifer – local flow control for bursty GPU-backed APIs

https://github.com/rjpruitt16/aquifer
1•rjpruitt16•35m ago•0 comments

Scholarly Futures: AI and the practical scientist

https://scholarlyfutures.substack.com/p/ai-and-the-practical-scientist
1•JohnHammersley•35m ago•0 comments

A community-ranked feed of blog posts from curated sources

https://bubbles.town/
1•wwfn•39m ago•1 comments

Dystopic Future: The Set Design in Alien

https://kevinmccorrytv.ca/alien-2.html
1•exvi•39m ago•0 comments

The Star Blazers Page

https://kevinmccorrytv.ca/blazers.html
2•exvi•40m ago•0 comments

Monterey Park votes to permanently ban datacenters

https://www.theguardian.com/us-news/2026/jun/03/california-monterey-park-datacenters-ban
4•logickkk1•40m ago•0 comments

Limbic Capitalism

https://cwcp.ca/blog/limbic-capitalism/
2•the-mitr•41m ago•0 comments

The Lost Space Battleship Yamato LaserDisc Game (2013)

https://www.ourstarblazers.com/vault/363/
1•exvi•41m ago•0 comments

Reflections on Two Years of Using Colemak

https://bojidar-bg.dev/blog/2023-12-27-colemak/
1•Curiositry•41m ago•0 comments

HTTP Pipelining

https://en.wikipedia.org/wiki/HTTP_pipelining
1•Brysonbw•42m ago•0 comments

U.S. to Dismantle System Tracking Atlantic Currents That Are at Risk of Collapse

https://e360.yale.edu/digest/trump-ooi-amoc
2•rguiscard•45m ago•0 comments

Show HN: tools wiki – cheatsheets for popular CLI commands

https://toolswiki.deebox.dev/
1•flexdinesh•46m ago•0 comments

Dumbphone 2

https://dumb.co/
3•skogstokig•48m ago•0 comments

Is Dreams of Violets AI slop – or the future of film-making?

https://www.theguardian.com/film/2026/jun/03/dreams-of-violets-ash-koosha-iran-tribeca-film-festival
2•fallinditch•50m ago•0 comments

Under the Hood of "Sum Ergo Demonstro" Demo [video]

https://www.youtube.com/watch?v=0_9YS2tsdYc
1•guiambros•51m ago•0 comments