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.

Nvidia says it has largely conceded China's AI chip market to Huawei

https://www.cnbc.com/2026/05/21/nvidia-jensen-huang-china-ai-chip-market-huawei.html
1•KnuthIsGod•4m ago•0 comments

Company accidentally blows $500M on Claude AI in one month

https://www.msn.com/en-us/news/technology/company-accidentally-blows-500-000-000-on-claude-ai-in-...
4•galaxyLogic•6m ago•0 comments

Show HN: Clinglang – A shorthand language for doctors to write structured cases

https://github.com/ppnpm/clinlang
1•ppnpm•18m ago•0 comments

OpenRCT2 v0.5.1 "Swamp Castle" released Last version to support Windows 7

https://openrct2.io/blog/2026/05/openrct2-v0.5.1-released
2•jandeboevrie•20m ago•0 comments

Guitar Tools – PWA for Scales, Circle of Fifths and More

https://guitar-tools.eejalab.xyz/
3•hannofcart•21m ago•1 comments

Sleuths uncover 100 suspicious images in Thermo Fisher antibody catalogue

https://www.nature.com/articles/d41586-026-01706-2
1•Teever•24m ago•0 comments

Cathy Tie's mission to genetically modify babies

https://www.theguardian.com/science/2026/may/30/there-is-no-way-to-stop-this-biotech-barbie-cathy...
1•skruger•32m ago•0 comments

Boom shakes S Carolina, rattling Columbia and raising questions about the cause

https://www.thestate.com/news/local/environment/article315932620.html
2•thunderbong•40m ago•0 comments

Show HN: I built an Android OS in the browser

https://mobilegym.dev/
1•haozaz•41m ago•0 comments

A Weekend in Claude Design Saves 3 Weeks of Claude Code

https://cashandcache.substack.com/p/the-prototype-tax-how-a-weekend-in
1•binyu•46m ago•0 comments

The 12 Futures of AI

https://medium.com/@butsch_79/the-12-futures-of-ai-a42d67bd9a20
1•andsoitis•49m ago•0 comments

The Biggest Tell That Something Was Written by AI

https://www.theatlantic.com/technology/2026/05/how-to-tell-ai-writing/687345/
5•nlawalker•50m ago•3 comments

Indian court ruling on Google keyword ads could reshape online advertising

https://www.reuters.com/business/media-telecom/indian-court-ruling-google-keyword-ads-could-resha...
1•rustoo•51m ago•0 comments

The next frontier of the luxury airline arms race might be waged in the toilet

https://www.cnn.com/travel/first-class-toilets-emirates-airbus-travel-intl-spc
2•tomodachi94•51m ago•0 comments

Poor sleep linked to rising cancer risk in under-50s

https://www.theguardian.com/society/2026/may/30/poor-sleep-linked-rising-cancer-risk-under-50s
1•andsoitis•55m ago•1 comments

Records Show UC Sharing Data with US Customs and Border Protection

https://www.dailycal.org/news/uc/records-show-uc-sharing-data-with-us-customs-and-border-protecti...
14•computerliker•56m ago•0 comments

Ask HN: What could happen if human beings become obsolete?

4•baddash•1h ago•2 comments

HeavensLive: The Marketplace That Gives You Free Money to Start – No Strings

https://www.heavenslive.com
1•bbenevolence•1h ago•0 comments

Mean Hand

https://portfolio.anna-zhang.com/projects/mean-hand
2•sdrothrock•1h ago•0 comments

Farewell AWS

https://www.adventuresinoss.com/farewell-aws/
2•cafkafk•1h ago•0 comments

An Usable Minimal Programming Language?

https://github.com/las-r/aergia
1•las_r•1h ago•1 comments

Ask HN: Why I have such bad luck?

2•alonsovm44•1h ago•0 comments

Vercel Analytics Alternative When You Outgrow the Free Tier

https://raah.dev/blog/vercel-analytics-alternative
1•Arindam1729•1h ago•0 comments

Show HN: NoTime – a Firefox extension for one-sentence summaries

https://addons.mozilla.org/en-US/firefox/addon/no-time/
1•dh1011•1h ago•1 comments

China's world-beating solar industry is in turmoil

https://economist.com/china/2026/05/26/chinas-world-beating-solar-industry-is-in-turmoil
3•andsoitis•1h ago•1 comments

SpaceX and the 'Enshittification' of Markets

https://www.ft.com/content/f724d500-fd45-4f38-86b8-549b5cae88ba
3•petethomas•1h ago•0 comments

Treasury Sec Bessent says US Government has seized $1B of Iran's crypto

https://twitter.com/bitcoinmagazine/status/2060442288598155762
1•computerliker•1h ago•0 comments

The Orchestration Tax

https://addyosmani.com/blog/orchestration-tax/
1•jnakano89•1h ago•0 comments

PROMPTPurify: 14 MB CPU-only prompt-injection guard (benchmarked vs. OSS guard)

https://github.com/securelayer7/PROMPTPurify
1•sandeep_kamble•1h ago•0 comments

Brazilian court orders restoration of Fordlandia, Henry Ford's Amazon ghost town

https://apnews.com/article/fordlandia-preservation-brazil-amazon-rainforest-henry-ford-370a0e6999...
1•divbzero•1h ago•0 comments