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.

Type-Safe Caching

https://encore.dev/blog/type-safe-caching
1•andout_•30s ago•0 comments

Pg_plan_advice: Plan stability and user planner control for PostgreSQL?

http://rhaas.blogspot.com/2026/03/pgplanadvice-plan-stability-and-user.html
1•fanf2•3m ago•0 comments

From pixels to characters: The engineering behind Copilot CLI's animated banner

https://github.blog/engineering/from-pixels-to-characters-the-engineering-behind-github-copilot-c...
1•mariuz•3m ago•0 comments

U.S. Navy Turns Down Hormuz Escort Requests Because of High Risk

https://maritime-executive.com/article/u-s-navy-turns-down-strait-of-hormuz-escort-requests-becau...
2•mytailorisrich•5m ago•0 comments

Show HN: Ltx 2.3 – Audio to Video

https://ltx23.app/
1•Jenny249•6m ago•0 comments

AI-powered defence system stops 5G cyber-attacks in a fraction of a second

https://www.surrey.ac.uk/news/ai-powered-defence-system-stops-5g-cyber-attacks-fraction-second
1•JeanKage•10m ago•0 comments

ReSharper for VS Code and compatible editors (Cursor, Windsurf, etc.) is out

https://blog.jetbrains.com/dotnet/2026/03/05/resharper-for-visual-studio-code-cursor-and-compatib...
1•chriswoodruff•14m ago•1 comments

SlideShow.digital Has a New Website

https://slideshow.digital/
1•mimac2•18m ago•1 comments

The Enigma handover – what Polish intelligence shared with the Allies in 1939

https://warcommons.com/2026/03/12/enigma-handover-polish-intelligence-allies-1939/
1•NENCMediaGroup•19m ago•1 comments

Abusing AAD Family Refresh Tokens for Unauthorized Access and Persistence (2022)

https://github.com/secureworks/family-of-client-ids-research
1•fowl2•20m ago•0 comments

The "-1" User

https://stackexchange.com/users/-1/community
1•otobrglez•21m ago•1 comments

Prefix sums at gigabytes per second with ARM NEON

https://lemire.me/blog/2026/03/08/prefix-sums-at-tens-of-gigabytes-per-second-with-arm-neon/
1•signa11•21m ago•0 comments

Dolphin Progress Release 2603

https://dolphin-emu.org/blog/2026/03/12/dolphin-progress-report-release-2603/
5•BitPirate•22m ago•0 comments

Text formats are everywhere. Why?

https://lemire.me/blog/2026/03/05/text-formats-are-everywhere-why/
2•signa11•23m ago•0 comments

Show HN: CareerCraft AI – Generate tailored resumes from a conversation

https://super.myninja.ai/apps/6de082c7-a05f-4fc5-a7d3-ab56ccb48631
1•ptak_dev•24m ago•0 comments

Seed – AI-growable firmware over HTTP API, single C file, tested on a PDP-11

https://github.com/Awis13/seed
1•awis•24m ago•0 comments

Calvin Seibert Builds Architectural Sandcastles

https://www.greyscape.com/calvin-seibert-builds-architectural-sandcastles/
1•stared•25m ago•0 comments

Nerq Trust Protocol – How AI agents verify each other before interaction

https://nerq.ai/protocol
1•Agentindex•26m ago•1 comments

Executing programs inside transformers with exponentially faster inference

https://www.percepta.ai/blog/can-llms-be-computers
1•u1hcw9nx•27m ago•0 comments

Has your data been leaked?

https://chromewebstore.google.com/detail/digital-shield-all-in-one/pkonihncnkmbejhhjadaognganhinnhc
1•shwn2989•31m ago•1 comments

The Downside of User Accounts

https://threema.com/en/blog/downside-of-user-accounts
1•andrew918277•31m ago•0 comments

The next $1T company will be a software company masquerading as a services firm

https://sequoiacap.com/article/services-the-new-software/
1•kaizenb•32m ago•0 comments

Show HN: Bandmeter: Per-program network usage monitor for Linux, built with GPUI

https://github.com/emamoah/bandmeter
1•emamoah•33m ago•0 comments

chDB 4.0

https://clickhouse.com/blog/chdb.4-0-pandas-hex
1•tosh•35m ago•0 comments

Avoiding Trigonometry (2013)

https://iquilezles.org/articles/noacos/
2•WithinReason•38m ago•0 comments

Fully-funded trip to Stanford from anywhere in the world

https://www.svfellow.com
1•weissbergj•39m ago•0 comments

Basic C programming facts worth knowing

https://buildsoftwaresystems.com/post/essential-c-programming-facts/
1•ThierryBuilds•40m ago•0 comments

Storing Preexisting Passwords on a Yubikey

https://dubovik.eu/blog/yubikey
1•h45x1•40m ago•1 comments

MCP server for Faker-style mock data and hosted mock endpoints for AI agents

https://jsonplace.com/docs/mcp
1•fatihmgenc•40m ago•1 comments

Solid Pine Single Bed: Durable for Long-Term Rentals

https://dreamhomestore.co.uk/collections/bed-frames
1•Stevencoles89•43m ago•1 comments