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.

How to make my business survives it's first 5 years?

1•SSDIE•3m ago•0 comments

Every app on Earth is now open source whether it likes it or not [video]

https://www.youtube.com/watch?v=wajoP_5Cpw8
1•xkcd1963•3m ago•0 comments

Show HN: Gitsu.app – A Linear-alternative built on GitHub Projects

https://gitsu.app/
1•indhuja•4m ago•0 comments

Volta's $5B debt deal is a pulse check on the AI-financing boom

https://www.semafor.com/article/10/13/2026/voltas-5-billion-debt-deal-is-a-pulse-check-on-the-ai-...
3•ckelly•6m ago•0 comments

My AI Apps Are Bad in the Right Ways

https://medium.com/@simon-pitt/my-ai-apps-are-bad-in-exactly-the-right-ways-c4b43e8fd371
2•CodeyWhizzBang•8m ago•0 comments

Annotating Genomes via Unsupervised Deep Learning

https://github.com/gaius-augustus/vipsania
1•dtj1123•10m ago•0 comments

Anthropic thinks its AI might be conscious

https://www.bbc.com/future/article/20261014-the-strange-new-battle-over-ais-feelings
4•saikatsg•21m ago•0 comments

Tesla Roadster Unveiled – Elon Musk's Wildest Car Yet

https://www.youtube.com/watch?v=j8lbY_D7xcY
4•amanverasia•22m ago•1 comments

Codex Cloud TUI Can't Spawn Jobs

https://gist.github.com/xrl/b8b79be03d341fbb0acbe636ccf123d4
3•lrx•26m ago•0 comments

Friends don't let friends feed their data to AI agents

https://www.theverge.com/tech/1011938/muse-ai-data-friends-consent
2•saikatsg•27m ago•1 comments

From Dark Factories to Zero-Page Websites

https://lazytensor.com/news/websites-without-pages
1•sunnytisch•28m ago•0 comments

Last rites for Gentoo's Chromium package

https://lwn.net/Articles/1097760/
1•signa11•31m ago•0 comments

'Onion cartel' in Philippines fined $28M for price shock

https://www.bbc.com/news/articles/cmwyvwyp9dgro
1•aussieguy1234•32m ago•0 comments

The Folders Programming Language

https://danieltemkin.com/esolangs/folders
4•gurst•34m ago•0 comments

Show HN: Continuous Trunk Builds of Network Ups Tools (Nut) for Fedora/EL

https://copr.fedorainfracloud.org/coprs/karellen/nut-next/
1•arcivanov•39m ago•0 comments

Scientists vote to end leap seconds, redefining how the world keeps time

https://www.scientificamerican.com/article/scientists-vote-to-end-leap-seconds-redefining-how-the...
5•0in•48m ago•0 comments

Self-Evolving Agent Harness

https://arxiv.org/abs/2610.18813
2•axis_official•48m ago•0 comments

Greece drafts law requiring data centers source 60% of power from renewables

https://www.datacenterdynamics.com/en/news/greece-drafts-legislation-requiring-data-centers-sourc...
7•giuliomagnifico•53m ago•0 comments

Japan business manager visa holders leaving without reentry permits surge

https://japantoday.com/category/national/japan-business-manager-visa-holders-leaving-without-reen...
3•SenHeng•1h ago•0 comments

Instagram Reel and Video Downlaoder

https://socialsaver.net/instagram-downloader
1•M_Saqlain•1h ago•0 comments

No AI. Build your own tree directory viewer in C by hand

https://www.youtube.com/watch?v=tiMHtc6l7xM
3•hayyoth•1h ago•0 comments

Tesla makes cars that fly? [video]

https://www.youtube.com/watch?v=7p5LxFdc-Qg
31•merinpapz10•1h ago•8 comments

Chirp Pong – uses microphones and audio for networked game play

https://simonwillison.net/2026/Oct/15/chirp-pong/
1•havaloc•1h ago•1 comments

Faster Post-Quantum Cryptography with JDK Intrinsics

https://inside.java/2026/09/30/faster-post-quantum-cryptography-with-jdk-intrinsics/
1•ejboy•1h ago•0 comments

SPJ: A Taste of Verse (Programming Language) [video]

https://www.youtube.com/watch?v=I6fL66L3jPs
1•undecidabot•1h ago•0 comments

Modernizing the VS Code UI

https://code.visualstudio.com/blogs/2026/10/15/modern-ui
3•soheilpro•1h ago•0 comments

What does the (Fire)fox say?

https://blog.mozilla.org/en/firefox/new-firefox-sounds/
3•soheilpro•1h ago•1 comments

A College-by-College Guide to Which Majors Pay Off – Or Don't

https://www.nytimes.com/interactive/2026/10/07/your-money/college-degree-earnings-guide.html
2•gmays•1h ago•0 comments

Earthquake alert falsely reports magnitude 9.9 and intensity 7 in Japan

https://twitter.com/_TheoSteiner/status/2110943880900231439
4•theo-steiner•1h ago•2 comments

Show HN: Lobby Domains: Find Domains with Chrome's On-Device AI

https://lobby.domains/
1•dalemhurley•1h ago•0 comments