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.

7.1 Earthquake in Japan

https://www.data.jma.go.jp/multi/quake/quake_detail.html?eventID=20260728163528&lang=en
2•krembo•1m ago•0 comments

Seriously, what is the large code-model even for?

https://fzakaria.com/2026/07/26/seriously-what-is-the-large-code-model-even-for
1•birdculture•2m ago•0 comments

Show HN: Reverse-engineer viral videos into AI-ready shot breakdowns

https://videolens.cc/zh/landing
1•not_wowinter13•7m ago•0 comments

Show HN: Dino Race – A peer-to-peer two-player Chrome Dino game

https://gameplayer2.com/dino
1•dares2573•7m ago•0 comments

Artificial Intelligence: Shades of Gray

https://changelog.complete.org/archives/42503-artificial-intelligence-shades-of-gray
1•psibi•7m ago•0 comments

Does Speaking to Agents Like Cavemen Save 65% of Tokens? We Test

https://blog.jetbrains.com/ai/2026/07/speak-to-ai-agents-like-cavemen-tosave-tokens/
2•Sandman•8m ago•0 comments

Disney+ removes 4K and HDR from premium plans in Germany

https://www.heise.de/en/news/Disney-4K-and-HDR-completely-disappeared-in-Germany-11379707.html
2•Vloeck•12m ago•0 comments

Fcgc

https://news.ycombinator.com/submit
1•sfgsfsdgs•13m ago•0 comments

Packaging Companies in Sri Lanka

https://akhtarigroup.com/
1•jayanath99•18m ago•0 comments

AgentEnv

https://github.com/kvcache-ai/AgentEnv
1•handfuloflight•20m ago•0 comments

Show HN: Kimi K3 Is Now Live on Canopy Wave

https://canopywave.com/models/kimi-k3
1•Rossmax•23m ago•0 comments

Show HN: WhimPop – A macOS menu that pops up under your cursor

https://whimpop.com/
1•whimbyte•23m ago•0 comments

Show HN: Turo – Tagalog for point, saves Tokens by pointing instead of talking

https://github.com/kdeps/turo
1•jjuliano•24m ago•0 comments

Sodium restriction and insulin resistance: A review of 23 clinical trials

https://journalofmetabolichealth.org/index.php/jmh/article/view/78/242
1•sublinear•28m ago•0 comments

Microsoft Sam starts his car

https://www.youtube.com/watch?v=EQ1LbeaU_LI
2•nazgulsenpai•30m ago•0 comments

Exercises in benchmarking and evals, part 7

https://danluu.com/exercise-7/
1•janvdberg•30m ago•0 comments

Small and mid-sized businesses are managing Android devices without Google

https://www.msn.com/en-xl/news/other/how-small-and-mid-sized-businesses-are-managing-android-devi...
1•erkin_bek•35m ago•0 comments

KDE daemon – the annoying restart is needed to complete update

https://www.dedoimedo.com/computers/kde-system-notification-helper.html
1•coisasdavida•35m ago•1 comments

Shown HN: Mathend – Microsoft Word but less annoying

https://mathend.com
1•muhamsyaddad•38m ago•1 comments

Microsoft unveils AI security tools it says outperform competing platforms

https://arstechnica.com/security/2026/07/microsoft-unveils-ai-security-tools-it-says-outperform-c...
4•joozio•43m ago•0 comments

Final hurrah? Glasgow's cut-price Commonwealth Games fight for survival

https://www.lbc.co.uk/article/anyone-still-care-commonwealth-games-glasgow-opinion-5Hjdf6S_2/
3•austinallegro•44m ago•0 comments

Cracking the code: can AI help us decipher ancient languages?

https://theconversation.com/cracking-the-code-can-ai-help-us-decipher-ancient-languages-288238
2•zeristor•45m ago•0 comments

Open Source Must Be Fun (Or It Will Die)

https://mikemcquaid.com/open-source-must-be-fun-or-it-will-die/
1•robin_reala•46m ago•0 comments

Evals before prompts: building an LLM OCR for KYC

https://blog.nilenso.com/blog/2026/05/18/evals-before-prompts-building-an-llm-ocr-for-kyc/
1•priyangapkini•47m ago•0 comments

Facebook now wants a selfie video of your face, too

https://blog.mega.io/facebook-verified-selfie
3•dotcoma•51m ago•0 comments

Three certificates, one domain, three lost launch days

https://www.certpost.ai/blog/three-certificates-three-lost-launch-days
1•mlmusson•55m ago•0 comments

AI 'tokenmaxxing' fades as workplaces look to cut tech spending

https://apnews.com/article/ai-token-openai-anthropic-corporate-31bb80ac1cd7862d05f6397177d826b1
7•geox•56m ago•1 comments

A Proposal for a Universal Moral Core

https://continuations.com/a-proposal-for-a-universal-moral-core
1•imartin2k•57m ago•0 comments

"Cards as Weapons" by Ricky Jay (1977)

https://archive.org/details/Cards_as_Weapons_-_Ricky_Jay_1977
1•jansan•1h ago•0 comments

Solving Math and Physics Problems You Don't Know How to Solve

http://redsymbol.net/articles/solving-problems-you-dont-know-how-to-solve/
1•ankitg12•1h ago•0 comments