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

BT loses more than 200k broadband customers as profits slump

https://www.theguardian.com/business/2026/feb/05/bt-loses-more-than-200000-broadband-customers-pr...
1•beardyw•7s ago•0 comments

How many holes does the human body have?

https://www.livescience.com/physics-mathematics/mathematics/how-many-holes-does-the-human-body-have
1•speckx•27s ago•0 comments

Bitcoin tumbles below $70k, wiping out gains since Trump 2024 win

https://www.reuters.com/business/bitcoin-slumps-with-key-70000-level-sight-2026-02-05/
2•JumpCrisscross•1m ago•0 comments

Claude Opus 4.6 and Claude Opus 4.6 Thinking are now live on Perplexity's APIs

https://www.perplexity.ai/rest/models/config?config_schema=v1&version=2.18&source=default
4•mfiguiere•1m ago•0 comments

Leapfrogging China's Critical Minerals Dominance

https://www.cfr.org/reports/leapfrogging-chinas-critical-minerals-dominance
1•mooreds•2m ago•0 comments

Memory Decay – Teaching AI to forget like humans do

https://github.com/StructureMA/memory-decay
1•Octenin•2m ago•0 comments

Pg-dev-container is a ready-to-run VS Code development container for PostgreSQL

https://github.com/jnidzwetzki/pg-dev-container
1•mariuz•3m ago•1 comments

Jeffrey Epstein's Money Mingled with Silicon Valley Startups

https://www.nytimes.com/2026/02/05/business/epstein-investments-palantir-coinbase-thiel.html
2•JumpCrisscross•4m ago•0 comments

Commission finds that Apple Ads and Maps shouldn't be designated under the DMA

https://digital-markets-act.ec.europa.eu/commission-finds-apple-ads-and-apple-maps-should-not-be-...
1•lladnar•4m ago•0 comments

Emergent Task Timer for Lawyers

https://dsriseah.com/journal/2025/0918/
1•surprisetalk•5m ago•0 comments

Cooking with Glasses

https://macwright.com/2025/09/21/cooking-with-glasses
1•surprisetalk•5m ago•0 comments

She Had 13 Children. Then Came the Felony Charges

https://www.nytimes.com/2025/11/02/magazine/marybeth-lewis-13-children-felony-charges.html
1•surprisetalk•5m ago•0 comments

Mechanical Movements

https://507movements.com/
1•surprisetalk•5m ago•0 comments

Neijuan

https://en.wikipedia.org/wiki/Neijuan
1•tart-lemonade•5m ago•0 comments

Show HN: Fault – a Rust-CLI to inject network and application faults

https://fault-project.com/
1•sylvain-h•5m ago•0 comments

Show HN: Logic Mill – Visualizing and sorting codebases

https://slydite.com/blog/toposort/
1•Slydite•5m ago•0 comments

Building Wealth Management Platform

https://github.com/finmars-platform/finmars-core
2•qwertypk•6m ago•0 comments

GoogleMaps finds the shortest route [video]

https://www.youtube.com/shorts/nr9At6_oVSY
1•dnnsthnnr•9m ago•0 comments

GitHub Actions Is Slowly Killing Your Engineering Team

https://www.iankduncan.com/engineering/2026-02-05-github-actions-killing-your-team/
2•todsacerdoti•10m ago•0 comments

Show HN: Stui – terminal UI for slurm clusters

https://github.com/Antvirf/stui
1•someguy88888•11m ago•0 comments

NativePHP for Mobile Goes Open Source

https://nativephp.com/blog/nativephp-for-mobile-is-now-free
1•simonhamp•12m ago•0 comments

Show HN: Loader.land – dotfiles management for AI coding assistants

https://loader.land
1•wcamon•12m ago•0 comments

Open access, gen AI, and the criminology evidence base

https://www.crimrxiv.com/pub/fgqe5t6c/release/2
1•apwheele•13m ago•0 comments

AGI Blueprint 119 modules using today's tools

https://visualthoughtagi.com/agi
1•user2342ca•13m ago•1 comments

State of Flutter 2026

https://devnewsletter.com/p/state-of-flutter-2026/
1•devnewsletter•13m ago•0 comments

AI-assisted cloud intrusion achieves admin access in 8 minutes

https://www.sysdig.com/blog/ai-assisted-cloud-intrusion-achieves-admin-access-in-8-minutes
1•speckx•15m ago•0 comments

elasticStage is looking for Senior Software Engineer

https://apply.workable.com/elasticstage/j/544E62A31E
1•marynya•15m ago•1 comments

Signal Bugs and Features to Help Minneapolis

https://cryptpad.fr/pad/#/2/pad/view/gECnBhzLEUkgKdeR4MOIbbrbo6uTuia36KEd9Zfo6V8/embed/
1•diffrentcolours•17m ago•1 comments

Show HN: Cc-hdrm – See your Claude Pro/Max Headroom before you hit rate limits

https://github.com/rajish/cc-hdrm
1•rajish•18m ago•1 comments

China Trader Who Made $3B on Gold Bets Big Against Silver

https://www.bloomberg.com/news/articles/2026-02-05/china-trader-who-made-3-billion-on-gold-bets-b...
2•Brajeshwar•18m ago•0 comments