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.

WhatsApp to roll out username system, allowing users to hide phone numbers

1•PetaTech-News•1m ago•0 comments

Show HN: LaunchPact - Get upvotes for your Product Hunt launch

https://www.launchpact.io
1•launchpact_io•1m ago•0 comments

The Ramanujan Challenge for AI

https://www.ramanujanmachine.com/ramanujan-challenge/
1•robinhouston•2m ago•0 comments

Pacific West Real Estate Group

https://www.pacificwestre.ca/
1•PWREALESTATE•3m ago•0 comments

Fundamental Attribution Error

https://en.wikipedia.org/wiki/Fundamental_attribution_error
1•chistev•5m ago•0 comments

Hands-Free Lockpicking: Critical Vulns in Dormakaba's Access Control System

https://sec-consult.com/blog/detail/hands-free-lockpicking-critical-vulnerabilities-in-dormakabas...
1•denysvitali•6m ago•0 comments

Recommending Linux Distros Has Never Been This Fun [video]

https://www.youtube.com/watch?v=855QEhMlFXg
2•ashitlerferad•6m ago•0 comments

AI Agent Qubitz

https://github.com/Gabrieliam42/AI-Agent-Qubitz
1•Gabrieliam42•7m ago•0 comments

Clojure 1.13 adds support for checked keys

https://clojure.org/news/2026/07/02/clojure-1-13-alpha1
1•FelipeCortez•9m ago•0 comments

PHPStorm Lite

https://phpstorm.dev/light-mode
1•dmitrijbelikov•11m ago•0 comments

Show HN: Vulns in production OSS, at $6–7 per full codebase scan

https://medium.com/@fergallardogalaviz/30-confirmed-vulnerabilities-in-production-oss-at-6-7-per-...
1•fergallardo•12m ago•0 comments

Show HN: A tracker and synthesizer in your web browser

https://playrowbot.com
1•stets•13m ago•0 comments

Private Credit Is Making Bets on Consumer Debt at a Precarious Time

https://www.bloomberg.com/news/features/2026-06-28/private-credit-is-fueling-buy-now-pay-later-gr...
1•petethomas•13m ago•0 comments

Removing Idle Uploads

https://blog.catbox.moe/post/821058172332769280/removing-idle-uploads
1•Cider9986•15m ago•0 comments

Mathematics in the Age of AI

https://www.quantabooks.org/kevin-hartnett-on-mathematics-in-the-age-of-ai/
1•digital55•18m ago•0 comments

Germany charges Nord Stream suspect with attacking pipeline on behalf of Ukraine

https://www.reuters.com/world/europe/germany-charges-nord-stream-suspect-with-war-crime-complicit...
1•miguelazo•18m ago•0 comments

Help investigate if California's new data broker opt-out tool works

https://calmatters.org/economy/technology/2026/06/help-us-investigate-data-privacy-california/
3•indynz•19m ago•0 comments

Scientists Make Cells That Feed, Grow and Reproduce

https://www.smithsonianmag.com/smart-news/scientists-say-theyve-made-cells-that-feed-grow-and-rep...
1•worik•21m ago•0 comments

Fed's Warsh plans to harness better economic data within a year

https://www.reuters.com/business/feds-warsh-plans-harness-better-economic-data-within-year-2026-0...
1•petethomas•22m ago•0 comments

Zuckerberg says AI agent development going slower than expected

https://www.reuters.com/business/zuckerberg-says-ai-agent-development-going-slower-than-expected-...
6•cwwc•23m ago•1 comments

Karja – A privacy first, local AI powered superapp

https://karja.app/
1•hsaikia•23m ago•1 comments

AI CV Radar – ranks jobs against your CV and auto-fills applications

https://ai-cv-radar.vercel.app/
1•kistlak•25m ago•0 comments

Ask HN: Favorite Life Quote

2•chistev•25m ago•0 comments

Spotify Confirms Streaming Fraud After Kalshi Trader Cries Foul

https://www.wired.com/story/spotify-streaming-manipulation-prediction-markets-polymarket-kalshi/
5•galleywest200•25m ago•0 comments

Show HN: Fastest Enterprise AI Gateway

https://github.com/maximhq/bifrost
2•aanthonymax•27m ago•0 comments

Show HN: How much of your index fund is companies you don't want to own?

https://sylph.fyi/
3•chibg10•28m ago•0 comments

The Graduate-School Dropout Toppling China's Academic Stars

https://www.wsj.com/science/the-graduate-school-dropout-toppling-chinas-academic-stars-3c1e5d86
2•PLenz•28m ago•0 comments

Show HN: BYOTag – Build your own Claude tag alternative in 3 API calls

https://www.buildyourownclaudetag.dev/
3•iacguy•29m ago•0 comments

Programming the immune system with timed local drug delivery

https://link.springer.com/article/10.1007/s13346-026-02176-9
2•boas•29m ago•2 comments

We need an accounting system for cognitive debt

https://raw.githubusercontent.com/MikaeI/cognizance/refs/heads/main/we_need_an_accounting_system_...
3•mikaelaast•30m ago•0 comments