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.

Spaceship Service Outage Update

https://www.spaceship.com/blog/spaceship-service-outage-update/
1•anonu•11m ago•0 comments

Haitians in Springfield are required to report to ICE and wear ankle monitors

https://ohiocapitaljournal.com/2026/08/14/haitians-in-springfield-are-required-to-report-to-ohios...
5•hn_acker•15m ago•0 comments

Youngest Black professor at Cambridge who faced plagiarism claims is found dead

https://apnews.com/article/jason-arday-cambridge-professor-london-dead-reports-9036e2b405f5849415...
2•petethomas•23m ago•0 comments

Magnitude 7.7 Earthquake – 68 km NNW of Ende, Indonesia

https://earthquake.usgs.gov/earthquakes/eventpage/us6000tkt2/executive
6•Bender•28m ago•0 comments

A New Alzheimer's Therapy – Or Is It?

https://www.science.org/content/blog-post/new-alzheimer-s-therapy-or-it
3•maxall4•31m ago•1 comments

Yes, Code Review Is Still Necessary

https://mattmccormick.ca/yes-code-review-is-still-necessary/
3•mattm•33m ago•1 comments

Nvidia Downsizes Plans for $250B Guarantee of OpenAI Data Center

https://www.wsj.com/tech/nvidia-downsizes-plans-for-250-billion-guarantee-of-openai-data-center-b...
3•JumpCrisscross•35m ago•0 comments

Deliverance from 27,000 feet (2017)

https://www.nytimes.com/interactive/2017/12/18/sports/everest-deaths.html
2•ValentineC•36m ago•0 comments

Ramabana – Rama's Arrow

https://github.com/vedicreader/ramabana
2•karthikrajgopal•39m ago•0 comments

Nvidia discloses $21B stake in SpaceX

https://www.ft.com/content/6f66a76d-0b2d-4301-886c-87ecc046731b
4•JumpCrisscross•39m ago•2 comments

Show HN: Dictata – Local Whisper dictation with LLM cleanup

https://github.com/AntoineChatry/Dictata
2•AntoineC_•43m ago•0 comments

Can LLMs work in the wet lab?

https://www.benchling.com/blog/can-llms-work-in-the-wet-lab
2•geneticdrifts•43m ago•0 comments

The Ploopy A+ Trackball Is Here

https://blog.ploopy.co/the-aplus-is-finally-here-499
11•big_toast•46m ago•3 comments

NSA and IETF, Part 9

https://blog.cr.yp.to/20260814-update.html
4•libroot•48m ago•0 comments

Clawtopus

https://clawtopus.com
2•gajus•49m ago•0 comments

Show HN: Nikon F100 Film Camera Repair Notes

https://github.com/enthdegree/f100
2•enthdegree•51m ago•1 comments

The Commons – experiments in inherited knowledge and errors between LLM agents

https://github.com/coladul/the_commons/tree/main
2•coladul•53m ago•0 comments

Annual Summary Report of Coral Reef Condition 2025/26

https://www.aims.gov.au/monitoring-great-barrier-reef/gbr-condition-summary-2025-26
3•thunderbong•55m ago•0 comments

ShieldFont: Bludgeoning AI Scrapers That Disrespect Robots.txt

https://hackaday.com/2026/08/14/shieldfont-bludgeoning-ai-scrapers-that-disrespect-robots-txt/
2•anonymousiam•58m ago•0 comments

2D Gaussian Splatting for Bézier Spline Line Art Vectorization

https://studios.disneyresearch.com/2026/07/16/2d-gaussian-splatting-for-bezier-spline-line-art-ve...
3•Jimmc414•1h ago•1 comments

Ask HN: What physical publication do you still buy?

2•sergiotapia•1h ago•6 comments

Trump says USS Lincoln's record time at sea during operations not long enough

https://apnews.com/article/trump-iran-aircraft-carrier-uss-lincoln-023413c38373d4a6ba033612a1f552c6
4•petethomas•1h ago•0 comments

Supersonic Trebuchet [video]

https://www.youtube.com/watch?v=Co57SfcT-h0
4•CharlesW•1h ago•0 comments

Simplifying and Refactoring Introductory Calculus

https://arxiv.org/abs/1811.03459
8•E-Reverance•1h ago•0 comments

The Most Famous AI Writing Tic Is Also the Most Mysterious

https://www.theatlantic.com/technology/2026/07/ai-chatbot-writing-tic-negative-parallelism/687892/
2•paulpauper•1h ago•0 comments

I made the fastest open source CAD renderer in the world

https://twitter.com/i/status/2088075553077072088
5•StefanGolas•1h ago•1 comments

The Erdős–Simonovits degeneracy conjecture is false for all R ≥ 2

https://twitter.com/ctjlewis/status/2088332537231704186
2•ctjlewis•1h ago•0 comments

Show HN: Bloxwap – The Easiest Way to Trade

https://bloxwap.com/trade/HYPE
3•joeblau•1h ago•0 comments

Corgi kills short-lived website that ranked its female employees

https://sf.gazetteer.co/corgi-kills-short-lived-website-that-ranked-its-female-employees
10•randycupertino•1h ago•2 comments

Mobile Adapter GB

https://en.wikipedia.org/wiki/Mobile_Adapter_GB
5•LaserDiscMan•1h ago•0 comments