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.

Title

https://www.newyorker.com/magazine/2026/07/06/did-a-climber-leave-his-girlfriend-to-die-at-the-to...
1•flycatcha•28s ago•0 comments

Apple-NeXT Merger Birthday Reminiscence (Dec 2006)

https://rome.ro/news/2016/2/14/apple-next-merger-birthday
1•y1n0•55s ago•0 comments

GitHub Online Services SLA

https://github.com/customer-terms/github-online-services-sla
1•er0k•3m ago•0 comments

AI;DR (AI; Didn't Read)

https://www.rickmanelius.com/p/aidr-ai-didnt-read
1•mooreds•5m ago•0 comments

What.CD

https://en.wikipedia.org/wiki/What.CD
1•cainxinth•5m ago•0 comments

XMPP Instead of Mail for Forgejo

https://xn--gckvb8fzb.com/teaching-an-old-dog-new-tricks-forgejo-xmpp/
1•slayernominee•6m ago•0 comments

If A.I. Takes the Jobs of Young People, How Will They React?

https://www.newyorker.com/news/fault-lines/if-ai-takes-the-jobs-of-young-people-how-will-they-react
3•TimTheTinker•8m ago•0 comments

Detecting goroutine leaks with synctest/pprof

https://antonz.org/detecting-goroutine-leaks/
1•jamesog•8m ago•0 comments

Canadian Columnist Boosting Data Centres Has Ties to AI Industry

https://www.desmog.com/2026/08/17/canadian-columnist-boosting-data-centres-has-ties-to-ai-industry/
1•Teever•9m ago•0 comments

Hacker claims 3.6M Azure account records stolen from major companies

https://www.bleepingcomputer.com/news/security/hacker-claims-36-million-azure-account-records-sto...
2•DemiGuru•10m ago•0 comments

Three Minutes of Sprinting Beats 90 Minutes of Moderate Exercise

https://www.cell.com/cell-reports-medicine/fulltext/S2666-3791(26)00405-2?_returnURL=https%3A%2F%...
2•bcaulfield•10m ago•0 comments

Magic Grants Monero FCMP++ Crypto Security Assessment [pdf]

https://github.com/trailofbits/publications/blob/master/reviews/2026-07-magicgrants-monerofcmp++c...
1•Cider9986•10m ago•0 comments

Show HN: Yet Another OpenCode Plugin

https://github.com/smokeeaasd/yet-another-opencode-plugin
2•smokeeaasd•12m ago•0 comments

Japan Aims for the Moons of Mars

https://www.yahoo.com/news/science/articles/japan-aims-moons-mars-021058808.html
1•Stratoscope•13m ago•0 comments

Dyna explains how they trained Dyna-2 on over 1M hours of ego video

https://www.dyna.co/research/dyna-2-infrastructure
1•ceith•14m ago•0 comments

A tabbed desktop workspace for Claude Code

https://github.com/inkshell/inkshell/
1•rodorgas•16m ago•0 comments

Wiki for Pet Projects with Clojure and Polylith

https://snyssfx.com/blog/wiki_for_pet_projects.html
2•snyssfx•18m ago•0 comments

Are Microsoft's AI plans being held back by a shortage of chips?

https://www.theguardian.com/technology/2026/aug/17/are-microsofts-ai-plans-being-held-back-by-a-s...
3•billybuckwheat•18m ago•0 comments

The Real Animals of the World

https://decodingvibes.com/blog/the-real-animals-of-the-world/
1•altmanaltman•19m ago•0 comments

AutoDesign: Meta-Harness Optimization for Long-Horizon Agentic Design

https://arxiv.org/abs/2608.13560
1•matt_d•19m ago•0 comments

Trump sends the US Navy back to the steam age

https://www.theregister.com/offbeat/2026/08/14/trump-sends-the-us-navy-back-to-the-steam-age/5287936
6•joebuckwilliams•19m ago•1 comments

Stract Search Engine: Deactivated in Early June

https://rbfirehose.com/2026/08/17/stract-search-engine-deactivated-in-early-june/
1•rdmuser•21m ago•0 comments

The People Building a Way to Slow Down the AI Race

https://time.com/article/2026/08/16/ai-race-slowdown-data-center-verification/
1•reasonableklout•21m ago•0 comments

How I Under-Engineered My Book

https://chriskiehl.com/article/how-i-under-engineered-my-book
2•goostavos•21m ago•0 comments

DeepSeek V4 J-Space Capability Realization-Report

https://github.com/Tiger3807861189/DeepSeek-V4-J-Space-Capability-Realization-Report
1•Herrera•22m ago•0 comments

Eigendrum: A Study of the Vibrating Plane

https://eigendrum.com/
1•mooreds•22m ago•0 comments

Version Control for Everything

https://tyoverby.com/posts/version-control-for-everything-else/
1•evakhoury•23m ago•0 comments

The World Builds with Bazel

https://webazel.dev/
1•sluongng•25m ago•0 comments

Instruction Scheduling in LLVM

https://harishch4.github.io/categories/instruction-scheduling/
1•matt_d•25m ago•0 comments

Why Human Giants Defy the Laws of Physics

https://thereader.mitpress.mit.edu/why-human-giants-defy-the-laws-of-physics/
1•Petiver•26m ago•0 comments