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.

Shenzen's iterative ecosystem: parallel search vs. sequential optimization

https://twitter.com/bettercallmedhi/status/2027625247068065864
1•walterbell•1m ago•0 comments

Intelligence is a commodity. Context is the real AI Moat

https://adlrocha.substack.com/p/adlrocha-intelligence-is-a-commodity
1•adlrocha•1m ago•0 comments

Better-Auth Infrastructure Released

https://better-auth.com/pricing
1•tnkuehne•1m ago•0 comments

Going Founder Mode on Cancer

https://twitter.com/ElliotHershberg/status/2013340731965120952
1•wjb3•1m ago•0 comments

Cortex – turns questions into video explainers

https://cortexsolver-main.hf.space
1•FlaringRain•2m ago•0 comments

Ask HN: Alternatives to Reducto?

1•Eawrig05•3m ago•0 comments

Libre Solar – Open Hardware for Renewable Energy

https://libre.solar
1•evolve2k•4m ago•0 comments

You can use newline characters in URLs

https://lemire.me/blog/2026/02/28/you-can-use-newline-characters-in-urls/
1•ingve•5m ago•0 comments

Show HN: Optimal: Cost effective infra with agentic inbox

https://github.com/agg111/optimal
1•aishwaryagune•9m ago•0 comments

Decision trees – the unreasonable power of nested decision rules

https://mlu-explain.github.io/decision-tree/
1•mschnell•9m ago•0 comments

Doctorow: "'Build it, they will come' is a trap." Leaving Big Tech / USA's Stack

https://pluralistic.net/2026/02/26/hanged-for-a-sheep/#as-for-a-lamb
2•replooda•13m ago•1 comments

I stopped paying others to "audit" my Adsense eligibility.I check it myself

https://www.indiehackers.com/post/i-stopped-paying-others-to-audit-my-adsense-eligibility-i-built...
1•allinonetools_•14m ago•0 comments

The easiest way to get out of a subscription is to get banned

https://old.reddit.com/r/UnethicalLifeProTips/comments/1rc5q9c/ulpt_the_easiest_way_to_get_out_of...
1•jnord•17m ago•0 comments

Show HN: Built a tool that turns your GitHub commits into build-in-public posts

https://www.smashlanding.xyz
2•TedOS•17m ago•0 comments

Hard drive prices have surged by an average of 46% since Sept 2025

https://www.tomshardware.com/pc-components/hdds/hard-drive-prices-have-surged-by-an-average-of-46...
1•walterbell•18m ago•0 comments

User Privacy: An Analysis of Frontier LLM Privacy Policies (2025)

https://arxiv.org/abs/2509.05382
1•walterbell•21m ago•0 comments

Show HN: OneCamp – Self-Hosted Slack/Asana/Zoom/Notion Alternative

1•akashc777•31m ago•0 comments

Follow the Science: Science, Uncertainty and Values in the Pandemic

https://markthegraph.blogspot.com/2026/03/follow-science-science-uncertainty-and.html
1•Khaine•33m ago•1 comments

Billy bookshelves as a retro motherboard "rack"

https://rubenerd.com/billy-bookcase-as-a-retro-motherboard-rack/
1•ingve•40m ago•0 comments

The Week the Dreaded AI Jobs Wipeout Got Real

https://www.wsj.com/tech/ai/the-week-the-dreaded-ai-jobs-wipeout-got-real-3ba5057b
1•Brajeshwar•42m ago•0 comments

What Are Your Guilty Displeasures?

https://www.hopefulmons.com/p/what-are-your-guilty-displeasures
1•aregue•43m ago•0 comments

The MySQL-to-Postgres Migration That Saved $480K/Year: A Step-by-Step Guide

https://medium.com/@dusan.stanojevic.cs/the-mysql-to-postgres-migration-that-saved-480k-year-a-st...
1•taubek•49m ago•0 comments

What's in a Name?..

https://sailsandcommas.com/2014/02/03/whats-in-a-name/
1•Curiositry•50m ago•0 comments

Byte-Pair Encoding

https://en.wikipedia.org/wiki/Byte-pair_encoding
1•tosh•50m ago•0 comments

Polymarket 5min market Trading Bot

1•Benjamin-Cup•51m ago•0 comments

Dr Pirker Bioimplant

https://news.ycombinator.com
1•ahuva•57m ago•0 comments

Apple Eats AI for Breakfast [video]

https://www.youtube.com/watch?v=9VZaI44odyg
1•mgh2•59m ago•0 comments

Finding value with AI and Industry 5.0 transformation

https://www.technologyreview.com/2026/02/26/1133707/finding-value-with-ai-and-industry-5-0-transf...
1•joozio•1h ago•0 comments

Fair shifts focus away from WordPress

https://coywolf.com/news/content-marketing/fair-quits-wordpress-but-one-of-its-best-features-rema...
1•taubek•1h ago•0 comments

Show HN: Ghostty Pane Splitter – Split terminal panes for AI coding agents

https://github.com/rikeda71/ghostty-pane-splitter
2•rikeda71•1h ago•0 comments