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.

Prototype graph-based social media

https://neui-connect.vercel.app?_vercel_share=f3VnOd8GCZwFxssgRBoj9FUXqHwg8hBC
1•Evanescia•1m ago•0 comments

O'Charley's

https://en.wikipedia.org/wiki/O%27Charley%27s
1•Bluestein•1m ago•0 comments

Apple, Please Open Up iOS

https://swapnilchauhan.com/blog/apple-please-open-up-ios/
1•swapxstar•2m ago•1 comments

Show HN: Xivizley – Visual Docker Compose and Homelab Architect

https://xivizley.com.tr
1•Xivizley•2m ago•0 comments

Reaction: "A Quick Look at Atomics in C"

https://informationalwayswin.blogspot.com/2026/09/reaction-quick-look-at-atomics-in-c.html
1•odilelof•7m ago•0 comments

Show HN: Liniora – Ever thought about replacing your project manager?

https://liniora.com
3•omarammura•10m ago•0 comments

"The CUDA Moat is Gone" – TechTechPotato with AI& founder David Bennet [video]

https://www.youtube.com/watch?v=TiRxcPQNcBA
3•olvy0•11m ago•0 comments

Experiment: How easy is it to buy a research paper on the black market?

https://news.err.ee/1610129869/experiment-how-easy-is-it-to-buy-a-research-paper-on-the-black-market
4•jruohonen•12m ago•0 comments

OpenRGB 1.0 Released

https://openrgb.org/
2•MattTheRealOne•14m ago•0 comments

Show HN: Rust-split – save your tokens on large Rust source files

4•owebeeone•15m ago•1 comments

Build with Replit Against Managed Postgres in Databricks Apps

https://docs.replit.com/updates/2026/09/11/changelog
1•utiiiD•16m ago•0 comments

Journal Editors: How are you evaluating AI assisted papers?

https://mathoverflow.net/questions/515144/journal-editors-how-are-you-evaluating-ai-assisted-papers
1•jjgreen•18m ago•0 comments

We're All Going to Die

https://www.noahpinion.blog/p/heres-how-were-all-going-to-die
2•throw0101a•20m ago•0 comments

Karaoke for one: China's $1T 'loneliness economy'

https://www.cnn.com/2026/09/12/business/asia-loneliness-economy-intl-hnk-dst
1•michaelsbradley•20m ago•0 comments

Overshoot: The World Is Hitting Point of No Return on Climate

https://e360.yale.edu/features/1.5-degrees-tipping-points
2•throw0101a•21m ago•0 comments

Hydra

https://en.wikipedia.org/wiki/Hydra_(genus)
1•tosh•22m ago•0 comments

Show HN: Parallel Coding Agents on Mobile

https://github.com/PlathsOven/maestro
4•Entropnt•22m ago•0 comments

Show HN: Email Client with Backups

https://mailvaultapp.com/
1•spacecash21•22m ago•0 comments

AI changing the calculus for Canadian students interested in comp sci

https://www.theglobeandmail.com/canada/article-ai-computer-science-students-and-schools-that-hope...
3•AnodicElegy•25m ago•1 comments

Fresh: Terminal based IDE and text editor: easy, powerful and fast

https://github.com/sinelaw/fresh
2•linkdd•25m ago•0 comments

TinyEMU is a system emulator for the RISC-V and x86 archs

https://github.com/dearchap/tinyemu
2•Bluestein•27m ago•0 comments

ProLogium begins mass production of solid-state battery at 381 Wh/kg

https://finance.yahoo.com/energy/articles/prologium-begins-mass-production-high-070000793.html
2•akamaka•28m ago•0 comments

HTTPS Everywhere?

https://blog.altos.au/post/https-everywhere/
1•meetpateltech•29m ago•0 comments

Subjective reports and visual targets during attempted out-of-body experiences

https://www.sciencedirect.com/science/article/abs/pii/S1550830726001941?via%3Dihub
2•bookofjoe•34m ago•0 comments

Here Comes the Sun

https://granta.com/here-comes-the-sun/
1•jruohonen•36m ago•1 comments

Show HN: TattooPreview AI – a planning workflow for tattoo artist conversations

https://tattoopreviewai.com
2•robot1996•39m ago•0 comments

Show HN: I wrote a book on using AI in game design production (free on GitHub)

https://github.com/eremes81/game-design-ai-practice-en
3•eremes81•41m ago•0 comments

Fuck it, make it anyway

https://www.joelotter.com/posts/2026/09/make-it-anyway/
53•JayOtter•43m ago•18 comments

Dimit – warm a Mac screen to pure red and pin the backlight against PWM

https://github.com/azakapro/dimit
2•azakapro•43m ago•0 comments

Show Us the Wonder! Where Is Your Wonder?

https://www.rosalux.de/en/news/id/39794/show-us-the-wonder-where-is-your-wonder
2•jruohonen•44m ago•0 comments