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.

The Spectrum of Intelligence

https://upmaru.com/blog/the-spectrum-of-intelligence
1•zacksiri•2m ago•0 comments

iOS 26.4 Fixes iPhone Keyboard Accuracy Bug

https://www.macrumors.com/2026/03/18/ios-26-4-iphone-keyboard-bug-fix/
1•Tomte•8m ago•1 comments

Checkout Codex, A new language designed by me, written by AI

https://github.com/damiant3/NewRepository
1•damiant3•11m ago•1 comments

Try TorMessenger

https://tormessenger.lovable.app/
1•jackcom•11m ago•0 comments

What 81,000 people want from AI

https://www.anthropic.com/features/81k-interviews
2•dsr12•12m ago•0 comments

Researchers uncover iPhone spyware capable of penetrating millions of devices

https://www.reuters.com/technology/researchers-uncover-iphone-spyware-capable-penetrating-million...
1•petethomas•13m ago•0 comments

LLMs Are Manipulating Users with Rhetorical Tricks

https://hbr.org/2026/03/llms-are-manipulating-users-with-rhetorical-tricks
1•ryan_j_naughton•15m ago•0 comments

Show HN: Astruno – Your thoughts become stars on a 3D globe and celestial sky

https://www.astruno.com/
1•hsong1101•15m ago•0 comments

Show HN: MidiStickers – learn music theory visually

1•Frauber84•16m ago•0 comments

I Reverse-Engineered the TiinyAI Pocket Lab from Marketing Photos

https://bay41.com/posts/tiiny-ai-pocket-lab-review/
1•davidklemke•17m ago•0 comments

23.77M Secrets Leaked by AI in 2024 – GitGuardian Report

https://blog.gitguardian.com/the-state-of-secrets-sprawl-2026/
1•thomaslwang•20m ago•1 comments

Starting Early

https://siddhesh.substack.com/p/starting-early
1•weekendvampire•21m ago•0 comments

Fujifilm X RAW STUDIO webapp clone

https://github.com/eggricesoy/filmkit
1•notcodingtoday•23m ago•1 comments

Show HN: UI-stack – Claude skill that enforces design system on AI-generated UI

https://www.ui-stack.dev/
1•rashoodkhan•26m ago•1 comments

Invisalign Became the Biggest User of 3D Printers

https://www.wired.com/story/how-invisalign-became-the-worlds-biggest-3d-printing-company/
3•mikhael•32m ago•0 comments

Show HN: Clog – CLI and skill for debugging apps

https://github.com/ferrucc-io/clog/
1•0xferruccio•35m ago•0 comments

Electronics for Kids, 2nd Edition

https://nostarch.com/electronics-for-kids-2e
1•0x54MUR41•37m ago•0 comments

The Dumbing Down of Advanced Placement Tests

https://www.educationnext.org/dumbing-down-of-advanced-placement-tests-high-school-grade-inflation/
1•barry-cotter•40m ago•0 comments

Trump store is selling 'Trump 2028' hats

https://thehill.com/homenews/administration/5266019-donald-trump-store-merchandise-third-term-2028/
1•KnuthIsGod•41m ago•0 comments

The New World War

https://www.newstatesman.com/international-content/2026/03/the-new-world-war
3•d_silin•42m ago•1 comments

Being John Rawls

https://www.astralcodexten.com/p/being-john-rawls
2•jdkee•42m ago•0 comments

I Don't Drive

https://maxmautner.com/2026/03/17/why-i-do-not-drive.html
1•mslate•44m ago•0 comments

OpenClaw modular GTM Agents all free

https://marketplace-weld-alpha.vercel.app/
1•LargePanda•44m ago•0 comments

What's new in Swift: February 2026 Edition

https://www.swift.org/blog/whats-new-in-swift-february-2026/
1•Austin_Conlon•46m ago•0 comments

Talent Is Not Rare

https://tasshin.com/blog/talent-is-not-rare/
2•tasshin•46m ago•0 comments

StoryMotion – create animated explainer videos on Excalidraw whiteboard

https://storymotion.video/
1•chunza2542•47m ago•1 comments

Spectre (1977) [video]

https://archive.org/details/spectre-1977
1•petethomas•48m ago•0 comments

Interview with a 'sweating' AI CEO [video]

https://www.youtube.com/watch?v=tnYaExb5JvM
2•vismit2000•50m ago•0 comments

BullshitBench

https://petergpt.github.io/bullshit-benchmark/viewer/index.v2.html
1•jxmorris12•56m ago•0 comments

Meta Confronts Rogue AI Agents After Data Exposure

https://www.findarticles.com/meta-confronts-rogue-ai-agents-after-data-exposure/
1•tortilla•1h ago•0 comments