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.

Trial against Meta in New Mexico highlights video depositions by top executives

https://apnews.com/article/meta-instagram-new-mexico-zuckerberg-mosseri-social-e5a6749f4628cff9ff...
1•1vuio0pswjnm7•50s ago•0 comments

Lunches.fyi: Scraping corporate cafeteria menus and ranking the food

https://walzr.com/lunches-fyi/
2•meetpateltech•4m ago•0 comments

Human Brain Cells Run New Data Centers in Singapore, Melbourne

https://www.bloomberg.com/news/articles/2026-03-09/human-brain-cells-run-new-data-centers-in-sing...
1•inaros•4m ago•0 comments

Mockdown

https://www.mockdown.design
1•handfuloflight•5m ago•0 comments

Sony is testing dynamic pricing in the PlayStation Store

https://psprices.com/news/sony-ab-testing-prices/
1•xoxxala•5m ago•0 comments

Amazon tells FCC to bin SpaceX's million-satellite datacenter dream

https://www.theregister.com/2026/03/09/amazon_petitions_to_block_spacexs/
1•johnbarron•10m ago•0 comments

Lazy iteration vs. array chaining on 500k rows – benchmark results

1•gvsh_maths•13m ago•0 comments

I built a tool to export Gemini chat to PDF, Word, Docs, and Notion

2•backrun•13m ago•0 comments

Baochip-1x: What It Is, Why I'm Doing It Now, and How It Came About

https://www.crowdsupply.com/baochip/dabao/updates/what-it-is-why-im-doing-it-now-and-how-it-came-...
1•brewcrew•13m ago•0 comments

Sen Sheldon Whitehouse: Connections Between Trump, Russia, and Epstein

https://www.youtube.com/watch?v=ylvTFvJvB84
1•johnbarron•15m ago•0 comments

I just launched my first Roblox game "Drone Wars"

https://www.roblox.com/games/136100514232797/Drone-Wars
1•mmmmkay•16m ago•1 comments

Scotland becomes first UK country to legalise water cremations

https://www.theguardian.com/society/2026/mar/02/scotland-becomes-first-uk-country-to-legalise-wat...
2•gscott•19m ago•0 comments

Loom vs. Linear: A tale of two AI-cities

https://jamespember.substack.com/p/loom-vs-linear-a-tale-of-two-ai-cities
1•jep888•21m ago•0 comments

Reese's changed its chocolate because of climate change

https://www.fooddive.com/news/hershey-reeses-ingredients-chocolate-climate-change-oped/813903/
1•del82•21m ago•1 comments

Financial group probed by congressional committee over Chinese stock scams

https://www.ft.com/content/49f541f8-c73d-4268-9621-f8604f1a8141
2•petethomas•22m ago•0 comments

Boredom Is the Price We Pay for Meaning

https://www.theatlantic.com/ideas/2026/02/boredom-parenthood-father/686158/
2•myth_drannon•22m ago•0 comments

Something feels weird about this economy

https://www.noahpinion.blog/p/something-feels-weird-about-this
1•paulpauper•23m ago•0 comments

Phonyhuman

https://github.com/manav03panchal/phonyhuman
1•manavpanchal•24m ago•0 comments

Ask HN: What game engine would you recommend for vibe coding?

3•general_reveal•26m ago•2 comments

American Prairie Grows Again with 2k+ Acres of Critical Wetland Habitat

https://americanprairie.org/the-latest/american-prairie-grow-again-with-2k-acres-of-critical-wetl...
2•gametorch•28m ago•0 comments

Emergent Quantization from a Dynamic Vacuum

https://journals.aps.org/prresearch/abstract/10.1103/l8y7-r3rm
1•Rover222•38m ago•2 comments

High-throughput phenomics of global ant biodiversity

https://www.nature.com/articles/s41592-026-03005-0
1•bookofjoe•39m ago•0 comments

The Deadliest Animals

https://ourworldindata.org/deadliest-animals
1•gmays•40m ago•0 comments

Fast and Powerful Code Editor

https://lap.dev/lapce/
3•arthurz•42m ago•1 comments

The greatest unsolved problem in computer science

https://www.youtube.com/watch?v=x36UmiSiEzc
1•ArturoNereu•44m ago•0 comments

China Deploys 30k-Ton Liaowang-1 "Floating Supercomputer" to Gulf of Oman

https://defencesecurityasia.com/en/china-liaowang-1-spy-ship-gulf-of-oman-us-israel-iran-war-surv...
4•swed420•45m ago•1 comments

Family of Tumbler Ridge shooting victim suing OpenAI

https://www.cbc.ca/news/canada/british-columbia/openai-sued-tumbler-ridge-victim-9.7121635
3•stygiansonic•47m ago•0 comments

Show HN: Open-source, model-agnostic alternative to Claude Code Review

https://github.com/kodustech/kodus-ai
3•edvaldodfreitas•49m ago•0 comments

Trump cancels sanctions against countries buying Russian oil

https://unn.ua/en/news/trump-cancels-sanctions-against-countries-buying-russian-oil
3•testing22321•50m ago•0 comments

Show HN: CLI for Atlassian

https://github.com/chinmaymk/acli
3•_chinmaymk•51m ago•0 comments