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•10mo 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•10mo 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•10mo 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.

Alex Gerko funds telescope showing 'cartography of the universe'

https://www.ft.com/content/74e5ce31-ca84-4ae0-96da-df517a015148
1•samizdis•59s ago•1 comments

The Internet Is for End Users

https://datatracker.ietf.org/doc/html/rfc8890
1•flipped•1m ago•0 comments

Major US tech firms are potential Iranian targets, state media says

https://www.cnn.com/world/live-news/iran-war-us-israel-trump-03-11-26
1•mrtksn•1m ago•0 comments

An unappetizing shrub became different vegetables

https://www.worksinprogress.news/p/many-of-the-tastiest-vegetables-are
1•bensouthwood•2m ago•0 comments

What Is a City When Its Wealthiest Leave?

https://www.wsj.com/real-estate/miami-property-taxes-billionaires-future-cities-a9bdda45
2•simonebrunozzi•3m ago•1 comments

Review of the Agent Internet RFCs

https://github.com/andre-git/agent-internet-rfcs
1•andre-hn•3m ago•1 comments

OpenBSD Ext4fs Update

https://www.kmx.io/blog/openbsd-ext4fs-update
1•thodg•5m ago•0 comments

Effects of Deliberate, Contingency and Reactive Planning on Effectiveness (2008)

https://www.researchgate.net/publication/247720525
1•pitched•5m ago•0 comments

AI Commoditization: Open-Source Parity Is a Pricing Problem

https://philippdubach.com/posts/ai-models-are-the-new-rebar/
1•7777777phil•5m ago•0 comments

Claude Login Outage

https://old.reddit.com/r/ClaudeAI/comments/1rqvucq/claude_status_update_elevated_errors_on_claudeai/
1•nurettin•5m ago•0 comments

All Models Are Wrong, Some Are Useful

https://docs.eventsourcingdb.io/blog/2026/03/12/all-models-are-wrong-some-are-useful/
1•goloroden•6m ago•0 comments

Is It Impossible to Make a Living as an Animator in Japan?

https://www.animenewsnetwork.com/feature/2026-02-20/is-it-really-impossible-to-make-a-living-as-a...
1•PaulHoule•7m ago•0 comments

Our ancestors used mushrooms to change the course of human history

https://www.newscientist.com/article/2516720-how-our-ancestors-used-mushrooms-to-change-the-cours...
1•Brajeshwar•8m ago•0 comments

Mathematics is undergoing the biggest change in its history

https://www.newscientist.com/article/2518526-mathematics-is-undergoing-the-biggest-change-in-its-...
1•Brajeshwar•8m ago•0 comments

New African species confirms evolutionary origin of magic mushrooms

https://phys.org/news/2026-03-african-species-evolutionary-magic-mushrooms.html
1•Brajeshwar•8m ago•0 comments

Show HN: I built an interactive globe for verified combat events

https://defogwar.com
2•IMAYousaf•9m ago•2 comments

I built an AI agent in Zig that runs on Windows XP with 64 MB RAM

1•bcorp•12m ago•1 comments

Volume, Ambition, Clarity

https://tern.sh/blog/volume-ambition-clarity/
1•trjordan•12m ago•0 comments

AI-powered refund abuse and dispute fraud: The democratization of deception

https://www.ravelin.com/blog/ai-powered-refund-abuse-dispute-fraud
1•speckx•12m ago•0 comments

Track idle, typing, and agent work time across Claude Code sessions

https://github.com/martinambrus/claude_timings_wrapper
1•martinambrus•13m ago•1 comments

Show HN: Rewriting Mongosh in Golang Using Claude

https://github.com/adaptive-scale/go-mongosh
6•debarshri•13m ago•1 comments

Show HN: Klaus – OpenClaw on a VM, batteries included

https://klausai.com/
7•robthompson2018•14m ago•1 comments

ugit: DIY Git in Python

https://www.leshenko.net/p/ugit/#
1•tosh•15m ago•0 comments

YouTube expands AI deepfake detection to politicians, officials, journalists

https://techcrunch.com/2026/03/10/youtube-expands-ai-deepfake-detection-to-politicians-government...
1•Vaslo•15m ago•0 comments

Revolut secures full UK banking licence after lengthy wait

https://uk.finance.yahoo.com/news/revolut-finally-secures-full-uk-144307017.html
2•mmarian•15m ago•0 comments

Okmain: You have an image but you want a colour

https://dgroshev.com/blog/okmain/
1•dgroshev•16m ago•0 comments

OpenUI – The Open Standard for Generative UI

https://github.com/thesysdev/openui
1•Topfi•18m ago•0 comments

ProPublica Wins Lawsuit over Access to Court Records in U.S. Navy Cases

https://www.propublica.org/article/navy-court-records-ruling-first-amendment
3•toomuchtodo•19m ago•0 comments

Decentralized Git for AI agents, just tell them to read skill.md commit and push

https://gitlawb.com
1•kevin11111•19m ago•1 comments

Stryker Hit by Handala – Intune Managed Devices Wiped

https://old.reddit.com/r/cybersecurity/comments/1rqopq0/stryker_hit_by_handala_intune_managed_dev...
3•easyat•19m ago•2 comments