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.

Spring Test Profiler

https://github.com/PragmaTech-GmbH/spring-test-profiler
1•saikatsg•1m ago•0 comments

I built an Elasticsearch MCP with multi-instance support and per-instance memory

https://github.com/iamnotagentleman/elasticsearch-hub-mcp
1•velieroglu•3m ago•0 comments

Before You Automate, Ask Whether You Should Even Be Doing It in the First Place

https://hunterwalk.com/2026/03/25/before-you-automate-it-ask-whether-you-should-even-be-doing-it-...
1•speckx•3m ago•0 comments

1.2TB of Postgres, Zero Regrets: Scaling a Rails Monolith on Heroku

https://www.youtube.com/watch?v=0uoYEksSbHY
1•lackoftactics•6m ago•1 comments

ChatGPT as cognitive crutch: Evidence from random trial on knowledge retention

https://www.sciencedirect.com/science/article/pii/S2590291125010186
1•jalev•6m ago•0 comments

How Iran is making a mint from the current war

https://www.economist.com/finance-and-economics/2026/03/29/how-iran-is-making-a-mint-from-donald-...
1•Jimmc414•7m ago•2 comments

BnBDetector – Detect Short-Term Rental Activity in Any Building

https://www.bnbdetector.com/en
1•mikecaps•7m ago•0 comments

Vulnerability Research Is Cooked

https://sockpuppet.org/blog/2026/03/30/vulnerability-research-is-cooked/
1•pedro84•9m ago•0 comments

Mockly – Search real UI flows from top apps, export to Figma or Claude Code

https://www.themockly.com/
1•fountaikkj•10m ago•0 comments

GIF Manga

https://ac-bu.info/kindolphin/
1•pppone•10m ago•0 comments

Build Apps for Multiple Apple PlatformsDev Talk [video]

https://www.youtube.com/watch?v=AXWxmpPqIsU
2•darryl_bayliss•11m ago•0 comments

Meta open-sources a model that predicts brain responses to images and video

https://ai.meta.com/blog/tribe-v2-brain-predictive-foundation-model/?_fb_noscript=1
3•driesdep•12m ago•0 comments

Which

https://shud.in/thoughts/which
2•latchkey•13m ago•0 comments

Life behind Russia's internet controls (2026, first-hand account)

https://mappingthefarright.substack.com/p/no-connection-in-the-land-of-despair
4•iurshina•14m ago•0 comments

Show HN: Duker News – Web3 community funding universal income on-chain

https://dukernews.xyz
3•kindkang2024•14m ago•0 comments

Woman who had sex with identical twins told it is 'not possible' to identify dad

https://news.sky.com/story/woman-who-had-sex-with-identical-twins-told-it-is-not-possible-to-iden...
5•qingcharles•14m ago•0 comments

Codex Plugin for Claude Code

https://github.com/openai/codex-plugin-cc
3•bigbossman•15m ago•0 comments

Passive Bistatic RADAR using the NISAR satellite signal

https://github.com/jmfriedt/NISAR_pbr
4•thatcherc•17m ago•0 comments

Ask HN: What trades can I learn at home?

4•spacebuffer•18m ago•1 comments

A sea of sparks: Seeing radioactivity

https://maurycyz.com/projects/spinthariscope/
6•maurycyz•18m ago•0 comments

The Trump-Class Battleship: Spectacle Wins Out over Combat Power

https://www.fpri.org/article/2026/01/the-trump-class-battleship-spectacle-wins-out-over-combat-po...
4•worik•18m ago•0 comments

Migration Atlas

https://migrationtrack.netlify.app/
2•gmays•18m ago•0 comments

It's time to give back to the world

https://www.fikrikarim.com/give-back/
2•karimf•20m ago•0 comments

Implantable 'living pharmacy' produces multiple drugs inside the body

https://news.northwestern.edu/stories/2026/03/implantable-living-pharmacy-produces-multiple-drugs...
4•gmays•22m ago•0 comments

The Camps Promising to Turn You – Or Your Son – Into an Alpha Male

https://www.newyorker.com/magazine/2026/04/06/the-camps-promising-to-turn-you-or-your-son-into-an...
3•mitchbob•24m ago•1 comments

FDA Draft Guidance for the Use of Bayesian Methods in Clinical Trials

https://jamanetwork.com/journals/jama/fullarticle/2847012
3•walterbell•24m ago•0 comments

A custom AndroidDeX (like Samsung DeX) built using scrcpy and ADB

https://old.reddit.com/r/scrcpy/comments/1s6qhlw/i_built_a_androiddex_like_samsung_dex_using/
4•aagha•25m ago•0 comments

The Hateful Eight is 85% of S&P 500 Decline

https://paulkedrosky.com/chart-of-the-day-the-hateful-eight-is-85-of-s-p-500-decline/
3•aanet•25m ago•1 comments

Emulating old OS X versions with QEMU

https://82mhz.net/posts/2026/03/emulating-old-os-x-versions-with-qemu/
2•speckx•26m ago•0 comments

What do coders do after AI?

https://www.anildash.com/2026/03/13/coders-after-ai/
4•farmerbb•29m ago•1 comments