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.

New AirPods leak reveals built-in cameras and Visual Intelligence

https://www.dexerto.com/entertainment/new-airpods-leak-reveals-built-in-cameras-and-visual-intell...
1•GuinansEyebrows•1m ago•0 comments

The Troubling Global Ramifications of the EU's Digital Markets Act

https://www.realclearmarkets.com/articles/2026/08/20/the_troubling_global_ramifications_of_the_eu...
1•RickJWagner•3m ago•0 comments

Poolside Strikes $6B Licensing Deal with Nvidia

https://www.newcomer.co/p/sources-poolside-strikes-6-billion
1•amrrs•4m ago•0 comments

Software 2.0: A Security-Critical Project Where I Don't Read the Code

https://aaronstannard.com/a-security-critical-project-where-i-dont-read-the-code/
1•mooreds•5m ago•0 comments

The ATProto Spaces Alpha Is Live – At Protocol

https://atproto.com/blog/atproto-spaces-alpha
2•grappler•6m ago•0 comments

Regex is horrible, yet regex is amazing

https://www.autodidacts.io/horrible-amazing-regex/
1•Curiositry•6m ago•0 comments

Show HN: Sourcery – Benchmark for search APIs on the sources they return

https://sameerhimati.com/sourcery/
1•sameerhimati•6m ago•1 comments

The Many Faces of a Paradigm

https://www.pthenq.io/blog/series/kuhn-at-the-software-industry/part-1-the-many-faces-of-a-paradigm/
1•jhartikainen•7m ago•0 comments

Treasury plan to subdue yields fails

https://www.cnbc.com/2026/08/19/stock-market-today-live-updates.html
3•root-parent•10m ago•0 comments

Catches decisions and commitments you missed across work tools

https://stackstitch.dev/
2•julianacunadc•14m ago•0 comments

AI-Driven Development Means Test-Driven Development

https://meiert.com/blog/ai-and-tdd/
1•speckx•14m ago•0 comments

Why.com: A $17K domain held for 27 years becomes an AI curiosity engine

https://www.inc.com/sam-blum/the-17000-domain-that-could-be-worth-70-million-just-became-an-ai-ch...
3•rasheed106•16m ago•0 comments

The Mundaneum, XX Century "Internet" Put World Knowledge on Millions Index Cards

https://www.openculture.com/2026/08/discover-the-mundaneum-an-early-20th-century-internet.html
1•mdp2021•16m ago•0 comments

System prompts are an archive of how we use AI

https://salable.substack.com/p/system-prompts-are-an-archive-of
1•themeta•18m ago•0 comments

Show HN: Emd – Fast EDA's for CSV and XLS(X) from the Terminal

https://github.com/utkukosman1/explain-my-data-CLI
1•cakbeslik•18m ago•0 comments

Layoffs in Apple's Vision Products Group

https://appleinsider.com/articles/26/08/20/layoffs-in-apples-vision-products-group-prove-slow-pro...
3•cdrnsf•19m ago•1 comments

Aaron Swartz was prosecuted for scraping, while Meta does it without consequence

https://blog.curiousquail.com/im-upset-again-about-a-co-creator-of-rss-being-prosecuted-for-somet...
17•speckx•21m ago•2 comments

Staggering 90% of biomedical papers now show signs of AI help

https://www.nature.com/articles/d41586-026-02551-z
2•sbulaev•21m ago•0 comments

Show HN: ChinaDesk

https://chinadesk.news/
1•sinak•25m ago•0 comments

Ask HN: How do you get banned from HN?

3•LAC-Tech•25m ago•2 comments

2XKO Active Development Will End in December 2026

https://www.riotgames.com/en/news/2xko-active-development-ends-december-2026
1•minimaxir•26m ago•0 comments

Use the OSS, Commit Back – OAVL – The Open Source AI Viability License

https://github.com/kenm47/oavl
2•hank2000•32m ago•1 comments

Show HN: Free Web audit over 100 checks

https://beavercheck.com/
1•apancyborg•33m ago•1 comments

Ukrainian publishers call for support after Russian attacks destroy 10M books

https://www.theguardian.com/books/2026/aug/20/help-ukrainian-publishers-russia-attacks-books
4•mdp2021•33m ago•0 comments

European gas prices hit highest point since March

https://www.euronews.com/business/2026/08/20/europes-gas-prices-have-doubled-with-the-worst-yet-t...
2•leonidasrup•34m ago•0 comments

Bun v1.4

1•CrimsonRain•35m ago•2 comments

My Morse Code Keyer Homebrew Software for the Nintendo 3DS

https://ei3lh.eu/2026/08/20/my-morse-code-keyer-homebrew-software-for-the-nintendo-3ds/
1•austinallegro•37m ago•0 comments

GitHub Stacks in Jujutsu

https://alan.norbauer.com/articles/github-stacks-with-jujutsu/
1•LVB•39m ago•0 comments

Why nerds are unpopular (2003)

https://paulgraham.com/nerds.html
2•cassepipe•39m ago•1 comments

Introducing AI Futures

https://openai.com/index/introducing-ai-futures/
5•logickkk1•41m ago•0 comments