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.

One Line x86 Change to GCC Nets +12% Benchmark Win for Modern CPUs

https://www.phoronix.com/news/GCC-x86-Generic-Mispredict
1•theanonymousone•1m ago•0 comments

LastPass notifies users of yet another data breach

https://9to5mac.com/2026/06/23/lastpass-notifies-users-of-yet-another-data-breach/
1•mooreds•4m ago•0 comments

The UK's summers are getting hotter – but how prepared are we?

https://www.bbc.com/news/articles/c9d2xl3555xo
1•mooreds•5m ago•1 comments

Why the EU's Tech Sector Is Growing

https://www.kuppingercole.com/blog/leal/eu-tech-sector-is-growing
1•mooreds•8m ago•0 comments

Why a (Minimal) Blog

https://lucianocccc.com
1•lucianocccc•10m ago•0 comments

The Joy and Power of Understanding

https://binaryigor.com/the-joy-and-power-of-understanding.html
1•BinaryIgor•10m ago•0 comments

Java MCP server with Streamable HTTP, Netty transports, and stateless deployment

https://github.com/kpavlov/tachyon
1•karimtr•12m ago•0 comments

The reason China is building most of the robots

https://www.ft.com/content/c8731833-10ca-4a12-bfe4-8ebb2584ec68
1•mmarian•12m ago•1 comments

Dolphin Emulator Progress Release 2606

https://dolphin-emu.org/blog/2026/06/25/dolphin-progress-report-release-2606/
1•exploraz•12m ago•0 comments

An Interview with Figma CEO Dylan Field About Design and AI

https://stratechery.com/2026/an-interview-with-figma-ceo-dylan-field-about-design-and-ai/
1•swolpers•12m ago•0 comments

Data center noise irks Virginia neighbors: 'You just want to curse'

https://www.youtube.com/watch?v=AtXD4EFOsCg
1•tcp_handshaker•14m ago•0 comments

Florida sues OpenAI and CEO Sam Altman, claiming company hid ChatGPT risks

https://www.pbs.org/newshour/nation/florida-sues-openai-and-ceo-sam-altman-claiming-company-hid-c...
1•01-_-•14m ago•0 comments

SoftBank's Son calls AI bubble talk an 'insult,' delays retiring

https://www.taipeitimes.com/News/biz/archives/2026/06/25/2003859680
3•01-_-•16m ago•1 comments

Adversarial Communication

https://blog.glyph.im/2026/06/adversarial-communication.html
1•birdculture•18m ago•0 comments

The Problem Is Prompt Debt

https://www.dbreunig.com/2026/06/22/the-problem-is-prompt-debt.html
1•ljoshua•18m ago•0 comments

Most performant, secure, scalable, reliable, freest, open source data platform

https://averagedatabase.com
1•vismit2000•33m ago•0 comments

Laravel Anti DDoS!

https://github.com/farad-tech/laravel-auto-shield
1•faradtech•34m ago•0 comments

Show HN: How to Use Unlimited Token Plan with OpenCode

https://twitter.com/CanopyWave_AI/status/2069957571184832525
3•Timmyzzz•38m ago•1 comments

Anthropic Claims Alibaba Ran 'Brazen' Campaign to Access Its Claude AI Model

https://www.wsj.com/tech/ai/anthropic-claims-alibaba-ran-brazen-campaign-to-access-its-claude-ai-...
1•flowerlad•40m ago•0 comments

ORA: Smaller Models. Same Intelligence

https://www.oracomputing.com/
1•doener•42m ago•0 comments

The Era of Tokenmaxxing Is Over

https://techcrunch.com/2026/06/24/companies-are-scrambling-to-stop-employees-from-maxing-out-ai-b...
3•sambcui•42m ago•0 comments

Show HN: Tree, truth, druid and tar share one Proto-Indo-European root

https://p.migdal.pl/tree-of-tree/
2•stared•42m ago•1 comments

Vibecoding a High Performance System

https://andrewkchan.dev/posts/systems.html
2•davedx•49m ago•0 comments

NextBSD – FreeBSD ABI-compatible kernel with Mach built in and launchd

https://nextbsd.org/
2•sunshine-o•52m ago•0 comments

Hollywood and Big Tech Are Preparing for War

https://www.hollywoodreporter.com/business/business-news/hollywood-big-tech-war-entertainment-pla...
1•thm•53m ago•0 comments

Show HN: Cc-preview – Browse images pasted into Claude Code sessions

https://github.com/Watari995/cc-preview
2•Watari995•53m ago•1 comments

Flatpak package for GIMP 0.54.1 (1996)

https://gitlab.gnome.org/balooii/gimp-0.54
1•birdculture•57m ago•0 comments

13 years and $500M for a stage adapter? Report justifies NASA cancellations

https://arstechnica.com/space/2026/06/analysis-finds-the-exploration-programs-nasa-recently-cance...
1•rbanffy•57m ago•0 comments

Show HN: JSON Bonsai – browser JSON viewer that stays smooth on 100k+ nodes

https://github.com/pedrosousa13/JSON-Bonsai
1•pedrosousa•59m ago•0 comments

How to Build 1-Minute OHLC Bars from Non-Uniform Market Snapshot Data

https://medium.com/@DolphinDB_Inc/how-to-build-1-minute-ohlc-bars-from-non-uniform-market-snapsho...
2•dbaa4real•59m ago•0 comments