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.

Antiquated CSS and why we needed it

https://blog.omgmog.net/post/antiquated-css/
1•HotGarbage•57s ago•0 comments

Release 13.0.8 · Grafana/Grafana

https://github.com/grafana/grafana/releases/tag/v13.0.8
1•kyisaiah47•3m ago•0 comments

Smash Bros: Melee for the Web

https://lucasigel.com/melee
1•lukeigel•3m ago•0 comments

Plug-in hybrids emit six times on average in official tests claim – new EU data

https://www.transportenvironment.org/articles/plug-in-hybrids-emit-six-times-on-average-what-offi...
1•rguiscard•3m ago•0 comments

Free course covering basics of AI to be available to Canadians by end of year

https://www.cbc.ca/news/politics/ai-essentials-government-courses-solomon-9.7337417
1•BiraIgnacio•4m ago•0 comments

Racing with the Machines

https://peterturchin.substack.com/p/cliodynamics-and-ai-the-mid-2026
1•harscoat•6m ago•0 comments

Ontario court records accessed in cybersecurity breach

https://www.cbc.ca/news/canada/toronto/ontario-courts-cyber-attack-9.7337861
2•BiraIgnacio•9m ago•0 comments

He's Seen Images of 9/11 from Just About Every Angle. Except This One.

https://www.nytimes.com/2026/09/09/nyregion/911-disposable-camera.html
2•ChrisArchitect•11m ago•1 comments

OpenAI has solved the Navier-Stokes Millennium problem using $15M of AI effort

https://www.newscientist.com/article/2588063-openai-has-solved-the-navier-stokes-millennium-probl...
1•encodedrose•12m ago•1 comments

Show HN: A terminal Tetris game I made as my first Rust project

https://github.com/orangishcat/cursed-tetris
2•orangishcat•13m ago•0 comments

America Is the Outlier: What If We Privatized the Airport?

https://marbletech.us/p/america-is-the-outlier
2•kumarski•14m ago•0 comments

Antibody studies point the way to an HIV cure

https://www.aidsmap.com/news/sep-2026/we-finally-understand-what-we-have-do-antibody-studies-poin...
3•codebyaditya•16m ago•0 comments

A.I. Is Outsmarting Its Creators – The Daily

https://overcast.fm/+ABLPtsqdPGs
1•xaraya•19m ago•0 comments

Epstein Tycoon

https://www.reddit.com/r/aigamedev/s/Hj6oRheiQw
4•razodactyl•24m ago•0 comments

The Open Source AI Stack

https://www.together.ai/blog/the-open-source-ai-stack
1•simonpure•25m ago•0 comments

Spacefast: Hosting for Agent Publishing

https://spacefast.com/
1•handfuloflight•26m ago•0 comments

iPhone Duo has a large crease

https://www.reddit.com/r/pics/comments/1wbx1wo/there_is_a_crease/
3•FlamingMoe•26m ago•0 comments

HRF Condemns WP Engine for Blocking the Tyranny Tracker at the Kremlin's Behest

https://hrf.org/latest/hrf-condemns-wp-engine-for-blocking-the-tyranny-tracker-in-russia-at-the-k...
2•HotGarbage•28m ago•0 comments

Multigres v0.1 Alpha: an operating system for Postgres

https://supabase.com/blog/multigres-v0-1-alpha
3•znpy•28m ago•0 comments

FreeBSD working on new service manager

https://www.osnews.com/story/145933/freebsd-working-on-new-service-manager/
4•rguiscard•34m ago•0 comments

I'm sorry, you're not going to die from an AI-engineered supervirus

https://blog.genesmindsmachines.com/p/im-sorry-youre-not-going-to-die-from
28•jryb•36m ago•19 comments

The Software Engineering War

https://www.manager.dev/newsletter/the-software-engineering-war
2•fagnerbrack•37m ago•0 comments

Resting your laptop on your lap for long periods could risk skin disfiguration

https://www.scimex.org/newsfeed/resting-your-laptop-on-your-lap-for-long-periods-could-risk-skin-...
1•dabinat•39m ago•0 comments

WeWorm

https://calif.io/research/weworm
1•simonw•40m ago•0 comments

1900 Blizzard Developers Just Won a Union Contract

https://kotaku.com/blizzard-workers-union-contract-microsoft-2000732422
7•gpi•42m ago•0 comments

Belegio – Parsing grocery receipts down to the line item

https://belegio.loobia.net/en
1•MehrdadEshghi•44m ago•0 comments

iPhone 18 Pro Introduces 'Apple Reference Image' to Verify Photo Authenticity

https://www.macrumors.com/2026/09/09/apple-reference-image/
1•pgwhalen•44m ago•0 comments

Time, Clocks, and the Ordering of Events in a Distributed System (1978) [pdf]

https://lamport.azurewebsites.net/pubs/time-clocks.pdf
1•danbitengo•53m ago•0 comments

Screenmap

https://screenmap.dev/
1•handfuloflight•53m ago•0 comments

Ask HN: Why can I only downvote select comments?

4•socalgal2•53m ago•5 comments