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.

Plowshares or nuclear explosions for the national economy

https://annasofialesiv.substack.com/p/plowshares
1•bilsbie•1m ago•0 comments

Stop Doing Easy Things

https://xendo.bearblog.dev/stop-doing-easy-things/
1•xendo•2m ago•0 comments

The Universe is a Sheet of Paper (and Some Sand)

https://t3db0t.substack.com/p/the-universe-is-a-sheet-of-paper
2•virgil_disgr4ce•4m ago•0 comments

DeepSWE: A contamination-free benchmark for long-horizon coding agents

https://deepswe.datacurve.ai/blog
2•ammar_x•4m ago•1 comments

DeepSWE Benchmark

https://deepswe.datacurve.ai/
1•xfax•7m ago•0 comments

Hedge Funds Are AImaxxing

https://www.ft.com/content/66fc88ec-af0d-452f-a535-193d9d5279f8
1•johnbarron•7m ago•0 comments

Fifty Years of Transaction Processing Research

https://arxiv.org/abs/2605.20466
1•qianli_cs•8m ago•0 comments

Vibe Coding Escapades: pelican-copy-code plugin

https://blog.fidelramos.net/software/vibe-coding-escapades-pelican-copy-code
3•tripu•9m ago•0 comments

Does a trusted AI asset marketplace solve this issue?

https://kimura.yumiwillems.com/p/why-ais-biggest-deals-price-assets
2•BehaviorGraph•9m ago•0 comments

Consumer Founders

https://2lr.substack.com/p/consumer-founders-building-the-impossible
1•jdenquin•9m ago•0 comments

R vs. Dudley and Stephens

https://en.wikipedia.org/wiki/R_v_Dudley_and_Stephens
1•benbreen•11m ago•0 comments

How we contain Claude across products

https://www.anthropic.com/engineering/how-we-contain-claude
2•siegers•12m ago•0 comments

AI chatbots show bias toward Catholicism, researchers say

https://decrypt.co/369045/ai-chatbots-claude-chatgpt-bias-catholicism-pope-leo
5•pseudosim•12m ago•2 comments

Tokens Never Die

https://artsabintsev.substack.com/p/tokens-never-die
1•Arts86•13m ago•0 comments

Laguna M.1/XS.2 Technical Report [pdf]

https://poolside.ai/assets/laguna/laguna-m1-xs2-technical-report.pdf
1•rexledesma•13m ago•0 comments

Show HN: Clipmon – Menubar Clipboard Manager for macOS

https://github.com/C9-Labs/clipmon
2•vednig•15m ago•0 comments

Top Sanity Agencies to Hire in 2026

https://gitnation.com/contents/12-top-sanity-cms-development-agencies-to-hire
1•katyadrozd•17m ago•0 comments

Google ADK now available for Kotlin

https://developers.googleblog.com/adk-kotlin-android-building-ai-agents/
1•avanwyk•17m ago•0 comments

Genshin Impact company miHoYo keeps stealing from indie games

https://bsky.app/profile/michaelkamm.games/post/3mmrfwqupos2s
2•sourencho•18m ago•0 comments

LMIM OS – an offline AI ecosystem. Voice, RAG, WhatsApp. ++ One file. 0 setup

https://lmim.tech
1•iamonthemission•18m ago•0 comments

John Carmack on Inlined Code

http://number-none.com/blow/john_carmack_on_inlined_code.html
1•tosh•18m ago•0 comments

Deploying Rust to Production Checklist

https://kerkour.com/rust-production-checklist
1•aniviacat•19m ago•0 comments

NPR maintains the most complete database and visual archive of J6 prosecutions

https://apps.npr.org/jan-6-archive/
7•rolph•20m ago•0 comments

Chemistry behind the Garden Grove chemical tank

https://www.science.org/content/blog-post/methyl-methacrylate-tank
4•nooks•20m ago•0 comments

The Melancholy of Slaying Monsters

https://thereader.mitpress.mit.edu/the-strange-melancholy-of-slaying-monsters/
2•prismatic•20m ago•0 comments

Your Stack Overflow Graphs Prove Nothing

https://techstackups.com/articles/stackoverflow-graphs-prove-nothing/
1•sixhobbits•21m ago•0 comments

Show HN: CredWork – a simple project tracking and showcasing tool

https://www.credwork.co/
1•tusharcw•22m ago•0 comments

Visibility into the Black Box

https://matgreten.dev/posts/visibility-into-the-black-box/
1•nickstinemates•22m ago•0 comments

False Positive OSV Advisories Reported by Amazon Inspector

https://github.com/ossf/malicious-packages/pull/1276/files
1•joeyhage•22m ago•1 comments

Software After Software

https://twitter.com/thorstenball/status/2059304318055150066
1•tosh•23m ago•0 comments