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.

Revenues at Nvidia more than double to $96B

https://www.thetimes.com/business/companies-markets/article/revenues-nvidia-more-than-double-2z95...
1•geoffbp•40s ago•0 comments

S1: In-Context Learning for Robotics

https://skild.ai/blogs/s1
1•epsteingpt•2m ago•1 comments

Show HN: KMF Leaderboard – Let GitHub Sponsors vote on issues and message you

https://my.kmf-lab.com/leaderboard
1•nathantippy•3m ago•0 comments

Google Moves AI-Responsibility Team Out of DeepMind Lab in Latest Shake-Up

https://www.wsj.com/tech/ai/google-moves-ai-responsibility-team-out-of-deepmind-lab-in-latest-sha...
2•geoffbp•4m ago•0 comments

The Performance Inequality Gap, 2026

https://infrequently.org/2025/11/performance-inequality-gap-2026/
2•luu•8m ago•1 comments

UUID in Manticore: A Practical Guide

https://medium.com/@s_nikolaev/uuid-in-manticore-a-practical-guide-101f1b505ded
1•snikolaev•9m ago•0 comments

Engineers laid off at Apple headquarters

https://www.sfgate.com/tech/article/apple-engineers-layoff-22403206.php
3•vinayakborkar•10m ago•0 comments

Nvidia has been in talks to acquire Hugging Face for more than $13B

https://www.businessinsider.com/nvidia-in-talks-to-buy-hugging-face-13-billion-dollars-2026-8
3•mfiguiere•13m ago•1 comments

MitM Is a Feature

https://www.labcraft.dev/blog/mitm-is-a-feature
1•anandsuresh•14m ago•0 comments

Mamdani did not 'doxx' wealthy New Yorkers

https://popular.info/p/did-mamdani-doxx-wealthy-new-yorkers
3•toomuchtodo•14m ago•1 comments

Listen to Wikipedia

https://listen.hatnote.com/#en,uk,hy,et,el,hu,be,gu,kn,ta,bn,zh,fa,it,es,ru,ro,pt,no,bg,mk,sa,mr,...
2•Rendello•17m ago•0 comments

We run stateful AI agents on a serverless infra

https://maritime.sh
1•mariagorskikh1•21m ago•0 comments

Business Process Model and Notation

https://en.wikipedia.org/wiki/Business_Process_Model_and_Notation
2•zatkin•23m ago•0 comments

Lost / Burned Coins – Chainquery.com

https://chainquery.com/lists/lost-coins
2•DeanMorgan•24m ago•0 comments

CRISPR: Isn't that your problem solved? (2025)

https://www.cureffi.org/2025/03/11/base-editing/
2•gone35•31m ago•0 comments

PaaS IaaS GaaS all in one. And 2 AI <compound> models

2•Notelife87•37m ago•0 comments

GlucoFM: Foundation model for continuous glucose monitoring

https://research.google/blog/glucofm-foundation-model-for-continuous-glucose-monitoring/
2•0xedb•39m ago•0 comments

Apple's new motion graphics video makes me feel Old

https://www.goodboy.ninja/blog/the-new-mac-studio-m5-motion-graphics-video-makes-me-feel-old
2•goodboyninja•40m ago•0 comments

Playdate surprises customers with tariff refund

https://www.oregonlive.com/silicon-forest/2026/08/portland-video-game-company-surprises-customers...
3•SwellJoe•41m ago•0 comments

Compromising Signal's Contact Discovery Enclave

https://v12.sh/blog/signal
3•ryanwhitney•42m ago•0 comments

Show HN: A shop-owner simulator and visual novel set in the early 2000s [video]

https://www.youtube.com/watch?v=o2J_H6metLI
3•hollowlimb•42m ago•0 comments

Physical AI Is Enabled by Mechanical Hardware

https://www.agilityrobotics.com/research-analysis/physical-ai-is-enabled-by-mechanical-hardware
2•realysy•47m ago•0 comments

Cookies Are 3D-Printed and Made of Recycled Plastic

https://www.cnet.com/science/cookies-from-recycled-plastic-siu-carbondale-research/
2•chumaltd•48m ago•0 comments

Taste testing Raiders Lime: '90s nostalgia in a cardboard carton

https://www.canberratimes.com.au/story/6158489/taste-testing-raiders-lime-90s-nostalgia-in-a-card...
2•thunderbong•50m ago•0 comments

DHH: Future of Programming – Lex Fridman Podcast #501 [YouTube, 5 Hours]

https://www.youtube.com/watch?v=NYFGCESmikA
6•kylecazar•51m ago•0 comments

He Thought He Destroyed a Flock Camera, but It Was a Decoy, Police Say

https://www.nytimes.com/2026/08/26/us/flock-camera-decoy-vandalism-arrest-florida.html
2•xnx•54m ago•0 comments

Amazon just tripled its order of Nvidia chips over 'surging demand'

https://techcrunch.com/2026/08/26/amazon-just-tripled-its-order-of-nvidia-chips-over-surging-demand/
2•jnord•54m ago•1 comments

Anthropic continues compute-gobbling streak in $45B deal with Nscale

https://techcrunch.com/2026/08/26/anthropic-continues-compute-gobbling-streak-in-45-billion-deal-...
1•jnord•54m ago•0 comments

I extended the recent 67.25007% zeta bound to 67.28470% in Lean

https://github.com/teal-sea/zeta-lab
1•thomaslince•55m ago•0 comments

Flock Exec Alleges Opponents Would Let All Children Die Before Supporting Flock

https://ipvm.com/reports/flock-all-of-them
5•jhonovich•59m ago•2 comments