frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Body Workouts You Need to Know

https://ethansmith140833.substack.com/p/body-workouts-you-need-to-know
1•trimoxer•1m ago•0 comments

KiroCrew – Amazon's AI Harness

https://kiro.dev/crew/
1•ash663•3m ago•0 comments

Solar Water Disinfection

https://en.wikipedia.org/wiki/Solar_water_disinfection
1•_Microft•3m ago•0 comments

We learned to center a div, then browsers added sidebars

https://seg6.space/posts/center-div/
1•seg6•3m ago•0 comments

Linux 7.3 Expected to Drop the FreeVxFS File-System Driver

https://www.phoronix.com/news/Linux-Retiring-FreeVxFS
1•Bender•4m ago•0 comments

Our top agent latency optimisations

https://lexifina.com/blog/top-10-agent-optimisations-for-latency
1•alansaber•4m ago•0 comments

BMW's in-car Spider-Man ad is villain behavior

https://www.theverge.com/transportation/975172/bmw-spider-man-movie-infotainment-ad
2•cebert•5m ago•0 comments

Nixpkgs has a due-process problem

https://domenkozar.com/2026/08/04/nixpkgs-has-a-due-process-problem/
1•JustSkyfall•5m ago•0 comments

Pi's Minimalism Is Its Advantage

https://earendil.com/posts/pi-autoresearch-and-databricks/
2•luispa•5m ago•0 comments

AI stock sell-off slams hedge funds as Whale Rock loses 21.7% in July

https://www.bloomberg.com/news/articles/2026-08-04/whale-rock-sank-22-as-ai-selloff-crippled-hedg...
1•mapping365•6m ago•0 comments

Salad Fingers 1: Spoons (original upload) [video]

https://www.youtube.com/watch?v=M3iOROuTuMA
1•doener•7m ago•0 comments

Show HN: AI product evaluation methodoloy at huby

1•dd-sharma•9m ago•0 comments

What are credit default swaps and why are they spooking AI investors?

https://www.reuters.com/business/finance/global-markets-cds-explainer-2026-07-29/
2•mapping365•9m ago•0 comments

Ghostgrid AI

https://ghostgridai.com
1•mouhamad215•9m ago•0 comments

Missouri election chief rejects bid to hold vote on congressional districts

https://apnews.com/article/redistricting-congress-missouri-trump-petition-vote-election-5cfa5294a...
1•petethomas•10m ago•0 comments

Show HN: Collab Word in Web – Collaborative MS Word Parity Docx Editor

https://collab.word-in-web.com/
1•theRealestAEP•10m ago•0 comments

Credit Braces for Fallen Angels as $100B Trades Like Junk

https://financialpost.com/pmn/business-pmn/credit-braces-for-fallen-angels-as-100-billion-trades-...
1•mapping365•11m ago•0 comments

Missouri Is Latest State to Vote on Abolishing Income Tax

https://www.wsj.com/politics/policy/missouri-is-latest-state-to-vote-on-abolishing-income-tax-bd7...
1•JumpCrisscross•11m ago•0 comments

Big Tech Is Finally Paying for the AI Disaster It Created [video]

https://www.youtube.com/watch?v=XB55jZAYifQ
1•Jazgot•14m ago•0 comments

VibeMathed - Math Problems Solved by AI

https://vibemathed.com
1•frozenseven•14m ago•0 comments

DuckDB – Data power tools for your laptop, now in Clojure (2023)

https://techascent.com/blog/just-ducking-around.html
2•sourdecor•18m ago•0 comments

Luna Forge

https://github.com/RealAhmedOsama/Luna-Forge
1•handfuloflight•19m ago•0 comments

Kimi K3 Inference self hosting study

https://ramshankar07.substack.com/p/kimi-k3-tokenomics-i-spent-300-so
1•Ramshankar07•19m ago•1 comments

Tricki – a repository of mathematical know-how (2020)

https://www.tricki.org/
1•sendes•19m ago•0 comments

Open VSX extensions found harvesting developer info

https://www.bleepingcomputer.com/news/security/77-open-vsx-extensions-found-harvesting-developer-...
2•sbulaev•20m ago•0 comments

Tabtrail: park your unused tabs and save on memory

https://addons.mozilla.org/en-GB/firefox/addon/tabtrail/
1•batmnnn•21m ago•0 comments

I Tried to Make AI Writing Sound Human by Banning AI Words Through Logit_bias

https://www.vincentschmalbach.com/make-ai-writing-sound-human-logit-bias/
2•gmays•22m ago•0 comments

Amiga clarifies Commodore rights and the future of AmigaOS

https://amiga.com/news/20260804-amiga-update
4•odomus•23m ago•0 comments

Self-Serve E-Prescribing Integration with Photon

https://photonhealth.com/blog/introducing-photon-self-serve
1•arunchaudhuri_•24m ago•0 comments

AI fuels more than half of cybercrime in Africa as digital scams surge: INTERPOL

https://www.africanews.com/2026/08/04/ai-fuels-more-than-half-of-cybercrime-in-africa-as-digital-...
12•bookofjoe•26m ago•3 comments