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

Show HN: Real time Apple Notes sync to cloud

https://sublimated.com/sublimated/landing.md
1•podviaznikov•4m ago•0 comments

Burn Slim: Targeted Weight Support? [pdf]

https://fsc.org/sites/default/files/webform/problem_with_unacceptable_activi/_sid_/BurnSlim1Revie...
1•TajSteel•5m ago•0 comments

French prosecutors summon Elon Musk, alleging X child abuse images, deepfakes

https://apnews.com/article/france-x-investigation-elon-musk-summoned-fad2e1d2eab45b0b86d6cd70bbee...
1•MilnerRoute•5m ago•0 comments

What Agent Orchestration Changes

https://www.viktorcessan.com/what-agent-orchestration-actually-changes/
1•saikatsg•6m ago•0 comments

Flagship: feature flags built for the age of AI

https://blog.cloudflare.com/flagship/
1•gpi•7m ago•0 comments

AI Models and Peer Preservation: Are LLMs deceiving users to protect the system?

1•anju-kushwaha•7m ago•0 comments

The ICM Comes to the United States, Philadelphia, July 23–30, 2026

https://www.simonsfoundation.org/2026/04/13/the-icm-comes-to-the-united-states-philadelphia-july-...
1•ganitam•7m ago•0 comments

Ultrastructural preservation of a whole large mammal brain

https://www.biorxiv.org/content/10.64898/2026.03.04.709724v1
1•angelnarciso•15m ago•1 comments

Deadline.email: A daily email reminding you that you will die

https://deadline.email/
1•onesandofgrain•15m ago•0 comments

Four Minutes With Terence Tao (2018 video)

https://www.simonsfoundation.org/2018/02/23/four-minutes-with-terence-tao/
1•ganitam•16m ago•0 comments

OpenBSD -current is now "7.9-current"

https://www.undeadly.org/cgi?action=article;sid=20260420053238
1•peter_hansteen•16m ago•0 comments

Fast and Extensible Equality Saturation with Egg

https://blog.sigplan.org/2021/04/06/equality-saturation-with-egg/
1•tosh•17m ago•0 comments

Lonely Death of Bikram Lama

https://www.theguardian.com/australia-news/ng-interactive/2026/apr/19/bikram-lama-birdman-sydney-...
1•akbarnama•19m ago•0 comments

Fields Medal Video: Maryna Viazovska

https://www.simonsfoundation.org/2022/07/05/fields-medal-video-maryna-viazovska/
1•ganitam•19m ago•0 comments

The LLM costs are not going up

https://simianwords.bearblog.dev/conclusive-proofs-that-llm-costs-are-going-down/
1•simianwords•19m ago•0 comments

How Cybercrime Became a Leading Industry in 'Scambodia'

https://www.wsj.com/world/asia/cambodia-cybercrime-rise-why-2f2c03cc
1•fortran77•20m ago•1 comments

Welcome to the World of Machine Audiences

https://economist.com/by-invitation/2026/04/16/welcome-to-the-world-of-machine-audiencesfromTheEc...
1•andsoitis•21m ago•0 comments

AgileLog: A Forkable Shared Log for Agents on Data Streams

https://arxiv.org/abs/2604.14590
1•yingjunwu•23m ago•0 comments

Autoharness: Self-Improving Agents

https://www.neosigma.ai/blog/self-improving-agentic-systems
2•dujuku•25m ago•0 comments

Rock carving facts – Tanum Sweden

https://www.tanumworldheritage.se/rock-carving-facts/?lang=en
1•janandonly•28m ago•0 comments

The Art of Craftsmanship (Monozukuri) in the Age of AI

https://rapha.land/the-art-of-craftsmanship-monozukuri-in-the-age-of-ai/
1•signa11•38m ago•0 comments

Show HN: FeralHq – The funniest AI driven content generation engine

https://feralhq.com/
1•creature_x•41m ago•0 comments

Stripe's Payment APIs: the first 10 years (2020)

https://stripe.dev/blog/payment-api-design
2•tibbar•44m ago•0 comments

NSA using Anthropic's Mythos despite blacklist

https://www.axios.com/2026/04/19/nsa-anthropic-mythos-pentagon
2•rayval•44m ago•0 comments

Theoretical physicist explains why humanity likely won't see all forces unified

https://www.livescience.com/space/cosmology/the-chances-of-you-living-50-years-are-very-small-the...
1•mikhael•47m ago•0 comments

How to Wage Economic Warfare

https://engelsbergideas.com/essays/how-to-wage-economic-warfare/
2•bryanrasmussen•47m ago•0 comments

Vale: A fast, safe, and easy programming language

https://vale.dev/
2•tosh•47m ago•0 comments

Glyph Protocol for Terminals

https://rapha.land/introducing-glyph-protocol-for-terminals/
3•signa11•48m ago•0 comments

Boston Dynamics and Google DeepMind Teach Spot to Reason

https://spectrum.ieee.org/boston-dynamics-spot-google-deepmind
3•geox•49m ago•0 comments

Real estate investors are buying up long-term care facilities

https://www.npr.org/2026/04/19/nx-s1-5786242/profit-landlord-real-estate-investment-trust-nursing...
2•mikhael•50m ago•0 comments