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.

GigChain Keys – a free, open-source MainStage alternative

https://github.com/xDarkzx/GigChain-Keys
1•DanHodgetts•5m ago•0 comments

FAA lifts ground stop at U.S. airports

https://www.washingtonpost.com/transportation/2026/11/13/faa-grounds-flights-all-us-airports-citi...
2•lisper•5m ago•0 comments

The Iron Pentacle

https://faerywolf.com/iron-pentacle/
1•PaulHoule•5m ago•0 comments

SSH Keys in the Secure Enclave, Without an Agent

https://lograker.app/blog/secure-enclave-ssh-keys-without-an-agent
1•moonlighter•9m ago•1 comments

Making Software – Quantum Computing

https://www.makingsoftware.com/chapters/quantum-computing
1•Brajeshwar•14m ago•0 comments

Tiny London quant fund emerges as one of the UK's biggest corporate taxpayers

https://www.ft.com/content/8e394812-5940-4187-8cbf-6cd597fb314c
2•throwaway2037•19m ago•1 comments

FAA lifted National Ground Stop at 0119Z

https://www.fly.faa.gov/adv/adv_otherdis?adv_date=11142026&advn=5
34•d3nit•22m ago•7 comments

Open-source ChatGPT Enterprise alternative, built on the Codex runtime

https://github.com/LingX-AI/LinkSense
1•snasan•27m ago•0 comments

AI has become a utility bill for Gen Z

https://www.reuters.com/markets/on-the-money/how-ai-has-become-utility-bill-gen-z-2026-11-13/
2•geox•29m ago•0 comments

Show HN: RemoteKu – Desktop Roku remote and live ECP keyboard deck for Mac/PC

https://github.com/KevinOBytes/remoteku
1•KevinBytes•31m ago•0 comments

Let Claude Code read your notes with MCP

https://sayjot.xyz/blog/claude-code-mcp-notes
2•mohakbajaj•32m ago•1 comments

FIRE says US to end efforts to curb App,s FB groups reporting on ICE activity

https://www.reuters.com/legal/litigation/free-speech-nonprofit-says-us-end-efforts-curb-facebook-...
10•anigbrowl•37m ago•1 comments

First person killed by a steam train in UK in 58 years

https://uk.news.yahoo.com/first-person-killed-steam-train-143538887.html
2•nephihaha•41m ago•0 comments

Ukraine knocks out 36% of Russia's oil refining capacity in under two weeks

https://english.nv.ua/nation/thirteen-day-drone-blitz-paralyzes-36-of-moscow-s-oil-50658616.html
61•kaycebasques•42m ago•10 comments

Howard Lutnick Has Got to Go

https://www.nytimes.com/2026/11/13/opinion/jensen-huang-nvidia-howard-lutnick-commerce.html
5•tedd4u•46m ago•2 comments

Trump 'considering sacking Lutnick' in wake of Nvidia scandal

https://www.telegraph.co.uk/us/news/2026/11/12/trump-considering-sacking-lutnick-in-wake-of-nvidi...
2•madihaa•47m ago•0 comments

Plague, gruel and bad teeth: why do people idealise the olden days?

https://www.economist.com/culture/2026/11/12/plague-gruel-and-bad-teeth-why-do-people-idealise-th...
3•Anon84•47m ago•1 comments

The Denny's where Nvidia was born has removed the sign honoring the company

https://www.nbcnews.com/tech/tech-news/dennys-nvidia-jensen-huang-california-rcna609154
7•madihaa•48m ago•3 comments

DOGE will make "rapid safety upgrades" to ATC system (2025)

https://thehill.com/policy/technology/5129134-el-musk-urges-quick-safety-upgrades-faa/
5•12_throw_away•50m ago•0 comments

Advanced Vibecoding [video]

https://www.youtube.com/watch?v=8hrnmA9XDPo
2•yuppiemephisto•51m ago•0 comments

Beyond Happy Path Engineering: Time

https://blog.gaborkoos.com/posts/2026-07-19-Beyond-Happy-Path-Engineering-Time/
2•fagnerbrack•51m ago•0 comments

Elon Musk to sign a petition to reinstate Jensen Huang

https://twitter.com/elonmusk/status/2121345211959804234
6•onmysofa•51m ago•1 comments

Every Way to Get 192GB for Local AI (Without a $9,500 Mac) [video]

https://www.youtube.com/watch?v=_e2dk4Pothw
2•peter_d_sherman•53m ago•0 comments

Ex-Nvidia CEO misled top lawyer on affair with Chinese businesswoman

https://www.reuters.com/world/china/ex-nvidia-ceo-misled-top-lawyer-affair-with-chinese-businessw...
3•InfiniteVortex•53m ago•1 comments

Devhook Pulse – EU-hosted uptime monitoring

https://pulse.dev-pulse.it/it
2•AlessandroCecco•54m ago•0 comments

With Mythos, a Fable as Old as Time

https://www.lawfaremedia.org/article/with-mythos--a-fable-as-old-as-time
2•EA-3167•55m ago•1 comments

Amtrak booking system experiencing major issues amid nationwide FAA ground stop

https://www.fox5dc.com/news/amtrak-outage-ticket-booking-faa-ground-stop-november-13-2026
94•snow_mac•1h ago•27 comments

DeepSeek V4 Pro 0813

https://artificialanalysis.ai/models/releases/deepseek-v4-pro
5•nthypes•1h ago•0 comments

DeepSeek V4 Pro 0813

https://huggingface.co/deepseek-ai/DeepSeek-V4-Pro-0813
5•nthypes•1h ago•0 comments

Show HN: Light control for MacBook charger status light (open-source)

https://github.com/Getterbetter/ember/releases/tag/v1.0.1
7•toppa33•1h ago•6 comments