frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo 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•7mo 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•7mo 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.

Game Download Sizes Thoughts

1•BatteryMountain•4m ago•0 comments

Leaked documents show Instagram's plan to win back teens

https://www.washingtonpost.com/technology/2025/12/26/meta-instagram-teen-strategy/
1•1vuio0pswjnm7•8m ago•0 comments

Oracle shares on pace for worst quarter since 2001, concerns about AI build-out

https://www.cnbc.com/2025/12/26/oracle-stock-on-pace-for-worst-quarter-since-2001-ai-concerns.html
1•1vuio0pswjnm7•10m ago•0 comments

When Cities Realized They Can Just Say No to Surveillance Tech

https://www.eff.org/deeplinks/2025/12/procurement-power-when-cities-realized-they-can-just-say-no...
2•MilnerRoute•13m ago•0 comments

Show HN: Mind2Post, a tool that turn your minds into high-value posts

https://mind2post.com.com
1•tangpanqing•16m ago•0 comments

Geoffrey Hinton warns AI has 'progressed even faster than I thought' [video]

https://www.youtube.com/watch?v=5qBDQgfeB6s
1•davidst•19m ago•0 comments

Insight Debt

https://bytesauna.com/post/insight-debt
1•mapehe•22m ago•1 comments

Why didn't anyone point out the flawed operating leverage story in SaaS?

https://elocination.substack.com/p/why-didnt-anyone-point-out-the-flawed
1•pr337h4m•22m ago•0 comments

The Second Great Error Model Convergence

https://matklad.github.io/2025/12/29/second-error-model-convergence.html
1•ingve•33m ago•0 comments

Turning Images into Talking Videos with AI

https://www.infinitetalk.com
1•cy1414569•34m ago•1 comments

The Many Worlds Interpretation of Quantum Mechanics (Hugh Everett PhD Thesis) [pdf]

https://www.pbs.org/wgbh/nova/manyworlds/pdf/dissertation.pdf
2•kdavis•35m ago•0 comments

What I learned after collecting large-scale US business data

https://rangelead.com/
1•RangeLead•46m ago•1 comments

Multidimensional Analysis: Algebras and Systems for Science and Engineering

https://www.georgehart.com/research/multanal.html
2•teleforce•1h ago•0 comments

Ask HN: Ruby 4 and unicorn segfault (kgio) how to get a gem release?

1•catatsuy•1h ago•0 comments

A framework for semiring-annotated type systems

https://stax.strath.ac.uk/concern/theses/tt44pn44w
2•teleforce•1h ago•0 comments

AI language models duped by poems

https://www.dw.com/en/ai-language-models-duped-hacked-by-poems-chatgpt-gemini-claude-security-mec...
1•DeLopSpot•1h ago•0 comments

Million dollar idea? Imagine TikTok but everytime you scroll it's a new meme

https://www.onemorememe.com/
2•mattmerrick•1h ago•2 comments

The $276B Bull: Ken Fisher's Top Bets for the AI Supercycle

https://www.13radar.com/guru/ken-fisher
1•EvansWilson•1h ago•2 comments

Staying ahead of censors in 2025

https://forum.torproject.org/t/staying-ahead-of-censors-in-2025-what-weve-learned-from-fighting-c...
40•ggeorgovassilis•1h ago•8 comments

Case Study on Structured JSON Prompts for Nano Banana Pro

https://curateclick.com/blog/2025-12-29-nano-banana-pro-prompts
1•czmilo•1h ago•3 comments

Show HN: Z80-μLM, a 'Conversational AI' That Fits in 40KB

https://github.com/HarryR/z80ai
17•quesomaster9000•1h ago•2 comments

Binaries

https://fzakaria.com/2025/12/28/huge-binaries
7•todsacerdoti•1h ago•2 comments

Show HN: DockMate – Terminal UI for Container Management

https://github.com/shubh-io/DockMate
1•shubh-io•1h ago•0 comments

Show HN: Got tired of searching for AI news daily so I built my own AI news page

https://dreyx.com/
3•lilsquid•1h ago•3 comments

Codex Kaioken – OpenAI Codex CLI fork with subagents, memory, and live settings

https://github.com/jayasuryajsk/codex-kaioken
2•j34nsh33•1h ago•2 comments

Show HN: Snippets – Minimal local scratchpad for code and notes

https://snippets.dev/
1•william_uk•1h ago•0 comments

Copybara – tool for transforming and moving code between repositories

https://github.com/google/copybara
3•wiradikusuma•1h ago•0 comments

The Lure of a Rising Asian Metropolis? No Traffic.

https://www.nytimes.com/2025/12/28/world/asia/indonesia-nusantara-future-capital.html
1•mitchbob•1h ago•1 comments

World's Smallest Programmable, Autonomous Robots

https://techxplore.com/news/2025-12-world-smallest-programmable-autonomous-robots.html
6•the-mitr•1h ago•0 comments

Panoramas of Star Trek Sets

https://mijofr.github.io/st-panorama/
15•jfil•1h ago•1 comments