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.

CVE-2026-106173: FortiSIEM gRPC Path Traversal RCE

https://horizon3.ai/attack-research/cve-2026-106173-deep-dive-fortisiem-grpc-path-traversal-file-...
1•frostbyte7•56s ago•0 comments

Turn any single player PC game into coop instantly

https://github.com/cranebeaker/coop-anything
1•vivzkestrel•3m ago•1 comments

ReactOS reaches major milestone with NTFS install support

https://arstechnica.com/information-technology/2026/10/reactos-reaches-major-milestone-with-ntfs-...
2•joozio•7m ago•0 comments

Grimoire for Biology

https://grimoire.bio
1•levmiseri•12m ago•0 comments

SpaceX and Tesla have formed committees to discuss potential merger, Musk

https://www.cnn.com/2026/10/20/business/spacex-tesla-merger-musk
1•pseudolus•16m ago•0 comments

Show HN: See AI trends heat up in real time

https://ai-news.jagular.io
2•jnaina•21m ago•0 comments

Ossdoctor – a health check for open source repos that fixes what's missing

https://github.com/jalensuggs77/ossdoctor
2•firstAu•22m ago•0 comments

Burbank's Real-Time Intelligence Center

https://burbank-ledger.pages.dev/articles/rtic-surveillance/
2•measurablefunc•22m ago•0 comments

Show HN: I spent two days building this online multiplayer game with Claude Code

https://pawnrush.xiaohan.dev/
3•hanstyle•24m ago•0 comments

Show HN: Grafista – AI graphic designer built to fight slop

https://grafista.io/
2•GiorgosGennaris•26m ago•0 comments

OnlyFans Creators Are Pissed That Meta Lets Muse Talk Dirty

https://www.wired.com/story/onlyfans-creators-are-pissed-that-meta-lets-muse-talk-dirty/
2•Topfi•27m ago•0 comments

Launch HN: Alter (YC S25) – Access control for multi-user agents

https://alterauth.com/
5•simfinii•28m ago•1 comments

Port of Coss.ui Components to Svelte

https://www.cossui-svelte.com/
2•orefalo•28m ago•0 comments

In Race with U.S., China Struggles to Recruit Foreign A.I. Researchers

https://www.nytimes.com/2026/10/06/science/china-ai-research-recruitment.html
2•gmays•29m ago•0 comments

Building a Custom 3D-Printed Micro Helicopter [video]

https://www.youtube.com/watch?v=8z4W0IoFQ4g
1•justathrow-321•31m ago•1 comments

Ask HN: What Does Noul Mean?

2•theanonymousone•32m ago•1 comments

Google DeepMind says four AI agents beat Minecraft in 27 hours

https://www.tomshardware.com/tech-industry/artificial-intelligence/google-deepmind-claims-four-ge...
1•jonbaer•32m ago•0 comments

A team of Gemini 4 Argon agents beats Minecraft

https://arxiv.org/abs/2610.22319
1•jonbaer•33m ago•0 comments

mini-Lean-Agent: A Coding-Agent Baseline for Lean

https://arxiv.org/abs/2610.17331
1•matt_d•37m ago•0 comments

Block Blast harvests its players for ad money

https://ayoships.com/breakdowns/block-blast
1•robin_reala•38m ago•0 comments

Jexxa Now Includes an Automatic Evaluation Suite

https://jexxa.org/
1•sankde•39m ago•1 comments

Stop training forecast models. Timeseries just went zero-shot

https://nitishagar.medium.com/stop-training-forecast-models-time-series-just-went-zero-shot-c7ff7...
1•nitishagar•48m ago•0 comments

PHP warns it plans to release 2 emergency patches imminently

https://arstechnica.com/security/2026/10/php-maintainers-tell-web-devs-to-prepare-themselves-for-...
2•jaredwiener•59m ago•1 comments

Giving AI video some Remembrance of things past

https://www.unite.ai/giving-ai-video-some-remembrance-of-things-past/
1•50kIters•1h ago•0 comments

Pragtical v3.14 Lua-based text editor adds menus, floating views, and sessions

https://pragtical.dev/blog/pragtical-v3140-release
1•rd07•1h ago•0 comments

MagicRoute: Routing Without Physical Routers

https://tailscale.com/blog/magicroute-beta
1•mfrw•1h ago•0 comments

World Classics: Modern Translations of the Iliad and Odyssey (EN, FR, DE, ES)

https://worldclassics.org/
1•epsteingpt•1h ago•1 comments

What Will Be Scarce

https://aleximas.substack.com/p/what-will-be-scarce
1•thewileyone•1h ago•0 comments

Omarchy made me rethink my Mac

https://cloudjourneyblog.rohi-lab.org/blog/summon-os
1•RohiRik•1h ago•2 comments

Static vs. dynamic tradeoffs – Rich Hickey (Clojure/Conj 2026) [video]

https://www.youtube.com/watch?v=P5eO7BNyJao
1•fmjrey•1h ago•1 comments