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.

General-purpose large language models outperform specialized clinical AI

https://www.nature.com/articles/s41591-026-04431-5?brid=YWdncwFKdLH5ne5BLVS2Tb5UQSQa&utm_id=97757...
1•doener•2m ago•0 comments

A zero-copy C/Python DFA engine that scrubs logs at 571 MB/s

https://github.com/thedevilhimselfcodes/guardog
1•LuciferLK•4m ago•0 comments

'A man of great appetites': what's it like to be a dictator's personal chef?

https://www.theguardian.com/film/2026/jun/09/how-to-feed-a-dictator-film
1•Michelangelo11•5m ago•0 comments

The Last Open Frontier

https://www.mikehyland.com/blog/frontier-model-government-shutdown
1•mjhyl•7m ago•0 comments

Right to Repair: The Battle You Didn't Know You Were Fighting (video)

https://www.youtube.com/watch?v=ZaX20zv-Xw4
1•mdp2021•8m ago•0 comments

Ask HN: Could someone please invite me to Lobste.rs?

1•ML0037•10m ago•0 comments

AI inequality: from GPU-poor to token-poor

https://adlrocha.substack.com/p/adlrocha-ai-inequality-from-gpu-poor
1•adlrocha•12m ago•0 comments

Show HN: Memoriq – Open-source encrypted vault for saving and searching AI chats

https://github.com/memoriqme/memoriq
1•giekaton•13m ago•0 comments

RoleDecoder

https://roledecoder.com/
1•Mohammad_1ta•13m ago•0 comments

SemanticSourceCode – Local semantic code search with Ollama and SQLite

https://github.com/TheEifelYeti/SemanticSourceCode
1•EifelYeti•16m ago•0 comments

Shipping Outside the App Store

https://keylight.dev/blog/launch-mac-app-outside-app-store/
1•dmzxnico•19m ago•0 comments

Four LTS Java Versions Get End-of-Support in a Three-Year Window (2029-2032)

https://m.slashdot.org/story/455546
1•ilreb•21m ago•0 comments

Show HN: AppLaunch – Local Service App Builder

https://applaunch.teamzlab.com/
1•mdhemalakhand•21m ago•0 comments

UNK_DeadDrop Phishing Campaign Targets Developers to Steal Cryptocurrency

https://www.proofpoint.com/us/blog/threat-insight/dont-fear-repo-unkdeaddrop-phishing-campaign-ta...
2•denysvitali•24m ago•0 comments

Ask HN: What is your blog and why should I read it?

2•chistev•25m ago•1 comments

A policy enforcement layer for MCP tool execution using Rego

https://github.com/marvior/regentix
1•walmol•26m ago•0 comments

Macaroni Messenger 1.03 – small documentation fixes

https://github.com/vanyapr/makaroshki/releases/tag/v1.03
2•snowflaxxx•34m ago•1 comments

Laser Phase Plate Cryo-Electron Microscopy

https://biohub.org/blog/laser-phase-plate-cryo-em-making-invisible-visible/
3•peteforde•37m ago•0 comments

AI Is Bringing Mashups Back

https://www.wolfe.id.au/2026/06/12/ai-is-bringing-mashups-back
2•markwolfe•42m ago•0 comments

N-Tier Services and Systems Complexity

https://yegge.ai/essays/services-and-complexity/
2•tosh•44m ago•0 comments

AI Memory Is Still Thinking Like Search

https://medium.com/@jeffreyflynt02/ai-memory-is-still-thinking-like-search-e07566311efe
4•jflynt76•45m ago•0 comments

Show HN: Have your agent consult other models

https://github.com/raine/consult-llm
2•rane•47m ago•0 comments

Final run for the current LHC accelerator (but more to come)

https://www.nikhef.nl/en/news/final-run-for-the-current-lhc-accelerator-but-more-to-come/
3•elashri•59m ago•2 comments

Have politics come for the National Academies of Science?

https://arstechnica.com/science/2026/06/have-politics-finally-come-for-the-national-academies-of-...
1•rbanffy•1h ago•0 comments

Hacking Salesforce Sites with an LLM Agent

https://www.reco.ai/blog/hacking-salesforce-sites-with-an-llm-agent
2•llmacpu•1h ago•1 comments

Why the US economy keeps defying the odds

https://www.bbc.com/news/articles/cwy031el03po
1•ilreb•1h ago•1 comments

Anthropic Is Taking AI Welfare Seriously. I'm Not Sure It Knows What It's Measu

https://www.lesswrong.com/posts/gNtHHCh363xSGJyz3/anthropic-is-taking-ai-welfare-seriously-i-m-no...
2•joozio•1h ago•0 comments

I accidentally hit SOTA on agentic memory by using AI companions

https://graph.coder.company/
2•vignesh_146•1h ago•3 comments

Local Models in Mid-2026

https://coles.codes/posts/local-models-mid-2026
1•colescodes•1h ago•0 comments

Google's Pinpoint is the free research tool you should know about

https://www.fastcompany.com/91558438/googles-pinpoint-is-the-free-research-tool-you-should-know-a...
2•OutOfHere•1h ago•1 comments