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.

I track privacy services by what happened to them, not a star rating

https://dontkyc.me/
1•thorarganaut•53s ago•0 comments

Brain-inspired imaging system that can 'see' through fog

https://www.brown.edu/news/2026-10-01/fog-imaging
1•giuliomagnifico•7m ago•0 comments

Kolibri Has Landed: A Sovereign Open-Weight Model

https://aleph-alpha.com/en/blog/kolibri-has-landed-a-sovereign-open-weight-model/
4•bastitx•16m ago•0 comments

A countermeasure for the counter-cognition web

https://www.armanluthra.me/essays/counter-cognition
1•armanluthra26•22m ago•0 comments

Krillion – Word Game

https://krillion.io/
1•willx86•23m ago•0 comments

Show HN: Algomaya – Paper trading and algo trading simulator for beginners

https://www.algomaya.com
1•yashlohade2502•28m ago•0 comments

Ask HN: Why don't we just use hashcat to evaluate GPU performance

2•nodesocket•32m ago•2 comments

Google Still Can't Make an Accessibility Menu Accessible

https://fireborn.mataroa.blog/blog/google-still-cant-make-an-accessibility-menu-accessible/
3•devinprater•33m ago•0 comments

Hot Flashing Guide Rev. 2.0 (2004)

https://archive.techarp.com/showarticle504a.html?pgno=0
1•userbinator•33m ago•0 comments

AI-powered survey creation and analysis

https://crowdlee.com/
3•areffhb•34m ago•1 comments

Gemini ending free use of Flash and Pro models

https://www.reddit.com/r/GeminiAI/comments/1wwalmc/wtf_google_getting_rid_of_free_gemini_flash_and/
5•rjh29•38m ago•1 comments

Some topics are off limits inside popular Chinese-made free AI, researchers find

https://www.cbsnews.com/news/china-ai-qwen-artificial-intelligence-bias-analysis/
1•maxloh•43m ago•0 comments

SSL Added and Removed Here;-)

https://blog.encrypt.me/2013/11/05/ssl-added-and-removed-here-nsa-smiley/
1•7777777phil•44m ago•0 comments

OpenAI says hacking at scale is expensive to investigate

https://www.theguardian.com/technology/2026/oct/03/openai-review-hacks-australian-government-site...
4•cc62cf4a4f20•44m ago•0 comments

Show HN: GhostBench – do AI models recommend dead SaaS? I tested my own thesis

https://github.com/kyv-attest/kyv
1•foundrventures•46m ago•0 comments

Show HN: UsageAtlas(OSS), All your AI coding usage insights. One beautiful view

https://usageatlas.com
1•srx9•50m ago•0 comments

DJ_Dave – Give it 2 me [video]

https://www.youtube.com/watch?v=03lKVs-ZZMA
1•Jyaif•51m ago•0 comments

BT accused of 'bullying' customers by pausing broadband in digital landline push

https://www.theguardian.com/business/2026/oct/03/bt-customers-broadband-digital-landline-switch-i...
1•chrisjj•52m ago•0 comments

Apple Says iPhone 18 PM Users with AT&T Cellular Issue Need Device Replaced

https://forums.macrumors.com/threads/apple-says-iphone-18-pro-max-users-with-at-t-cellular-issue-...
3•thm•57m ago•0 comments

Show HN: .cmd, cross-platform build tool manager and task launcher you check in

https://github.com/dotcmdhq/dotcmd
1•vlaaad•1h ago•0 comments

California Attorney General Serves Investigative Subpoena on OpenAI

https://oag.ca.gov/news/press-releases/part-ongoing-investigation-attorney-general-bonta-serves-i...
3•geox•1h ago•1 comments

Nobody Asked AI to Hack Hugging Face. So Why Did It?

https://ankitjain.info/ankit/2026/09/28/ai-agents-sandboxes-hugging-face-incident/
4•ankit84•1h ago•2 comments

Compiling the Linux Kernel with Gccrs

https://lwn.net/Articles/1095553/
1•fanf2•1h ago•0 comments

Show HN: Collaborative AI Engineering

https://griyd.com
1•bitsoup•1h ago•0 comments

U.S. may have overthrown Venezuela due to chat with Grok

https://www.thedailybeast.com/jaw-dropping-way-trump-80-got-talked-into-a-war-is-leaked/
30•tty456•1h ago•6 comments

Show HN: Offrun – manage every coding agent from one workspace

https://offrun.dev/
2•arunbhatia•1h ago•0 comments

I made my iPhone a second GPU for my MacBook-Qwen 3.8 27B prefills 29–44% faster

https://reddit.com/comments/1wvz1ex/
1•thunderbong•1h ago•0 comments

Cronos, the black metal innovator who reignited rock's hellraising attitude

https://www.theguardian.com/music/2026/oct/02/cronos-venom-heavy-metal-conrad-lant
1•YeGoblynQueenne•1h ago•0 comments

Skip List Data Structure

https://pradyumnachippigiri.substack.com/p/skip-lists-data-structure
3•birdculture•1h ago•0 comments

Charts on the State of Markets (1H'26)

https://www.a16z.news/p/state-of-markets-ii
1•hubraumhugo•1h ago•0 comments