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.

Pig kidneys that were "frozen" for a year have been brought back to life

https://www.technologyreview.com/2026/10/15/1146091/pig-kidneys-that-were-frozen-for-a-year-have-...
1•joozio•30s ago•0 comments

Linux 7.3 Released

https://lwn.net/Articles/1101143/
1•cjd8•50s ago•0 comments

Ask HN: Do you also feel that it's impossible to keep up with AI?

1•simonebrunozzi•2m ago•0 comments

How to effectively debug when you no longer understand the code

https://copyconstruct.medium.com/how-to-effectively-debug-when-you-no-longer-understand-the-code-...
1•stoneman24•2m ago•1 comments

Advancing cybersecurity for modern LEO constellations

https://blog.satsearch.co/2026-10-19-advancing-cybersecurity-for-modern-leo-constellations-with-t...
1•kartikkumar•2m ago•0 comments

Show HN: Droplis – A new kind of 1 click Logic Game

https://droplis.lalo.li/
1•franze•5m ago•0 comments

How much intelligence can you run locally?

https://localai-brief.vercel.app/
1•DangerousYams•11m ago•1 comments

In Europe's tech capital, Irish labor unions are booming amid AI-driven layoffs

https://www.politico.eu/article/in-europe-tech-capital-ireland-irish-labor-unions-are-booming-ami...
1•vrganj•11m ago•1 comments

Can you bake Maven into a neural network?

https://blog.jetbrains.com/ai/2026/10/can-you-bake-maven-into-a-neural-network/
1•frostbyte7•16m ago•0 comments

iOS running on the Redmi Note 10 Pro

https://github.com/dipa-studio/ios-sweet
1•Oxodao•18m ago•0 comments

Show HN: Sauva – Terminal Unicode Explorer

https://github.com/lusingander/sauva
1•lusingander•21m ago•0 comments

It's still OK to enjoy programming

https://chriskiehl.com/article/it-is-still-ok-to-enjoy-programming
3•birdculture•21m ago•2 comments

What requirements don't you have?

https://www.seangoedecke.com/what-requirements-dont-you-have/
1•gfysfm•23m ago•0 comments

TurboScribe AI: Free Video to Text, Audio to Text – No Sign Up

https://www.turboscribeai.net/
1•wsm123456•23m ago•0 comments

FreeLeaf: An free and open latex collaborative suite

https://github.com/DeepMicroscopy/FreeLeaf
1•yread•25m ago•0 comments

A Simple Proof of the Riemann Hypothesis (2022)

https://arxiv.org/abs/2209.01890
1•the-mitr•28m ago•0 comments

Hole Punch: The popular Hacker News game, now on iOS

https://apps.apple.com/gb/app/hole-punch/id6819102242
2•trwhite•31m ago•1 comments

I use Bubbles to find the quirky stuff

https://dshbx.de/blog/bubbles/entry/c23ac55e-edf3-43c4-af91-f27ea51d7d3a
1•ZacnyLos•34m ago•0 comments

GeoParquet Downloader for QGIS

https://github.com/cholmes/qgis_plugin_gpq_downloader
1•marklit•35m ago•0 comments

Show HN: SleekNav – A hand-reviewed web directory, free to submit

https://sleeknav.com/
1•songtianlun1•36m ago•0 comments

Ask HN: Help to lower AWS bill: CloudFront requests for files that don't exist

https://james.cridland.net/blog/2026/aws-requests-help/
2•DamonHD•37m ago•1 comments

Headless table or ready-made data grid?

https://comparegrids.com/articles/article-headless-table-or-ready-made-grid
1•davidvela•40m ago•0 comments

A computer that outlived its manufacturer by 30 years

https://amiga.kexperiments.com/
2•doener•42m ago•0 comments

Andy Burnham launches campaign against 'headphone dodgers' on public transport

https://www.theguardian.com/politics/2026/oct/19/andy-burnham-launches-campaign-against-headphone...
2•theanonymousone•44m ago•1 comments

Hyperoptimized Engineer (2026) [video]

https://www.youtube.com/watch?v=MhEL9cvLxQE
1•supriyo-biswas•46m ago•0 comments

Accessible Components Library

https://tetralogical.com/blog/2026/10/14/accessible-components-library/
1•mfru•46m ago•0 comments

TamperAudit – Tamper-evident audit logs for AI agents (EU AI Act Article 12)

https://tamperaudit.com
2•leajoy•48m ago•0 comments

Zotac RTX 5090 graphics cards worth $470k disappear at Brazilian airport

https://videocardz.com/newz/two-pallets-of-zotac-rtx-5090-graphics-cards-worth-470000-disappear-a...
2•TMWNN•50m ago•1 comments

Fritz Schumacher: The Man Who Built Modern Hamburg

https://alsterrunde.com/fritz-schumacher-the-man-who-built-modern-hamburg/
1•mertbio•51m ago•0 comments

Why Is Kunio Yanagita Called the Father of Yokai Folklore?

https://www.thecollector.com/kunio-yanagita-yokai-folklore/
1•rdmuser•56m ago•0 comments