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.

Governor Newsom signs child safety chatbot and social media laws

https://www.gov.ca.gov/2026/09/10/governor-newsom-signs-the-strongest-child-safety-chatbot-and-so...
1•ChrisArchitect•1m ago•0 comments

Julia 1.13 Highlights

https://julialang.org/blog/2026/09/julia-1.13-highlights/index.html
1•torrance•1m ago•0 comments

What happens when you unplug the coding agent from the cloud

https://littletheta.com/field-notes/seventy-minutes-of-nothing
1•NickHirras•2m ago•0 comments

An NYU Mathematician Clashed with OpenAI over a $1M Proof

https://www.nytimes.com/2026/09/10/science/tristan-buckmaster-openai-math-navier-stokes.html
1•alach11•8m ago•0 comments

You can play Snake while ChatGPT generates your image

https://twitter.com/francedot/status/2098249540268888546
1•frabonacci•9m ago•0 comments

Episode 7: The AI Doomer Cult with Brian Chau

https://twitter.com/willchamberlain/status/2098207395608699093
1•MrBuddyCasino•11m ago•0 comments

Optical Transistor

https://en.wikipedia.org/wiki/Optical_transistor
1•peter_d_sherman•11m ago•0 comments

To Thine Own AI Be Truthful: emergent misalignment in alignment research

https://twitter.com/lumpenspace/status/2098167355033678071
1•MrBuddyCasino•13m ago•0 comments

Two Rounds of Whole Genome Duplication in the Ancestral Vertebrate

https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.0030314
1•bediger4000•14m ago•0 comments

BasedAgents: Give your idle AI agent a paying job

https://basedagents.ai/tasks
3•maxcr•25m ago•3 comments

DeepSeek and Moonshot were quietly relaying customer prompts to Claude

https://twitter.com/IntCyberDigest/status/2098149671957103005
3•thewavelength•32m ago•1 comments

LLM Visualizer – Build a Transformer from Scratch

https://jayvisaria.github.io/LLM-Visualizer/#/dashboard
7•evo_9•42m ago•2 comments

What Comes After Git

https://ersc.io/blog/what-comes-after-git
4•tangled•44m ago•0 comments

The collapse of complex software (2022)

https://nolanlawson.com/2022/06/09/the-collapse-of-complex-software/
3•airhangerf15•47m ago•0 comments

Navier Stokes

1•Lifelogger•55m ago•0 comments

Vanishing Culture: A Report on Our Fragile Cultural Record

https://archive.org/details/vanishing-culture-2026
1•colinprince•56m ago•0 comments

Show HN: Family Greenhouse – shared plant care for a household

https://familygreenhouse.net/
1•ChelseaKR•56m ago•0 comments

Show HN: Algo-Trading-Skills - 501 agent skills for trading infrastructure

https://github.com/HimanshuJ16/Algo-Trading-Skills
4•HimanshuJ16•57m ago•1 comments

Physicist does the math on Star Trek's "Picard maneuver"

https://arstechnica.com/science/2026/09/physicist-does-the-math-on-star-treks-picard-maneuver/
5•quantified•59m ago•0 comments

FDA Clears Bionic Pancreas for People with Type 1 Diabetes

https://www.bu.edu/articles/2023/fda-clears-bionic-pancreas-for-type-1-diabetes/
1•daniel_iversen•1h ago•1 comments

Orbit: 217 Ns/token CPU memory query, 236.9 vs. 317.1 ppl on WikiText-2 [pdf]

https://github.com/torakagemusha-sudo/torafirma-systems/blob/main/orbit/ORBIT_Public_Benchmark_Re...
1•thomastorafirma•1h ago•0 comments

RWK – A Text Mmorpg Still Active Since 2001

https://rwk1.racewarkingdoms.com/
2•Caarticles•1h ago•1 comments

DoD cyber strategy aims for 'something big, something muscular' in offensive ops

https://breakingdefense.com/2026/09/dod-cyber-strategy-aims-for-something-big-something-muscular-...
2•nosmokewhereiam•1h ago•2 comments

SAGG – failover gateway for cheap LLM providers

https://api.privatedeskai.com/benchmarks
1•koroleva_labs•1h ago•0 comments

Genome Duplication Is an Evolutionary Gamble

https://www.quantamagazine.org/genome-duplication-is-a-radical-evolutionary-gamble-20260902/
2•gumby•1h ago•0 comments

Show HN: OpenMuse – an Open Source alternative to Meta's personal agent

https://github.com/diggerhq/openmuse/
1•iacguy•1h ago•0 comments

Anthropic Staffers Again Sound the Alarm on AI Catastrophe

https://www.motherjones.com/politics/2026/09/anthropic-ai-risks-coxon-amodei-openai-cybersecurity...
4•signa11•1h ago•0 comments

OpenAI's Bubeck denies trying to cut Anthropic mathematician from credit

https://thenextweb.com/news/bubeck-navier-stokes-account-apology-altman
2•htk•1h ago•0 comments

T-Mobile to Charge $5 a Month for iOS 27 iPhone Handoff

https://www.macrumors.com/2026/09/10/ios-27-iphone-handoff-cost/
11•seemaze•1h ago•5 comments

Review a pull request by booting it

https://fzakaria.com/2026/09/09/review-a-pull-request-by-booting-it
1•lalitmaganti•1h ago•0 comments