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.

Foldkit: Effect Front End Framework

https://github.com/foldkit/foldkit
1•handfuloflight•1m ago•0 comments

One last trip to the Internet with The Rough Guide 14

https://www.planetjones.net/blog/19-04-2026/one-last-trip-to-the-internet-in-2009-with-the-rough-...
1•planetjones•1m ago•0 comments

How Did the English Arrive in Britain?

https://www.historytoday.com/archive/head-head/how-did-english-arrive-britain
1•samizdis•2m ago•0 comments

Let's Go Hunting for Exocomets

https://astrobites.org/2026/06/26/lets-go-hunting-for-exocomets/
1•speckx•4m ago•0 comments

Show HN: TypeScript7 LSP Claude Code Plugin

https://github.com/mjn298/ts7-lsp-plugin/tree/main
1•seedlessmike•6m ago•0 comments

Ask HN: If AI-generated code works 100%, do languages still need to be upgraded?

1•okzgn•7m ago•0 comments

Agentdex: Private local dashboard for AI skills, agents, and rules

https://captainyouz.github.io/agentdex/
1•youz•9m ago•1 comments

Researchers Set Hybrid Bonding Records

https://spectrum.ieee.org/hybrid-bonding-2677022836
1•rbanffy•10m ago•0 comments

Anthropic, Gavin Newsom make deal allowing CA gov to use Claude at half price

https://www.gov.ca.gov/2026/06/29/governor-newsom-announces-a-first-of-its-kind-partnership-provi...
2•alirohde•13m ago•0 comments

Build an agent first Kanban board

1•moose6912•13m ago•0 comments

2025/uellenberg – Ping pong prize

https://www.ioccc.org/2025/uellenberg/index.html
1•jonnonz•14m ago•0 comments

Baidu shares jump 7% as AI chip arm said to target $50B Hong Kong IPO

https://www.cnbc.com/2026/06/29/baidu-kunlunxin-hong-kong-ipo-50-billion-ai-chips.html
4•jethronethro•18m ago•0 comments

Per-VM Guest Networking Without a Bridge

https://spacescale.io/blog/per-vm-guest-networking-without-a-bridge/
2•tobiogundiyan•18m ago•0 comments

Blind Listening Tests of Hearing Aids at Scale

https://arxiv.org/abs/2606.26342
1•funkdified•20m ago•0 comments

Show HN: TermRover – a native tmux-first terminal for iOS and Android

https://termrover.sh/
2•ptgamr•22m ago•0 comments

Antimemetics

https://www.jernesto.com/articles/anti_meme_explosion
1•joshpicky•22m ago•2 comments

NASA Aims to Catch a Falling Space Telescope and Push It Back Up

https://www.nytimes.com/2026/06/29/science/nasa-falling-space-telescope-swift.html
4•wglb•23m ago•0 comments

Apple 'Concerned' over iPhone 18 Pro Data Leak from Supplier Tata

https://www.macrumors.com/2026/06/29/apple-tata-leak-iphone-18-pro/
2•thm•23m ago•0 comments

Boris Cherny on AI Archetypes

https://twitter.com/bcherny/status/2071379474277613732
1•rmason•24m ago•0 comments

Big Bad Modifier Order (2016)

https://languagelog.ldc.upenn.edu/nll/?p=27890
2•goopthink•26m ago•0 comments

Zero Weights Language Model (MSE-GLM)

https://aircityshops.com/index.php?url=city/mse_blog
1•fodokidza•28m ago•0 comments

JumpServer: Open-Source Privileged Access Management

https://github.com/jumpserver/jumpserver
5•neitsab•28m ago•1 comments

A systematic way to think about data quality

https://pivotal.substack.com/p/on-data-quality-1-basics
1•hubraumhugo•28m ago•0 comments

The Universe in Verse 2017: Full Show

https://www.themarginalian.org/2017/05/29/the-universe-in-verse/
1•jruohonen•32m ago•0 comments

Show HN: Quxnet

https://quxnet.net/about
1•replwoacause•32m ago•1 comments

Venture Predation (2023)

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4437360
1•wslh•35m ago•0 comments

Artifacts dating back 400k years, found in cave, show 'complex and rich'

https://www.cnn.com/2026/06/29/science/israel-prehistoric-cave-scli-intl
1•Bender•36m ago•2 comments

Old vs. New Chevy Blazer Crash Test Shows How Much Safety Has Improved

https://www.thedrive.com/news/1996-vs-2026-chevy-blazer-crash-test-shows-how-much-safety-has-impr...
1•superzero11•38m ago•0 comments

Kalshi sues Illinois over new tax on prediction market sports bets

https://arstechnica.com/tech-policy/2026/06/kalshi-sues-illinois-over-new-tax-on-prediction-marke...
2•Bender•38m ago•0 comments

Firefly Aerospace Operates Nvidia Jetson in Lunar Orbit for First Time

https://www.narracomm.com/firefly-aerospace-successfully-operates-nvidia-jetson-in-lunar-orbit-fo...
2•thelonelyborg•38m ago•0 comments