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•11mo 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•11mo 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•11mo 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.

Postgres: One Database to Rule Them All

https://marmotdata.io/blog/postgres-one-database-to-rule-them-all/
1•charlie-haley•17s ago•0 comments

A Guide to Reducing Cognitive Load

https://www.softwaredesign.ing/blog/a-guide-to-reducing-cognitive-load
1•prakhar897•35s ago•0 comments

We deployed a global round‑robin cluster across 3 continents

https://spooksystems.net/
1•danieljameslee•45s ago•1 comments

Show HN: 48 absurd web projects – one every month

1•absurdwebsite•1m ago•0 comments

A proxy routing all webtraffic through Qwen, removing all enshittified crap

https://geohot.github.io//blog/jekyll/update/2026/04/15/zappa-mitmproxy.html
1•MontyCarloHall•1m ago•0 comments

Journalists champion Wayback Machine after news publishers limit archiving

https://www.niemanlab.org/2026/04/journalists-champion-wayback-machine-after-news-publishers-limi...
1•giuliomagnifico•2m ago•0 comments

Context Is King

https://heyrtp.substack.com/p/context-is-king
1•heyheyheyhi•3m ago•0 comments

Show HN: Formal – LLM-driven property checker backed by Lean 4 and Mathlib

https://github.com/yamafaktory/formal
1•yamafaktory•4m ago•0 comments

Cal AI has been removed from the App Store

https://twitter.com/seraleev/status/2044528553488716040
1•wahnfrieden•6m ago•0 comments

Critical Breaking Change in Microsoft.AspNetCore.DataProtection

https://github.com/dotnet/aspnetcore/issues/66335
1•bjarteaarmolund•7m ago•1 comments

Killing Slack Was the Only Way to Make AI Accurate

https://promptql.io/blog/killing-slack-was-the-only-way-to-make-ai-accurate
1•rajoshighosh•7m ago•0 comments

Show HN: Ordia – standup from GitHub and Jira, no human input

1•asahi014•10m ago•0 comments

Target Policy Optimization

https://arxiv.org/abs/2604.06159
1•t55•12m ago•0 comments

I built a native compiler in 2.5 years – and said nothing

https://mica-dev.com/posts/breaking-the-silence/
1•mikepet•12m ago•1 comments

60% of Australian children still using social media despite ban for under 16s

https://mollyrosefoundation.org/more-than-60-of-australian-children-still-using-social-media-desp...
1•speckx•13m ago•0 comments

Do Riemann Zeta zeros hide RSA vulnerabilities?

https://github.com/bumblebee444/riemann-zeta-conjecture
1•bumblebee444•14m ago•0 comments

Extract any website's design system as AI-ready tokens (Claude plugin and CLI)

https://github.com/Manavarya09/design-extract
1•manavarya09•14m ago•0 comments

To Have Machines Make Math Proofs, Turn Them into a Puzzle

https://www.quantamagazine.org/to-have-machines-make-math-proofs-turn-them-into-a-puzzle-20251110/
1•sonabinu•14m ago•0 comments

After attacks on Altman's home, experts see parallels to Industrial Revolution

https://fortune.com/2026/04/14/sam-altman-openai-ceo-attacked-molotov-cocktail-gunshots-san-franc...
2•Leomuck•16m ago•1 comments

Show HN: Ilha – a UI library that fits in an AI context window

https://ilha.build/
2•ryuzyy•17m ago•0 comments

€54k spike in 13h from unrestricted Firebase browser key accessing Gemini APIs

https://discuss.ai.google.dev/t/unexpected-54k-billing-spike-in-13-hours-firebase-browser-key-wit...
39•zanbezi•17m ago•6 comments

Worst Inventions

https://content.time.com/time/specials/packages/completelist/0,29569,1991915,00.html
2•brk•18m ago•0 comments

Debloat Your Async Rust

https://tweedegolf.nl/en/blog/235/debloat-your-async-rust
1•tcfhgj•18m ago•0 comments

Apple accelerates eco progress with highest-ever recycled materials

https://www.apple.com/newsroom/2026/04/apple-accelerates-progress-with-highest-ever-recycled-mate...
2•salkahfi•19m ago•0 comments

Albird pivots to AI data centers: stock jumps 580% in a single day

https://www.tomshardware.com/tech-industry/struggling-shoemaker-and-apparel-brand-albird-pivots-t...
2•giuliomagnifico•20m ago•0 comments

Ask HN: How are you using LLMs in production?

2•Anon84•23m ago•0 comments

ManyMinds – Ask all 6 leading AIs simultaneously, get one synthesized answer

https://manyminds.io
1•IlanT•25m ago•0 comments

The Coursera-Udemy Deal: Three Bids, Two Years and a Rival Suitor

https://www.classcentral.com/report/coursera-udemy-merger-history/
2•dhawalhs•25m ago•0 comments

Beyond All Reason

https://github.com/beyond-all-reason
1•Razengan•25m ago•0 comments

How to use ZigCC to compile Nim programs

https://codeberg.org/janAkali/nim_zigcc_guide
1•archargelod•26m ago•0 comments