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.

You'll Learn to Love the Cage

https://frameros.substack.com/p/how-youll-learn-to-love-the-cage
1•CircuitSeuss•1m ago•0 comments

EFF and Allies: Privacy Protections Are Crucial to Electoral Integrity

https://www.eff.org/deeplinks/2026/08/eff-and-allies-brazils-elections-privacy-protections-are-cr...
1•hn_acker•2m ago•1 comments

Udeler-Reborn: An open-source, zero-trust course archiver

https://github.com/M3rcena/Udeler-Reborn
1•m3rcena•3m ago•0 comments

Does the Rise of AI Mean the End of the IT Era?

https://www.longfinance.net/news/pamphleteers/does-the-rise-of-ai-mean-the-end-of-the-it-era/
2•happy-go-lucky•4m ago•0 comments

America's safety net isn't ready for the age of AI

https://blog.csaip.org/p/americas-safety-net-isnt-ready-for
1•m-hodges•5m ago•0 comments

Tesla Full Self-Driving likes trains a bit too much

https://electrek.co/2026/08/27/tesla-fsd-likes-trains-too-much/
1•Veserv•5m ago•1 comments

Starship is coming home SpaceX loads floating spacecraft onto ship in the

https://www.space.com/space-exploration/launches-spacecraft/starship-is-coming-home-spacex-loads-...
1•bookmtn•5m ago•0 comments

Micron: HBM requires around three times as much wafer area as DDR5

https://www.igorslab.de/en/micron-hbm-requires-three-times-wafer-area-ddr5-gap-widens/
1•ermantrout•7m ago•0 comments

OpenSoundControl (OSC) Specification(s)

https://opensoundcontrol.stanford.edu/
1•Bluestein•7m ago•0 comments

School Asks Cops to Stop Using Stun Gloves on Its Students

https://www.techdirt.com/2026/08/28/school-asks-cops-to-stop-using-stun-gloves-on-its-students/
1•hn_acker•7m ago•0 comments

LetoDMS

https://letodms.com/
1•trilexcom•8m ago•0 comments

My hobby of building miniatures and taking pretty pictures

https://sandyuraz.com/blogs/tiny-cafe/
1•thecsw•9m ago•0 comments

Unsafe at any speed: AI optimists are turning cautious as safety concerns mount

https://www.theregister.com/columnists/2026/08/28/unsafe-at-any-speed-ai-optimists-are-turning-ca...
2•CrankyBear•10m ago•0 comments

A flapping robot swims and flies like a diving bird

https://actu.epfl.ch/news/a-flapping-robot-swims-and-flies-like-a-diving-bir/
1•boulos•10m ago•0 comments

Beagle: Now with readable README.md (built with AI, heads up)

https://github.com/MattCreigh/beagle
2•MattYc1999•15m ago•1 comments

TwitterWebViewer also no longer in operation, following a request from X Corp

https://twitterwebviewer.com/#
4•flotzam•15m ago•3 comments

Smaller Revision Points to More Accurate Jobs Numbers

https://www.nytimes.com/2026/08/28/business/economy/jobs-labor-numbers.html
2•JumpCrisscross•16m ago•0 comments

Show HN: It Was Never You

https://itwasneveryou.app
2•aruss•16m ago•1 comments

Nepal–Tibet floods in maps, photos and videos

https://www.abc.net.au/news/2026-08-27/nepal-tibet-floods-landslide-maps-photos-videos/107083300
2•johnbarron•17m ago•0 comments

Git Permalinks

https://raw.githubusercontent.com/gritzko/beagle-journal/refs/heads/main/blog/link.mkd
2•gritzko•18m ago•0 comments

Show HN: FeatureFlags.app – Feature Management for .NET

https://featureflags.app/
2•avlcodemonkey•19m ago•0 comments

Show HN: Open tool for testing your AI Agents (No LLM)

https://github.com/IdoGol24/weir
4•CarryOn1212•20m ago•2 comments

Chinese imports plunge 30% to 40% after EU tax on small parcels

https://www.euronews.com/business/2026/08/27/eu-tax-chinese-small-parcels-plunge-30-to-40
5•Markoff•23m ago•2 comments

Show HN: URML – safety-eval harness for AI agents on lab and factory hardware

https://github.com/URML-MARS/URML/tree/main/examples/physical-ai-safety-eval
2•Yahalomi•24m ago•0 comments

Get Sponsorships for Your Laptop

https://brandmymac.com
2•witch-king•24m ago•0 comments

Capacity of lifts not kept up with UK obesity levels, study shows

https://www.theguardian.com/society/2026/may/12/capacity-lifts-elevators-weight-limits-obesity-sa...
3•thunderbong•26m ago•0 comments

Testing Agent Experience in Agent-Native Dev Tools

https://github.com/shenli/devtool-ax-kit
2•shenli3514•27m ago•0 comments

3-6-3 Rule

https://en.wikipedia.org/wiki/3-6-3_Rule
2•ece•28m ago•0 comments

Show HN: Adding and Extending Integer Support for MATLAB Code in RunMat

https://runmat.com/blog/adding-and-extending-integer-support-for-matlab-code-in-runmat
2•nallana•28m ago•0 comments

Containers are great. Kubernetes is great. But [DBA crying]

https://www.reddit.com/r/PostgreSQL/s/ZgXjnVg4T4
2•vitabaks•30m ago•1 comments