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.

Moats Need Models

https://twitter.com/sahar__zadeh/status/2064759511253176398
1•gmays•51s ago•0 comments

I built InstaTakker – a portable desktop Instagram workflow manager for Windows

https://github.com/issaghostlife/instatakker-app
1•issaghostlife•2m ago•1 comments

UK set to announce social media ban for under-16s

https://www.manchestereveningnews.co.uk/news/uk-news/uk-set-announce-social-media-34119132
3•beejiu•3m ago•0 comments

Ask HN: Is Coding Solved?

1•champagnepapi•3m ago•1 comments

Signal says UK plan to scan devices for nude images 'endangers us all'

https://www.theregister.com/security/2026/06/09/signal-uks-child-nude-block-threat-wont-protect-c...
2•Bender•3m ago•0 comments

Öcha – A minimalist, Kindle-style RSS and newsletter reader

https://readocha.com/
1•pavn•4m ago•0 comments

US Army picks out Vampire to fill a gap in its layered drone defenses

https://www.theregister.com/offbeat/2026/06/14/us-army-picks-out-vampire-to-fill-a-gap-in-its-lay...
1•Bender•4m ago•0 comments

Dangerous hormone-disrupting chemicals found in US breast milk samples

https://www.theguardian.com/us-news/2026/jun/14/breast-milk-research-chemicals
2•andsoitis•7m ago•0 comments

No, everyone is not using AI for everything

https://gabrielweinberg.com/p/people-are-consuming-ai-like-they
2•yegg•9m ago•0 comments

Cloud-9 AWS spot instance optimizer with ML price prediction and FinOps advisors

https://cloud-9-optimizer.streamlit.app
1•Medhane•10m ago•0 comments

A 'cold blob' in the Atlantic could be a sign of AMOC shutdown – CNN

https://www.cnn.com/2026/06/12/climate/cold-blob-atlantic-amoc-ocean-circulation
7•tambourine_man•13m ago•0 comments

The Typestate Pattern in Rust

https://cliffle.com/blog/rust-typestate/
1•Brajeshwar•14m ago•0 comments

Rio de Janeiro's city government model Rio3.5 beats Qwen3.7 in recent benchmarks

https://twitter.com/zenmagnets/status/2065796012820848699
4•lucasfcosta•15m ago•0 comments

Show HN: Dual YOLOv8n UAV Detection on RK3588S at 42 FPS Using NPU

https://github.com/alebal123bal/khadas_yolov8n_multithread
1•alebal123bal•16m ago•0 comments

EU Commission looking at practical consequences of Anthropic decision

https://www.reuters.com/legal/litigation/eu-commission-looking-practical-consequences-anthropic-d...
4•tartoran•21m ago•0 comments

The most secure AI interview copilot currently on the market

https://aceloop.ai/security-model
1•rosadoft•22m ago•0 comments

You need to stop using Windows 11 [video][14 mins]

https://www.youtube.com/watch?v=S6Iq6HubIAw
1•Bender•23m ago•0 comments

Extinction-Level Capitalism

https://matthewbutterick.com/extinction-level-capitalism.html
4•laurex•24m ago•1 comments

Music generation using Algebra, presented as web MIDI shop

https://monictheory.com
1•midi_finder•26m ago•1 comments

Xiaomi portable coffee maker brew coffee from capsule or ground coffee on the go

https://citymagazine.si/en/xiaomi-mijia-portable-coffee-machine-portable-espresso-machine-that-pr...
2•teleforce•27m ago•1 comments

Cancer variants in Alzheimer's disease cells drive inflammatory states

https://www.cell.com/cell/fulltext/S0092-8674(26)00341-7?_returnURL=https%3A%2F%2Flinkinghub.else...
1•bookofjoe•28m ago•0 comments

She waited decades for Scotland to make the World Cup

https://text.npr.org/nx-s1-5842854
1•mooreds•29m ago•0 comments

Is It ADHD or BVD? Binocular Vision Dysfunction Symptoms and Test

https://www.cookvisiontherapy.com/adhd-and-vision-how-eye-problems-affect-attention/
1•adm4•29m ago•0 comments

I built a bookkeeping app for UK sole traders as a new developer using AI

1•JamesQP•29m ago•0 comments

Introduction to the IETF

https://www.ietf.org/about/introduction/
2•mooreds•31m ago•0 comments

Pink Cosmo berries a hit in their trial season (2023)

https://fruitgrowersnews.com/article/pink-cosmo-berries-a-hit-in-their-trial-season/
1•mooreds•31m ago•0 comments

A Unified Operator Framework for Resolving Contradictions Across Domains

https://zenodo.org/records/20685628
1•CarloLoopTheory•32m ago•0 comments

The Anatomy of a Learning Stall

https://tagide.com/blog/llm/the-anatomy-of-a-learning-stall/
2•ColinWright•35m ago•0 comments

U.S., Iran expected to "electronically" sign agreement to end war Sunday

https://www.axios.com/2026/06/13/us-iran-deal-pakistan-signing
3•rawgabbit•35m ago•0 comments

How a TCP Load Balancer works under the hood

https://sushantdhiman.dev/built-a-network-load-balancer-in-c-to-understand-how-it-actually-works-2/
1•birdculture•37m ago•0 comments