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.

DeepSWE: Measuring frontier coding agents on original, long-horizon SWE tasks

https://deepswe.datacurve.ai/
1•WarmWash•1m ago•0 comments

Sunset of the Consumer Version of Gemini Code Assist on GitHub

https://developers.google.com/gemini-code-assist/docs/deprecations/consumer-code-review
1•raphinou•1m ago•0 comments

Some Comments on "Magnifica Humanitas"

https://bastian.rieck.me/blog/2026/magnifica_humanitas/
1•Pseudomanifold•2m ago•0 comments

AMUD – A lightweight, asynchronous self-hosted application launcher

https://github.com/boubli/AMUD-Dashboard
1•tradmss•2m ago•0 comments

Hackers Asked Meta AI for Passwords. Meta AI Said Yes

https://medium.com/@tbelbek/hackers-asked-meta-ai-for-passwords-meta-ai-said-yes-b17c9129ce1b
2•rdstrtwlkr•3m ago•0 comments

Good type against all odds

https://unsung.aresluna.org/good-type-against-all-odds/
1•firloop•4m ago•0 comments

The Steady Hand at SpaceX Is Not Elon Musk

https://www.nytimes.com/2026/06/04/technology/gwynne-shotwell-spacex.html
3•pretext•5m ago•0 comments

Can These Ads Make You Love A.I.?

https://www.nytimes.com/2026/06/04/style/chatgpt-advertising-campaign-artificial-intelligence.html
2•pretext•6m ago•0 comments

The Small-Business Owners Managing Whole Armies of A.I. Employees

https://www.nytimes.com/2026/06/04/magazine/ai-agents-openclaw-small-business.html
1•pretext•6m ago•0 comments

Mellum2 Technical Report

https://arxiv.org/abs/2605.31268
1•gmays•7m ago•0 comments

How flat is replacing fat in AWS data center networks

https://www.amazon.science/blog/how-flat-is-replacing-fat-in-aws-data-center-networks
1•Tomte•8m ago•0 comments

Certified Pharmaceutical Product Destruction Services in the USA

https://www.trihazsolutions.com/pharmaceutical-waste-disposal/
1•rehmanasghar•9m ago•0 comments

What Bun Can Tell Us About AI, Open Source and Anthropic

https://redmonk.com/sogrady/2026/06/04/bun-two-lessons/
1•mkeeter•9m ago•0 comments

Good

https://www.quarter--mile.com/Really-Good
1•surprisetalk•9m ago•0 comments

Sangam Tamil literature search engine with AI explanations

http://sangam.tamilnlp.com/mp/json/ai.html
1•laxmena•10m ago•0 comments

First clinical pregnancy following AI-based sperm detection and recovery

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(25)01623-X/fulltext
2•smusamashah•10m ago•0 comments

Garmin: The more miles ridden, the higher avg VO2 max and FTP

https://www.garmin.com/en-US/blog/fitness/the-beat-on-bikes-the-latest-global-trends-from-garmin-...
2•zdkaster•11m ago•0 comments

Cargo-Auditable Support on Ubuntu

https://documentation.ubuntu.com/project/contributors/language-specific/rust/cargo-auditable/
2•petrakat•11m ago•0 comments

Germany: Lufthansa plane suffers nose gear collapse

https://www.dw.com/en/germany-lufthansa-plane-suffers-nose-gear-collapse/a-77423104
1•N19PEDL2•12m ago•0 comments

Reddit Banned Me Without a Goodbye Note. Here's What I Did Wrong

https://medium.com/@lior_34997/reddit-banned-me-without-a-goodbye-note-heres-what-i-did-wrong-602...
2•liorlb•13m ago•2 comments

Uber's commitment to self-driving startup Nuro is close to $500M

https://www.reuters.com/business/autos-transportation/ubers-commitment-self-driving-startup-nuro-...
1•JumpCrisscross•13m ago•0 comments

Top AI CEOs Call for Law Protecting Against Biological Weapons

https://www.wsj.com/politics/policy/top-ai-ceos-call-for-law-protecting-against-biological-weapon...
1•wrsh07•13m ago•1 comments

It's Not Money or Success: Harvard's Longest Study Reveals the Key to Good Life

https://spacedaily.com/m-harvard-good-life-study-strongest-finding/
2•maxloh•14m ago•0 comments

Agent Skill for TDD

https://www.saturnci.com/my-agent-skill-for-test-driven-development.html
2•laxmena•14m ago•0 comments

Brazil's high-tech voting system is losing voters' trust

https://www.economist.com/the-americas/2026/05/31/brazils-high-tech-voting-system-is-losing-voter...
1•edward•16m ago•1 comments

Let us filter AI slop, you cowards

https://www.theverge.com/ai-artificial-intelligence/942909/let-us-filter-ai-slop-google-youtube-m...
1•stalfosknight•16m ago•0 comments

EU should expand to 40 states – including Canada

https://www.cnbc.com/2026/06/04/finland-stubb-eu-canada-turkey-norway.html
10•leopoldj•16m ago•1 comments

Show HN: Creating SQL queries with decision trees

https://inversql.rentruewang.com
1•renchuw•18m ago•1 comments

Rewiring software delivery for the agentic era

https://www.mckinsey.com/capabilities/technology/our-insights/rewiring-software-delivery-for-the-...
1•taubek•19m ago•0 comments

EU Parliament switches to Qwant search engine from Google in sovereignty push

https://www.reuters.com/business/eu-parliament-switch-french-search-engine-google-tech-sovereignt...
1•rvnx•20m ago•2 comments