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.

Mycelium – codebase memory for AI coding agents

https://www.getmycelium.net/
1•KopikoCappu•1m ago•0 comments

Show HN: NowThis – OSS task manager for Nextcloud and iOS supporting subtasks

https://nowthis.app/
1•andrewjneumann•2m ago•0 comments

The Submarine

https://www.paulgraham.com/submarine.html
1•bilsbie•4m ago•0 comments

SkyPilot Endpoints: Production-Ready Inference on Every Cluster You Own

https://blog.skypilot.co/skypilot-endpoints/
1•rombr•4m ago•0 comments

The Hotness Curve (how age changes a woman's appeal)

https://aella.substack.com/p/the-hotness-curve-how-age-changes
1•SLHamlet•7m ago•0 comments

My Pele Agent Trading the World Cup Prediction Markets with AI and Crypto

https://avc.xyz/my-pele-agent
1•rmason•9m ago•0 comments

Claude Skill that turns the 37signals decision guide into a thinking partner

https://github.com/FeroVolar/Decision-Framework-Skill/
2•alianinfo•10m ago•1 comments

Field Note #009: The Asymmetric Exposure

https://www.azimuth.so/p/field-note-009-the-asymmetric-exposure
2•bennieblanco•15m ago•0 comments

Anthropic Accuses Alibaba of 'Illicitly' Accessing AI Models

https://www.bloomberg.com/news/articles/2026-06-24/anthropic-accuses-alibaba-of-illicitly-accessi...
4•htrp•16m ago•0 comments

Discovery of pneumonia subtypes could lead to tailored treatments

https://www.cam.ac.uk/research/news/discovery-of-severe-pneumonia-subtypes-could-lead-to-tailored...
2•gmays•17m ago•0 comments

Stop Programming in Markdown

https://structural.chat/articles/programming-in-markdown/
2•pchiusano•18m ago•0 comments

FilenQ – a native macOS file manager for power users

https://filenq.app
2•webseidon•20m ago•0 comments

RBX Insider

https://rbxinsider.net
2•fefw•20m ago•0 comments

Arcade Supports EMA

https://www.arcade.dev/blog/arcade-supports-ema/
2•gnanagurusrgs•21m ago•0 comments

Why SELECT * is bad for SQL performance (2020)

https://tanelpoder.com/posts/reasons-why-select-star-is-bad-for-sql-performance/
2•downbad_•21m ago•0 comments

Lost Confidence

https://longform.asmartbear.com/confidence/
2•herbertl•23m ago•0 comments

Benefit Is Not Authority

https://instantial.substack.com/p/benefit-is-not-authority
2•groverbennett•23m ago•0 comments

GitHub shouldn't be a dependency for publishing Rust on crates.io

https://infosec.exchange/@mttaggart/116806641273303255
6•speckx•24m ago•0 comments

Stanford graduates rethink their futures as AI transforms tech

https://www.bbc.com/news/articles/c872j82j2qyo
4•jethronethro•24m ago•0 comments

You can see T-Mobile's acquisitions by where its logins are hosted

https://neobotnet.com/blog/cotw-t-mobile
2•caffeinedoom•24m ago•2 comments

50% of LG and Samsung smart TV apps embed residential proxies

https://cyberinsider.com/50-of-lg-and-samsung-smart-tv-apps-embed-residential-proxies/
8•Cider9986•26m ago•2 comments

Reliability Is an Enforcement Problem

https://instantial.substack.com/p/reliability-is-an-enforcement-problem
2•groverbennett•27m ago•0 comments

Slate Auto's simple electric truck starts at $24,950

https://techcrunch.com/2026/06/24/slate-autos-radically-simple-electric-truck-starts-at-24950/
2•tjwds•30m ago•1 comments

Claude Shannon: A Mathematical Theory of Cryptography

https://evervault.com/papers/shannon
2•ShaneCurran•32m ago•0 comments

Elon Musk denies Tesla's Autopilot caused crash that killed grandmother

https://arstechnica.com/tech-policy/2026/06/elon-musk-denies-teslas-autopilot-caused-crash-that-k...
3•worik•32m ago•2 comments

AI IQ Bio

https://www.aiiq.org/bio/
2•shea256•34m ago•0 comments

WebKit in Safari 27 Beta

https://webkit.org/blog/17967/news-from-wwdc26-webkit-in-safari-27-beta/
3•SllX•34m ago•0 comments

Find an open source alternative to anything

https://opensource.builders/
2•momentmaker•35m ago•0 comments

Meta pauses employee tracker for AI training amid privacy concerns

https://www.theguardian.com/technology/2026/jun/24/meta-pauses-employee-tracker-for-ai-training-a...
2•iamflimflam1•35m ago•1 comments

WikiHouse is a modular system for high performance, zero-carbon buildings

https://www.wikihouse.cc
2•momentmaker•37m ago•0 comments