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.

The Journal of Hendrick Hamel (1668)

https://www.hendrick-hamel.henny-savenije.pe.kr/holland5.htm
2•yubblegum•1m ago•1 comments

Soon, Nearly a Third of Americans Will Live in States with Legal Aid in Dying

https://www.nytimes.com/2026/05/30/well/medical-aid-in-dying.html
2•JumpCrisscross•2m ago•0 comments

Citadel loses challenge to SEC approval of new options exchange

https://news.bloomberglaw.com/securities-law/citadel-loses-challenge-to-sec-approval-of-new-optio...
2•hhs•3m ago•0 comments

Starbucks Abandons Borked AI Inventory Tool That Couldn't Count

https://gizmodo.com/starbucks-abandons-borked-ai-inventory-tool-that-couldnt-count-report-2000762252
2•pier25•7m ago•0 comments

Two abandoned Soviet space shuttles left in the Kazakh steppe (2017)

https://www.cnn.com/style/article/baikonur-buran-soviet-space-shuttle
2•downbad_•9m ago•0 comments

China's Rise in Drug Development Looms over U.S.

https://www.nytimes.com/2026/05/30/business/china-lung-cancer-drugs-asco.html
1•mportela•12m ago•1 comments

Tony Gilroy, Andor creator doesn't want his work to become training data

https://www.theverge.com/news/632613/andor-tony-gilroy-ai-star-wars-training-copyright
4•root-parent•12m ago•0 comments

DeepSWE: More and cheaper intelligence from maxed GPT 5.5 than maxed Opus 4.8

https://twitter.com/rajveerbach/status/2060846974824255936/photo/1
3•rajveerb•17m ago•1 comments

After more than two decades Paint.NET finally owns the domain paint.net

https://www.pcgamer.com/software/after-more-than-two-decades-the-creator-of-paint-net-finally-own...
3•evo_9•19m ago•0 comments

What Makes an Exceptional Engineer?

https://essenceia.github.io/thoughts/exceptional_engineers/
2•random__duck•21m ago•0 comments

A UX Focused Guide to Building a Linux Distro for Normies

https://github.com/IAMME543/Open-But-Polished
2•masoniamme•25m ago•0 comments

Show HN: Thaw – Git branch for a running LLM (fork agents, skip prefill)

https://github.com/thaw-ai/thaw
1•nilsmatteson•27m ago•0 comments

Shantell Sans

https://shantellsans.com/process
2•aleda145•28m ago•0 comments

Show HN: Babo – A scripting natural language that works as intended

https://github.com/armbox/babo
2•theqoo•31m ago•0 comments

We Benchmarked Our Open Source Memory Tool Against a Microsoft Research Paper

https://medium.com/@vektormemory/we-benchmarked-our-open-source-memory-tool-against-a-microsoft-r...
1•vektormemory•31m ago•0 comments

Show HN: HN Station – A local-first HN desktop client with split-pane reading

https://github.com/rajeshkumarblr/hn_station
1•raj_db_dev•31m ago•0 comments

UAPs in the Siwa Oasis, Egypt [video]

https://www.youtube.com/watch?v=-RJRActuqQU&list=PL9pyFBJOY-8yvSs1y1MmtdKOoQLI5v9Zm&index=3
1•pcbtracer•32m ago•0 comments

Show HN: Presidential Stock Trade Tracker

https://www.quiverquant.com/Donald-Trump-Stock-Trades/
1•ckardat123•33m ago•0 comments

New 3D silicon chip breakthrough could extend Moore's Law for years

https://www.sciencedaily.com/releases/2026/05/260530053412.htm
1•jonbaer•33m ago•0 comments

My Remaining Use for Pen and Paper

https://jarbus.net/blog/my-remaining-use-for-pen-and-paper/
2•jarbus•34m ago•0 comments

Tesla's 'Full Self-Driving' fraud lawsuit gets first hearing in China

https://electrek.co/2026/05/30/tesla-fsd-china-lawsuit-first-hearing-10-owners/
6•breve•36m ago•0 comments

Why Deep Learning Works Even Though It Shouldn't

https://moultano.wordpress.com/2020/10/18/why-deep-learning-works-even-though-it-shouldnt/
2•simianwords•36m ago•0 comments

Show HN: AI command review drill for engineers and vibe coders

https://www.proreview.dev/
1•shaad1337•38m ago•0 comments

A browser horror game about clicking primes

https://ipipgamedev.itch.io/idle-primes
1•ABudrys•39m ago•0 comments

AWS Budgets Has an 8-Hour Delay. Your Bedrock Bill Doesn't

https://blog.llmcap.io/aws-budgets-has-an-8-hour-delay-your-bedrock-bill-doesn-t
1•cfaruk•42m ago•0 comments

Resonate: Low latency, high temporal and frequency resolution spectral analysis

https://alexandrefrancois.org/Resonate/
4•arjf•43m ago•1 comments

Step 3.7 Flash – 198B-A11B MoE vision-language model

https://huggingface.co/stepfun-ai/Step-3.7-Flash
1•dryarzeg•43m ago•0 comments

You need to stop using Google now

https://www.youtube.com/watch?v=4WyduoGpIPo
5•cable2600•45m ago•3 comments

The AV2 Video Standard Has Released (Final v1.0 Specification)

https://av2.aomedia.org
5•ksec•49m ago•0 comments

The first documented digitallipogram – URL erases a tech giant from the alphabet

https://logoggilo.substack.com/p/abcdfhijkmnpqrstuvwxyzcom-lipogram
1•gillesr•51m ago•1 comments