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.

A container is just a process

https://ochagavia.nl/blog/a-container-is-just-a-process/
1•wofo•1m ago•0 comments

Show HN: Bloby – Clippy on Steroids Chrome Extension Using Chrome AI and Ollama

https://chromewebstore.google.com/detail/bloby/afmebijmdlfldmndinggmjdjmhjjhhcd
2•evgy•2m ago•0 comments

Embrace the Glitch: The Andapos;404 Motivation Not Found Sloth&Apos; Organic

https://ddsboston.com/blogs/news/embrace-the-glitch-the-404-motivation-not-found-sloth-organic-co...
1•robert_dds•2m ago•0 comments

Toward provably private learning from federated data

https://research.google/blog/toward-provably-private-learning-from-federated-data/
1•6thbit•3m ago•0 comments

Holes (Stanford Encyclopedia of Philosophy)

https://plato.stanford.edu/entries/holes/
1•surprisetalk•4m ago•0 comments

One cause of "AI" chatbots' accuracy being so poor?

1•chrisjj•4m ago•0 comments

First Trailer for Skydance, the New Parent Company of Warner Bros. and Paramount [video]

https://www.youtube.com/watch?v=k4EGNG4Nbts
1•HelloUsername•5m ago•0 comments

Tmux Plugins Galore

https://www.olafalders.com/2026/10/02/tmux-plugins-galore/
2•oalders•6m ago•0 comments

OpenAI notifies 100 orgs about its AI agents bypassing their security controls

https://www.reuters.com/legal/litigation/openai-alerts-more-than-100-groups-about-rogue-ai-agent-...
2•thoughtpeddler•7m ago•0 comments

Big Tech ruined the cloud, so we're renaming ours

https://www.home-assistant.io/blog/2026/10/02/big-tech-ruined-the-cloud-so-were-renaming-ours/
2•2sf5•7m ago•0 comments

Remix 3.0

https://github.com/remix-run/remix/releases/tag/remix%403.0.0
1•andersco•8m ago•0 comments

American Compute – Data Center Financing Risk Management Solutions

https://www.amcompute.com
2•peter_d_sherman•8m ago•0 comments

WebMCP in a Dashboard (With AG Studio)

https://www.ag-grid.com/blog/webmcp-in-ag-studio-dashboards/
5•greenpinia•8m ago•0 comments

Guided Vision in Gemini Live: built for accessibility

https://blog.google/innovation-and-ai/products/gemini-app/guided-vision-gemini-live/
1•WarmWash•9m ago•0 comments

247A, Notes 2: The Hardy–Littlewood maximal function and applications

https://terrytao.wordpress.com/2026/10/02/247a-notes-2-the-hardy-littlewood-maximal-function-and-...
1•smilelamp•9m ago•0 comments

There Is No Evidence of Aggregate AI Job Loss

https://deadneurons.substack.com/p/there-is-no-evidence-of-aggregate
3•nr378•11m ago•0 comments

Git-Carrier

https://fosstodon.org/@mollyim/117370617094247940
2•Cider9986•11m ago•0 comments

Shell into a remote environment before downloading it

https://getrange.sh/
1•andreygrehov•12m ago•0 comments

Show HN: What's Agent Doing – a Claude Code UI mod that explains each step

https://github.com/tzafrir/whats-agent-doing
2•tzafrir•13m ago•0 comments

"Infinite Personalized Music" Is Just Music

https://futurismrestated.substack.com/p/fr-192-infinite-personalized-music
2•thatmf•14m ago•0 comments

Ask HN: I have too many tokens. What should I do?

1•kurinikku•15m ago•0 comments

YouTube defcon 33 has a lot of video on voting. And now Trump on Reuters

https://www.reuters.com/investigations/how-trumps-obsession-with-rigged-voting-machines-spread-ac...
1•gvieri•15m ago•0 comments

LightPanda 1.0

https://lightpanda.io/blog/posts/lightpanda-1-0
7•Atinux•15m ago•0 comments

Writing Small CLI Programs in Common Lisp

https://stevelosh.com/blog/2021/03/small-common-lisp-cli-programs/
2•birdculture•17m ago•0 comments

The AI Zombie Effect

https://felipe.ai/notes/the-ai-zombie-effect
2•63labs•20m ago•2 comments

Introducing Pyronaut

https://pyronaut.io/2026/10/02/introducing-pyronaut/
3•grashalm•21m ago•0 comments

Results from the Jane Street hardware puzzle

https://blog.janestreet.com/asic-puzzle-results/
1•eru•21m ago•0 comments

Pi, Piem and Piphilology

https://maths-from-the-past.org/pi-piem-and-piphilology-2/
1•dustfinger•22m ago•0 comments

Show HN: Gemma – NYC Apartment Matches over iMessage

https://gemma.nyc/
1•danielalter•22m ago•0 comments

Google Scholar Labs

https://scholar.google.com/scholar_labs/search?hl=en
3•fscaramuzza•24m ago•0 comments