frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Software developers admit that AI is rotting their brains

https://www.msn.com/en-us/news/technology/software-developers-admit-that-ai-is-rotting-their-brai...
1•galaxyLogic•4m ago•0 comments

Show HN: I built a local motion-event scanner for long camera videos

https://hp60.com/mofind/
1•givebest•8m ago•0 comments

Memories of the Past, Cyberpunk Nostalgia, and AI Slop

https://medium.com/@vektormemory/memories-of-the-past-cyberpunk-nostalgia-and-ai-slop-dff4a61e1435
1•vektormemory•11m ago•1 comments

I Tested The Law of Relative Motion at 80 km/h [video]

https://www.youtube.com/watch?v=jV96uhFWgmA
1•breve•13m ago•0 comments

Europe raised me to fail and here is why

https://twitter.com/georgewritess/status/2062907763353690237
1•ksec•15m ago•0 comments

Ghzinga: GitHub TUI to keep issues and PRs on the side while using agents

https://github.com/dutifuldev/ghzinga
1•hosolmaz•31m ago•0 comments

Unihemispheric Slow-Wave Sleep

https://en.wikipedia.org/wiki/Unihemispheric_slow-wave_sleep
1•thunderbong•33m ago•0 comments

Mobitty – mobile-first web terminal for agents

https://mobitty.dev/
1•weichensw•33m ago•0 comments

Build with Nitro on Vercel

https://vercel.com/kb/nitro
1•flashbrew•34m ago•0 comments

Why Aren't Pure Languages More Common in the Industry?

https://old.reddit.com/r/AskProgramming/comments/1tz10fm/why_arent_pure_languages_more_common_in_...
1•parallelminds•35m ago•0 comments

Narcissism of Small Differences

https://en.wikipedia.org/wiki/Narcissism_of_small_differences
1•gregsadetsky•35m ago•0 comments

Flow type checker being ported to rust

https://github.com/facebook/flow/blob/main/rust_port/rust_port_status.md
1•cod1r•37m ago•0 comments

Show HN: Markdown Editor and Reader for Mac

https://www.kitemarkdown.com/
2•antonynjoro•38m ago•0 comments

Porting Zircon (Fuchsia OS's kernel) C++ code to Rust

https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/skills/cpp-to-rust-coder/SKILL.md
2•s314•39m ago•1 comments

Declank – Remove AI Watermarks from Images

https://declank.skeptrune.com/
2•skeptrune•41m ago•0 comments

Introducing GAPs: GraphQL Auxiliary Proposals

https://graphql.org/blog/2026-06-01-announcing-gaps/
1•markl42•47m ago•0 comments

Show HN: Z2H market awareness OS for traders

https://zero2h.com/preview/hn-preview/
1•pkpie1234•51m ago•0 comments

A Declaration of the Independence of Cyberspace (1996)

https://www.eff.org/cyberspace-independence
1•ipnon•52m ago•0 comments

Substack CEO dismisses popular open letter about platform drift as 'AI slop'

https://substack.com/@cb/note/c-271417569
1•navs•54m ago•0 comments

Show HN: Wifiland – I turned nearby Wi-Fi network names into a live fantasy map

https://wifiland.meaningofdesign.com/
1•meaningofdesign•56m ago•0 comments

Lessons from late founding a tech debt ridden startup(2025)

https://inverted-tree.com/posts/lessons-from-founding-tech-debt-ridden-startup/
1•ioxnav•59m ago•0 comments

How to tame AI's voracious appetite for energy

https://knowablemagazine.org/content/article/technology/2026/lowering-energy-use-artificial-intel...
1•anujbans•1h ago•0 comments

Valve P2P networking broken for more than 2 months

https://github.com/ValveSoftware/GameNetworkingSockets/issues/398
47•babuskov•1h ago•15 comments

Please read my cease and desist and lawsuit case against the FBI

4•susdeepstatefbi•1h ago•2 comments

Made globe hologram experience – includes emergency prediction system

https://global-predict--jordantownsend2.replit.app/hologram
2•Subtextofficial•1h ago•0 comments

Most people across 36 countries have negative views of Israel

https://www.pewresearch.org/short-reads/2026/06/04/most-people-across-36-countries-have-negative-...
5•goldfishgold•1h ago•1 comments

Are Memories Transferable – Or Edible?

https://www.quantamagazine.org/are-memories-transferable-or-edible-20260605/
2•anujbans•1h ago•0 comments

Show HN: Get v2.0

https://github.com/Water-Run/get/releases/tag/v2.0
3•linzhangrun•1h ago•0 comments

The Russian who invented semiconductors 25 years before the USA

https://www.semidoped.com/p/til-the-man-who-invented-the-future
20•johncole•1h ago•6 comments

2ez.sol Its 1999 again Free games. 2ez

https://2ez.sol.site
1•sgspace•1h ago•1 comments