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.

Tailworm

https://tailworm.com/
1•sunils34•16s ago•0 comments

Show HN: Kolo – share your AI coding sessions with anyone

https://github.com/komovaar/kolo
2•whosgotch•1m ago•0 comments

Give the browser bookmarks a second life

https://addons.mozilla.org/en-US/firefox/addon/kosh/
2•havu12•1m ago•0 comments

Show HN: Teamzlab for FedEx

https://fedex.teamzlab.com/
1•mdhemalakhand•2m ago•0 comments

GitHub Gists Flooded with Spam

https://gist.github.com/discover
1•jdthedisciple•4m ago•1 comments

You Are Losing Weight. Why Are You So Angry?

https://julienreszka.com/blog/you-are-losing-weight-why-are-you-so-angry/
1•julienreszka•6m ago•0 comments

Empires of AI: The Rise and Fall of a New Global Order

https://www.foreignaffairs.com/china/empires-artificial-intelligence-niall-ferguson-eric-schmidt
1•bryanrasmussen•8m ago•0 comments

Show HN: Open-Source Cybersecurity Platform Uses AI Agents to Protect Businesses

https://medium.com/@thomasunise/this-open-source-cybersecurity-platform-uses-ai-agents-to-detect-...
5•modern_cmo•9m ago•0 comments

Slow Software

https://www.inkandswitch.com/slow-software/
1•andsoitis•11m ago•0 comments

Show HN: macOS window switcher replacement that keeps each Space separate

https://debutspace.com/
1•thomplth•14m ago•1 comments

The One Question I Can't Stand at Restaurants

https://www.theatlantic.com/culture/2026/10/restaurant-phone-number-question/688926/
1•masfuerte•15m ago•0 comments

To make AI morally good, tech companies are turning to religion

https://apnews.com/article/anthropic-moral-artificial-intelligence-religion-2bb91e3334fd6d732edf2...
1•geox•20m ago•1 comments

Faxbook

https://jussiparikka.net/2016/07/24/faxbook/
1•jruohonen•21m ago•0 comments

Origin Range Requests: Serving large files without range-request tuning

https://blog.cloudflare.com/origin-range-requests/
1•weinzierl•21m ago•0 comments

Show HN: Farol – a risk map of a pull request for the person who approves it

https://github.com/winnin/farol
3•ericholiveira•22m ago•0 comments

Incremental Computation Graphs

https://dziban.net/posts/incremental-computation-graph/
1•birdculture•23m ago•0 comments

iPhone Duo "Teardown"

https://www.youtube.com/watch?v=5laDGy4INB0
1•migmartri•25m ago•0 comments

Show HN: Liquid Glass – Physical Glass Optics and UI Engine for Linux in Rust

https://github.com/ziuus/liquid-glass
1•noelyt101•25m ago•0 comments

What Do People Like?

https://prog21.dadgum.com/72.html
1•andsoitis•25m ago•0 comments

A Space Startup Is Coming Out of Stealth with Seven-Figure Deals

https://newsbywire.com/a-space-startup-is-coming-out-of-stealth-with-seven-figure-deals/
1•usfaxion•25m ago•0 comments

US inequality is getting worse in ways you might not expect

https://theconversation.com/us-inequality-is-getting-worse-in-ways-you-might-not-expect-294075
6•JKCalhoun•25m ago•4 comments

Don't fall in love with your technology (2012)

https://prog21.dadgum.com/128.html
1•andsoitis•26m ago•0 comments

Dear ImGui Explorer: An Interactive Manual for Dear ImGui, ImPlot and ImPlot3D

https://pthom.github.io/imgui_explorer/
1•alhirzel•27m ago•0 comments

YousefAbdulHusain – The Dune Movies Erase Islam [video]

https://www.youtube.com/watch?v=Vu2ARRBjEHY
1•abdelhousni•29m ago•1 comments

The Polyglot's Dilemma: Conformance Testing a Dozen Specs in as Many Languages

https://emptysqua.re/blog/polyglots-dilemma/
1•weinzierl•33m ago•0 comments

The AI graveyard: a running list of projects and startups that didn't make it

https://techcrunch.com/2026/10/24/the-ai-graveyard-a-running-list-of-projects-and-startups-that-d...
2•theanonymousone•33m ago•0 comments

Conversations at Karma

https://www.novembermag.com/content/volume-3-conversations-at-karma
1•jruohonen•35m ago•0 comments

Show HN: Code Counter Machine a modern analysis of AI driven development costs

https://github.com/insanai/ccm
1•vikrantrathore•37m ago•0 comments

WIP – Native Dolby Vision Support on x86 Intel CPU in LE and Kodi: R/LibreELEC

https://www.reddit.com/r/libreELEC/comments/1wq20eu/wip_native_dolby_vision_support_on_x86_intel_...
1•xbmcuser•38m ago•0 comments

Samsung TVs look for microphones in your house via Bluetooth and then spy events

https://twitter.com/freddier/status/2114042326758867453
4•taubek•39m ago•0 comments