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 integers should work (in systems programming languages)

https://blog.regehr.org/archives/642
1•fanf2•47s ago•0 comments

Should engineering leaders still code?

https://rizwaniqbal.com/posts/engineering-leadership-and-coding/
1•riz1•2m ago•0 comments

Who Is AI Native Foundation (AINF)?

https://ainativefoundation.org/who-we-are/
1•Bluestein•3m ago•0 comments

Warming Stripes Screensaver

https://karaman.is/blog/2026/10/stripes-screensaver
1•giuliomagnifico•5m ago•0 comments

Show HN: Deepswapp Browser: browser the browser with another browser

https://deepswapp.com
1•pancsta•8m ago•0 comments

Ollama adds local text-to-speech, 100x faster than real time on Apple Silicon

https://ollama.com/blog/speech-models
1•abdullahalharir•8m ago•0 comments

Series of Tubes – Build the Internet, One Tube at a Time

https://seriesoftub.es/
1•phineyes•9m ago•0 comments

Show HN: Rewrite, a free editor that rewrites text and edits Word, LaTeX and PDF

https://samratduttaofficial.github.io/Rewrite/
1•TheDutta•10m ago•0 comments

Aivs – The AI Video Studio

https://yapern.com/blog/aivs-the-ai-video-studio/
1•andrewfromx•10m ago•0 comments

Rada – A safe harbor for your files (terminal file manager in Rust)

https://github.com/FormikaDesk/rada-fm
1•Alessandro4694•15m ago•0 comments

A Brave New World (Of AI)

https://shahruk.com/blog/2026-10-22-brave-new-world/
1•Shahruk•17m ago•0 comments

Requests, Please

https://morronel.github.io/requests_please/
1•sysoleg•19m ago•0 comments

Researchers Pinpoint the Exact Location of First Ever Photo of a Human

https://petapixel.com/2026/10/22/researchers-pinpoint-the-exact-location-of-first-ever-photo-of-a...
1•asphodele•21m ago•0 comments

Building DuckDB's Community Extensions, Faster and More Consistently

https://query.farm/blog/duckdb-community-extensions-distribution/
1•vpmadd52huq•22m ago•0 comments

Sequential Diagnosis with Language Models

https://www.science.org/doi/10.1126/science.aeh7930
1•pingou•22m ago•0 comments

What If My Mum Can Build It Too?

https://justincampbellplatt.com/blog/personal-software
1•moodmanipulator•24m ago•1 comments

Increasing transparency and trust in language models with OLMoTrace

https://allenai.org/blog/olmotrace
1•Bluestein•24m ago•1 comments

I don't know if this page explains why the product exists

https://durabl.dev
1•andrecasal•25m ago•1 comments

What an agentic SDLC needs beyond coding assistants

1•joshua_dyson•25m ago•0 comments

Two AI Chipmakers Make Up 34% of America's Earnings Boom

https://www.wsj.com/finance/stocks/the-earnings-boom-is-heavily-reliant-on-just-a-handful-of-stoc...
1•thm•25m ago•0 comments

Owners of Elvis Presley's Music Sue Anthropic for Copyright Infringement

https://www.nytimes.com/2026/10/25/arts/music/anthropic-lawsuit-elvis-presley-songs.html
1•thm•26m ago•0 comments

SpaceX closed $40B in GPU debt, debt markets shut off credit for AI datacenters

https://www.techmeme.com/261025/p11#a261025p11
1•Risse•28m ago•0 comments

Scaling Unbounded N-Gram Language Models to a Trillion Tokens

https://infini-gram.io/
1•Bluestein•30m ago•0 comments

Nintendo legend reveals Super Mario Bros.' best innovation, and it's surprising

https://www.polygon.com/nintendo-super-mario-japan-award-biggest-series-innovation/
1•Michelangelo11•32m ago•0 comments

Show HN: Load-lock, a machine-wide semaphore for parallel AI coding agents

https://github.com/aron98/load-lock
1•erdelyia•34m ago•0 comments

Show HN: QueryForge – Natural language to validated database queries

https://queryforge-service.amtry.in/
1•awsaman2•41m ago•0 comments

What happens to old AI GPUs?

https://rcrtech.com/semiconductor-news/what-happens-to-old-ai-gpus/
1•theanonymousone•41m ago•0 comments

Func Prog Conf 2026

https://jmglov.net/blog/2026-10-25-func-prog-conf-2026.html
1•gsky•41m ago•0 comments

I've created a full-chain exploit for PHP2Shell

https://github.com/MartinPham/php2shell-poc
3•martinpham•46m ago•1 comments

Decision Models meet the Trolley Problem [video]

https://www.youtube.com/watch?v=9sSKZa6THa0
6•daan_nijl•47m ago•0 comments