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.

I tested 39 LLMs on solving Rubik's cubes with no tools

https://brianbriscoe.dev/blog/i-tested-39-llms-on-solving-rubiks-cubes
1•briscoooe•1m ago•0 comments

From 22 GB to 5.3 GB: all of Hacker News, searchable offline

https://discuss.ai.google.dev/t/searching-all-of-hacker-news-with-embeddinggemma-2-on-a-laptop-49...
1•dmonterocrespo•3m ago•0 comments

Pi Durable on Cloudflare – Earendil

https://earendil.com/posts/pi-durable-on-cloudflare/
1•RebelPotato•3m ago•0 comments

Show HN: StrictLLM – For when you need human-in-the-loop

https://strictllm.com
1•StrictLLM•4m ago•0 comments

UniFi Long-Range Poe Switching

https://blog.ui.com/article/introducing-unifi-long-range-switching
1•ksec•5m ago•0 comments

Evil Qwen

https://ziva.sh/blogs/evil-qwen
1•OsrsNeedsf2P•8m ago•0 comments

Mexico is a showroom for electric vehicles you can't buy in the U.S.

https://www.washingtonpost.com/climate-environment/2026/10/27/i-saw-future-driving-mexico-its-off...
3•bookofjoe•9m ago•1 comments

What's new in Android developer tools and performance

https://developer.android.com/blog/posts/android-dev-summit-26-developer-tools-performance
1•ChrisArchitect•9m ago•0 comments

Endurance Map for Runners, Cyclists and Swimmers

https://zafiri.com/
1•wllrss90•9m ago•0 comments

AI, Lean, and the Future of Formal Verification, with Lean Creator Leo de Moura

https://thedataexchange.media/leo-de-moura-lean-aws/
2•datascientist•9m ago•0 comments

Prompt Layering

https://agentpatterns.ai/context-engineering/prompt-layering/
1•ankitg12•10m ago•0 comments

Your Cryptography Conspiracy Theory Is Wrong

https://soatok.blog/2026/10/29/your-cryptography-conspiracy-theory-is-wrong/
1•iamnothere•10m ago•0 comments

Meta loses appeals against interim measures imposed by French regulators

https://www.reuters.com/world/meta-loses-appeals-against-interim-measures-imposed-by-french-regul...
1•onemoresoop•11m ago•0 comments

Pokerbots.dev – Competitive Algorithmic Poker

https://pokerbots.dev/
1•mundoamundo•13m ago•0 comments

14.4B medical insurance claims refines our understanding of long Covid

https://news.stanford.edu/stories/2026/10/long-covid-health-affects-study-design
1•Anon84•15m ago•0 comments

My Students Can't Read

https://chronicleofhighereducation.substack.com/p/my-students-cant-read
4•rmdmphilosopher•16m ago•2 comments

Show HN: Point your camera at a landscape to learn about its geology

https://outcrop.rocks/
2•headsupernova•16m ago•0 comments

A Typography Geek Pointed Out Something About the Space Shuttle Discovery

https://www.theautopian.com/a-typography-geek-pointed-out-something-about-the-space-shuttle-disco...
1•colinprince•16m ago•0 comments

Building NixOS Using Nixtamal

https://nixtamal.toast.al/cookbook/nixos-using-nixtamal/
2•ndr•17m ago•0 comments

Ask HN: Should I be polite to my agent or should I treat it like shit?

1•d--b•17m ago•1 comments

Systems Thinking Is Vital in the Age of AI

https://spectrum.ieee.org/systems-thinking-vital-in-ai
1•Brajeshwar•18m ago•0 comments

Show HN: ScopeDB Cloud, Serverless event database with pipelined ScopeQL

https://www.scopedb.io/blog/scopedb-cloud-public-preview
1•tison•18m ago•0 comments

What happens when the agent is long gone, but its access key lives on?

https://thenewstack.io/governing-ai-agent-credentials/
1•Brajeshwar•18m ago•0 comments

Google just handed its rivals the keys to Android

https://thenewstack.io/android-agents-build-debug/
1•Brajeshwar•18m ago•0 comments

We ran 384 adversarial probes against 48 agent skills

https://skill123.me/blog/adversarial-probe-results-47-skills
1•hardwoker2013•18m ago•0 comments

Hegseth Fires Top General After Laura Loomer Targets Him

https://newrepublic.com/post/217322/hegseth-fires-top-general-laura-loomer-target
2•MadrasThorn•18m ago•0 comments

No AI, 52 min. Build all Linux Files utils in C by Hand [video]

https://www.youtube.com/watch?v=gQRmSlcTq9c
1•surprisetalk•19m ago•0 comments

The Biggest Hacking Target Is Still "123456"

https://siliconprairies.substack.com/p/the-worlds-biggest-hacking-target
1•JBruggeman•19m ago•0 comments

Show HN: Backend for Agents and Builders who don't need one yet – Statebase

https://statebase.dev
1•bhldev•20m ago•1 comments

Framehand – one sentence in, a branded promo video out (open source)

https://github.com/300SpartanDev/framehand
1•Leosx•20m ago•0 comments