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

The Battle for the Future of Steam

https://www.youtube.com/watch?v=yV1_bWc0-gI
1•cable2600•37s ago•0 comments

Anthropic Expands Public Access to Claude Mythos AI Model

https://www.govinfosecurity.com/anthropic-expands-public-access-to-claude-mythos-ai-model-a-31778
1•divija_07•2m ago•0 comments

US now spending more on data center than on public transportation

https://bsky.app/profile/leftistwonk.bsky.social/post/3mnbd6txlus2c
1•kn81198•3m ago•0 comments

User-replaceable batteries are coming back in a big way

https://www.theverge.com/column/939026/user-replaceable-batteries-eu-european-union-legislation
2•1vuio0pswjnm7•4m ago•0 comments

App to find best model by filtering AI models

https://which-llm-model.netlify.app/
1•mzubairtahir•8m ago•0 comments

Coding agents are giving everyone decision fatigue

https://stackoverflow.blog/2026/05/21/coding-agents-are-giving-everyone-decision-fatigue/
1•jruohonen•9m ago•0 comments

Samurai City

https://worksinprogress.co/issue/samurai-city/
1•zdw•11m ago•0 comments

ShadowProtect: Wireshark for AI Agents

https://pypi.org/project/shadowprotect/0.1.0/
2•priyanshhhhh•12m ago•0 comments

Mellum2 Goes Open Source: A Fast Model for AI Workflows

https://blog.jetbrains.com/ai/2026/06/mellum2-goes-open-source-a-fast-model-for-ai-workflows/
3•microflash•16m ago•0 comments

Julia Http.jl 2.0

https://discourse.julialang.org/t/ann-http-jl-2-0-release-and-new-package-reseau-jl/137323
2•thetwentyone•23m ago•0 comments

Magnets Are Bad for Hardware Again

https://hackaday.com/2026/05/21/magnets-are-bad-for-hardware-again/
2•kristianpaul•26m ago•0 comments

VideoFDB: Evaluating Full-Duplex Vision-Speech Capabilities in Agents

https://research.nvidia.com/labs/amri/projects/video-fdb/
2•matt_d•28m ago•0 comments

Florida Sues OpenAI, Sam Altman: 'Utter Disregard for the Risk to Human Life'

https://variety.com/2026/biz/tech/florida-sues-openai-sam-altman-1236764066/
4•1vuio0pswjnm7•32m ago•1 comments

Self-Hosting on the Dark Web

https://david.alvarezrosa.com/posts/self-hosting-on-the-dark-web/
2•ethanplant•33m ago•0 comments

Claude Opus 4.8: The System Card

https://thezvi.substack.com/p/claude-opus-48-is-honestly-better
1•paulpauper•33m ago•0 comments

Squats, Presses, and Deadlifts: Why Gyms Don't Teach the Only Exercises You Need

https://startingstrength.com/article/squats-presses-and-deadlifts-why-gyms-dont-teach-the-only-ex...
2•eudamoniac•38m ago•0 comments

The Engineer and the Autocomplete: What LLMs Can't Do

https://geerttheys.substack.com/p/llms-vs-human-engineers-who-really
3•toadi•38m ago•0 comments

strace-ui, Bonsai_term, and the TUI renaissance

https://blog.janestreet.com/strace-ui-bonsai-term-and-the-tui-renaissance/
2•matt_d•38m ago•0 comments

GoPro is at risk of potential bankruptcy amid lower sales and high memory costs

https://www.digitalcameraworld.com/cameras/action-cameras/breaking-news-gopro-is-in-serious-finan...
2•droidjj•42m ago•0 comments

Making Pebble Apps in 2026

https://coconauts.net/blog/2026/05/08/pebble-apps/
1•jandeboevrie•42m ago•0 comments

Show HN: Jabsco – agent harness that works remotely through RDP

https://github.com/jrecyclebin/jabsco
2•jrecyclebin•46m ago•0 comments

When Agentic AI Met the Common Law of Agency [pdf]

https://download.ssrn.com/2026/5/27/6838660.pdf?response-content-disposition=inline&X-Amz-Securit...
1•droidjj•47m ago•0 comments

Ask HN: How can I get an OpenAI account bug in front of an engineer?

1•_kyran•47m ago•0 comments

EasyOS Built with Xlibre

https://bkhome.org/news/202606/easyos-built-with-xlibre.html
1•jandeboevrie•48m ago•0 comments

Bloc – Cursor for AI video (a canvas IDE, not a timeline)

https://vidbloc.com/
2•richardyangteki•52m ago•0 comments

What Happens to Software Engineering When Generating Code Is Free? (Part 1)

https://sageox.ai/blog/when-generating-code-is-free-part-1
2•port8080•54m ago•4 comments

I built a GitHub App to help reviewers decide if a PR is ready to approve

https://github.com/marketplace/approvalops
1•xpinc17•56m ago•0 comments

Woman with Ebola symptoms quarantined in Bengaluru after Uganda trip

https://indianexpress.com/article/india/ebola-virus-india-bengaluru-woman-quarantined-symptoms-10...
1•JumpCrisscross•56m ago•0 comments

Show HN: Opthash – Rust implementations of Elastic and Funnel hashing

https://github.com/aaron-ang/opthash-rs
1•aayd•1h ago•0 comments

Ask HN: Why most of us programmers are men?

4•alonsovm44•1h ago•7 comments