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.

86,359 Queries in One Request: An Outage Where Every Dashboard Was Green

https://vladthe.dev/blog/86-359-queries-in-one-request-an-outage-where-every-dashboard-was-green
1•pacMakaveli•1m ago•0 comments

Charlie Stross – On the non-use of AI in my writing process

https://www.antipope.org/charlie/blog-static/2026/08/on-the-non-use-of-ai-in-my-wri.html
1•jwx48•2m ago•0 comments

Show HN: Agent Architect Skill for building agentic systems

https://github.com/anyaa-labs/agent-skills
1•shikharja•9m ago•0 comments

Don't Start a Travel Startup

https://skift.com/2026/07/30/dont-start-a-travel-startup/
2•mgav•14m ago•1 comments

U.S. exempts SpaceX's Starlink from FCC ban on foreign-made routers

https://arstechnica.com/tech-policy/2026/07/starlink-gets-exemption-from-fcc-ban-on-routers-made-...
2•JumpCrisscross•14m ago•0 comments

RFC 10023: The "_for-sale" Underscored and Globally Scoped DNS Node Name

https://www.rfc-editor.org/info/rfc10023/
2•jruohonen•15m ago•0 comments

Centralization as the Solution

https://jiranihub.com/
2•jiranihub•19m ago•1 comments

A Field Guide to the AI Security Market

https://zeltser.com/ai-security-market-field-guide
2•882542F3884314B•19m ago•0 comments

Vercel Passport is now generally available

https://vercel.com/changelog/vercel-passport-generally-available
2•flyaway123•20m ago•0 comments

July 2026 in AI

https://howmachinesthink.substack.com/p/july-2026-in-ai-what-actually-mattered
2•abhaysinghr516•21m ago•0 comments

Google AI Overviews have gone from appearing in 15% of searches to 43% now

https://techcrunch.com/2026/07/27/googles-ai-search-is-rapidly-becoming-the-default-new-data-shows/
2•qikouki•22m ago•0 comments

RipGrep musl binaries occasionally segfault during very-large searches

https://github.com/BurntSushi/ripgrep/issues/3494
31•throwaway2037•24m ago•10 comments

Test the Email Verification Protocol with an origin trial

https://developer.chrome.com/blog/email-verification-protocol-origin-trial
2•eatonphil•25m ago•0 comments

Unreleased OpenAI model solves 10 major mathematical problems

https://twitter.com/polynoamial/status/2083467194663571701
2•crhulls•25m ago•0 comments

Hurricanes Make Lizards Evolve Bigger Toe Pads (2020)

https://www.smithsonianmag.com/smart-news/hurricanes-make-lizards-evolve-bigger-toe-pads-180974772/
1•EndXA•25m ago•0 comments

Pull Request Now Means Pull and Test

https://hec.works/blog/pull-request-now-means-pull-test/
1•dividedcomet•25m ago•0 comments

Integrate LLM into your Python runtime

https://github.com/MiskaKan/thinair
1•ObviousDecline•27m ago•0 comments

You are building a better future – NO PROMOTION AT ALL

1•silisleek•28m ago•0 comments

Show HN: Minimal LLM Post-Training Experiments on an 8GB GPU (SFT, DPO, GRPO)

https://github.com/pochenai/nano-llm-posttraining
2•popopanda•28m ago•0 comments

Building a local positioning system to track runners using Ultra-Wideband

https://zeus.ugent.be/blog/25-26/12urenloop-uwb/
1•robinpdev•29m ago•0 comments

China begins mass production of DUV chipmaking machines in major breakthrough

https://www.tomshardware.com/tech-industry/semiconductors/china-begins-mass-production-of-domesti...
3•JumpCrisscross•30m ago•1 comments

Judge orders Waymo to stop overnight charging in Santa Monica

https://arstechnica.com/tech-policy/2026/08/after-noise-complaints-judge-orders-waymo-to-stop-ove...
1•SockThief•30m ago•0 comments

Revenge of the Simps

https://www.thecut.com/article/cam-girls-webcam-pimp.html
1•t-3•31m ago•0 comments

Tech buyers are baking in sovereignty from day one, says Forrester

https://www.theregister.com/ai-and-ml/2026/07/31/tech-buyers-are-baking-in-sovereignty-from-day-o...
2•mark336•36m ago•0 comments

Playbooks, plagiarism and a pig's head: claims surrounding Cambridge professor

https://www.theguardian.com/education/ng-interactive/2026/aug/01/playbooks-plagiarism-pigs-head-n...
2•jimnotgym•37m ago•0 comments

Excel was my database for 15 years, and Postgres ended that in a weekend

https://www.makeuseof.com/excel-database-15-years-postgres-ended-in-weekend/
2•Anon84•38m ago•2 comments

Unreleased Amiga Concepts

https://www.gamesthatwerent.com/2016/04/unreleased-amiga-concepts/
2•Bluestein•41m ago•0 comments

Astro Loop

https://pubdeer.com/
1•BaseBaal•41m ago•0 comments

ANA Airlines Internet Purchasing uses live key on test env

https://claude.ai/code/artifact/581f6337-1c6a-4931-bfa2-b938a25eb3a7?via=auto_preview
1•rryoung98•42m ago•1 comments

The Safari bug that never was (2022)

https://obyford.com/posts/the-safari-bug-that-never-was/
2•downbad_•47m ago•0 comments