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.

GoCD MCP Server

https://github.com/Ivinco/gocd-mcp
1•snikolaev•49s ago•0 comments

Perfection Is Not Over-Engineering

https://var0.xyz/posts/perfection-is-not-over-engineering.html
1•var0xyz•1m ago•0 comments

Firefox 153.0 Beta

https://www.firefox.com/en-US/firefox/153.0beta/releasenotes/
1•Erenay09•2m ago•0 comments

We can now track animal panic from space. Here's why it matters

https://www.bbc.com/future/article/20260521-tracking-animal-panic-from-space
1•speckx•4m ago•0 comments

China bans AI "boyfriends" and "girlfriends" over addiction, birth rate concerns

https://www.dexerto.com/entertainment/china-bans-ai-boyfriends-and-girlfriends-over-addiction-and...
1•randycupertino•7m ago•0 comments

Ahrefs free DR API Authentication starting August 10 2026

https://docs.ahrefs.com/en/api/reference/public/get-domain-rating-free
1•rexthonyy•8m ago•0 comments

Hyprland 0.56 Released

https://www.phoronix.com/news/Hyprland-0.56
2•Erenay09•8m ago•0 comments

Git email patch review addon for Thunderbird

https://mccd.space/git/thunderbird-patch-review/file/README.html.html
2•olexsmir•8m ago•0 comments

Ask HN: Claude's Unexpected Blind Test: Users = Data = Value?

1•Leewen•10m ago•0 comments

Show HN: CodeTrain – an AI tutor that refuses to write code for you

https://codetrain.ai
1•inferhaven•10m ago•0 comments

Tested Kimi K3 for Coding (2026)

https://www.dotnetperls.com/2026_7_18_tested-kimi-k3-coding
2•speckx•10m ago•0 comments

Frequently Asked Questions on Expertise

https://jtpeterson.substack.com/p/faq-on-expertise
1•surprisetalk•11m ago•0 comments

Meta Garbage Collection: Using OCaml's GC to GC Rust

https://soteria-tools.com/blog/meta-garbage-collection
2•annieversary•12m ago•0 comments

Thread: Differentiable Self-Organizing Systems

https://distill.pub/2020/selforg/
1•lioeters•12m ago•0 comments

The Age of Founder Control

https://tribunemag.co.uk/2026/07/the-age-of-founder-control
1•robtherobber•12m ago•0 comments

Show HN: Making 10-minute AI movies with Claude Code and Higgsfield ($200 each)

https://github.com/dawndrain/movie-gen
1•dawndrain•14m ago•1 comments

Sandbox Escape Vulnerabilities Across 4 Coding Agent Vendors

https://www.pillar.security/blog/the-week-of-sandbox-escapes
6•fogeltine•14m ago•1 comments

Flock License Plate Tracking Cameras

https://www.schneier.com/blog/archives/2026/07/on-flock-license-plate-tracking-cameras.html
4•pavel_lishin•14m ago•0 comments

Public Transport – Don't Make Me Think

https://shkspr.mobi/blog/2026/07/public-transport-dont-make-me-think/
2•pavel_lishin•15m ago•0 comments

Show HN: Pathfinding Puzzle Game

https://pathology.thinky.gg/
1•k2xl•15m ago•0 comments

Visualizing the Artemis II Mission

https://foxglove.dev/blog/visualizing-the-artemis-ii-mission
1•intrepidsoldier•15m ago•0 comments

Deterministic LLM router with a cryptographic audit trail – TEIA

https://github.com/felippebarcelos/teia-omega-awakening
1•felippebarcelos•16m ago•0 comments

The Washing-Machine Tragedy, by Stanisław Lem (1963)

https://www.newyorker.com/magazine/1981/11/30/the-washing-machine-tragedy
3•yesturi•18m ago•0 comments

Democratizing Abandonware

https://geopjr.dev/blog/democratizing-abandonware
1•AdmiralAsshat•19m ago•0 comments

Using LLM-Based Verification to Eliminate Bugs in Linux's Network Stack

https://www.basis.ai/blog/verified-nftables/
1•gopiandcode•20m ago•0 comments

Down with the Hierarchy: The "H" in HNSW Stands for "Hubs"

https://arxiv.org/abs/2412.01940
1•paldepind2•21m ago•0 comments

Show HN: The0 – self-hosted runtime for trading bots, bring your own language

https://github.com/alexanderwanyoike/the0
2•mercutio93•22m ago•1 comments

The Reranker Tax: When a Smart Layer Can't Save a Weak Foundation

https://www.eoinhurrell.com/posts/20260717-the-reranker-tax/
2•ehurrell•22m ago•0 comments

I wrote an API client for my water-cooled bed

https://tinkering.xyz/bedctl/
1•birdculture•23m ago•0 comments

Show HN: HN Comment Saver

https://github.com/overflowy/hn-comment-saver
3•overflowy•23m ago•2 comments