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.

1•BMBOMICH•35s ago

Cognir – A Philosophy First

https://cognir.netlify.app/
1•sailpvp998•1m ago•0 comments

From Open Source Software to Open Source Strategy

https://nonogra.ph/from-open-source-software-to-open-source-strategy-05-21-2026
2•382hi•1m ago•0 comments

Photovoltaic

https://joeyh.name/offgrid/photovoltaic/
1•edward•2m ago•0 comments

Google, Meta, TikTok hit by EU consumer complaints about financial scams

https://www.reuters.com/legal/litigation/google-meta-tiktok-face-eu-consumer-complaints-about-han...
2•1vuio0pswjnm7•2m ago•0 comments

Google offers free full-stack app creation and publishing

https://cloud.google.com/blog/products/databases/vibe-coded-ai-studio-apps-with-firestore-firebas...
1•sohansm•3m ago•0 comments

Show HN: Osint Arena – GeoGuessr for OSINT

https://osintarena.com/
1•jeffery123•4m ago•0 comments

After Automation

https://every.to/p/after-automation
1•xenophon•4m ago•0 comments

Show HN: I built a Printify wrapper to support a ministry

https://shop.twowitnessproject.org/
1•roramigator•4m ago•0 comments

Amazon, Facebook, FBI have access to a private intelligence-sharing network

https://prismreports.org/2026/05/20/seattle-shield-private-companies-surveillance/
15•root-parent•6m ago•0 comments

Maka Kids is a streaming app optimized for well-being, not engagement

https://techcrunch.com/2026/05/21/maka-kids-is-redefining-kids-screen-time-with-a-streaming-app-o...
2•DropDead•6m ago•0 comments

Yagni

https://martinfowler.com/bliki/Yagni.html
2•jxmorris12•9m ago•0 comments

Pirsig on: What he did and did not write (2022)

https://lithub.com/robert-m-pirsig-on-the-book-he-wrote-and-the-one-he-didnt/
2•zafka•9m ago•0 comments

Fixing LLM Writing with Distribution Fine Tuning

https://rosmine.ai/2026/05/18/fixing-llm-writing-with-distribution-fine-tuning/
2•colonCapitalDee•10m ago•0 comments

Māori Text-to-Speech Model Spurns Big Tech's Values

https://spectrum.ieee.org/indigenous-ai-voice-models-maori
2•bwoah•14m ago•0 comments

Hacker News London Meetup #8

2•Wdorf•14m ago•0 comments

Apple server schematics stolen in May 2026 Foxconn cyberattack

https://appleinsider.com/articles/26/05/20/apple-servers-schematics-stolen-in-may-2026-foxconn-cy...
2•_____k•14m ago•0 comments

Ask HN: What is an optimal game theoretic response to AI adoption?

2•sifar•15m ago•0 comments

Turbopuffer crossed $100M run-rate in March

https://twitter.com/Sirupsen/status/2057470756070781400
3•conormccarter•17m ago•0 comments

Starship V3: Everything you need to know [video]

https://www.youtube.com/watch?v=y_ecCDqTSJs
2•badc0ffee•18m ago•1 comments

GitHub faces a fight for its survival at Microsoft

https://www.theverge.com/tech/935250/microsoft-github-struggles-notepad
8•sbulaev•19m ago•1 comments

Who's the Best Batter? Estimating Probabilities from Unevenly Collected Data

https://winvector.github.io/WVExamples/blog/batting-estimation-stan/baseball_stats/
2•jmount•19m ago•0 comments

Why Taxing the Wealthy Is Harder Than It Looks

https://ofdollarsanddata.com/why-taxing-the-wealthy-is-harder-than-it-looks/
2•RickJWagner•20m ago•0 comments

Ted Turner Was Elon Musk Before Elon Musk Was Elon Musk

https://www.realclearmarkets.com/articles/2026/05/21/ted_turner_was_elon_musk_before_elon_musk_wa...
2•RickJWagner•21m ago•0 comments

Ask HN: What AI prompts have you found most reliable for actual work?

3•HrachShah•23m ago•2 comments

Ask HN: Is HN Blocking Mullvad VPN?

3•burger_moon•24m ago•2 comments

Megalodon: Mass GitHub Repo Backdooring via CI Workflows

https://safedep.io/megalodon-mass-github-repo-backdooring-ci-workflows/
6•Sudhanshu2310•24m ago•0 comments

NYS sues prediction platforms over gambling allegations

https://www.newsday.com/business/technology/prediction-markets-new-york-attorney-general-letitia-...
3•1vuio0pswjnm7•27m ago•1 comments

Proxmox Virtual Environment 9.2 with Dynamic Load Balancer Released

https://www.proxmox.com/en/about/company-details/press-releases/proxmox-virtual-environment-9-2
3•speckx•31m ago•0 comments

Codex for Everything Exfiltrates Connected Data

https://www.promptarmor.com/resources/codex-for-everything-exfiltrates-connected-data
3•takira•32m ago•0 comments