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.

QR Code Tutorial

https://www.thonky.com/qr-code-tutorial/
1•kouosi•45s ago•0 comments

Walking Men

https://bookofjoe2.blogspot.com/2026/09/walking-men.html
1•surprisetalk•1m ago•0 comments

Uncle Bob: Why I Stopped Reading Code and Building Harnesses [video]

https://www.youtube.com/watch?v=5kCISBJwoZo
1•tonkkatonka•2m ago•1 comments

Show HN: A 3D bamboo grove inspired by my childhood home

https://yuuki.fans/
1•YuukiJyoudai•3m ago•0 comments

How Delhi Achieved Its Epic Power-Grid Fix

https://spectrum.ieee.org/delhi-electricity-loss
1•sohkamyung•4m ago•0 comments

A summary from the 2026 Git Contributors' Summit

https://lwn.net/Articles/1096819/
1•hn9zmdcaou•5m ago•0 comments

45 open-source security agents for AWS, GCP, Azure, K8s and GitHub

https://github.com/cynative/cynative/
2•szin•5m ago•0 comments

Meta Seeks Payoff from AI Spending with New Push for Business Customers

https://www.wsj.com/tech/ai/meta-seeks-payoff-from-ai-spending-with-new-push-for-business-custome...
2•twalichiewicz•5m ago•0 comments

Qualcomm Unveils Snapdragon 8 Elite Gen 6 and Elite Extreme Gen 6

https://www.servethehome.com/qualcomm-unveils-snapdragon-8-elite-gen-6-and-elite-extreme-gen-6-ne...
1•rbanffy•6m ago•0 comments

MongoDB CEO Chirantan Desai steps down to lead Meta's enterprise platform

https://economictimes.indiatimes.com/tech/technology/mongodb-ceo-chirantan-desai-steps-down-to-le...
1•tolugenius•8m ago•0 comments

Show HN: DevHub – describe an app, get a deployed project with a cost ledger

https://aevion.app/en/devhub
1•Aevion•8m ago•0 comments

Coding Is Not Solved – Alex Ewerlöf Notes

https://blog.alexewerlof.com/p/coding-is-not-solved
3•firstSpeaker•8m ago•0 comments

Show HN: Built end-to-end encrypted messenger – public source

https://chat.markero.eu
1•bugas•8m ago•1 comments

MongoDB CEO Leaves for Meta

https://www.tikr.com/blog/meta-poaches-mongodb-ceo-effective-immediately-stock-sinks-24
1•salil999•9m ago•0 comments

Weesize – In-browser PDF and image suite running on WebAssembly

https://weesize.com/
1•ansochacko•10m ago•0 comments

Kasroz

https://futo.tech/blog/swipe-keyboard
2•dtj1123•10m ago•0 comments

Show HN: Geneva – CLI video editor and compositor with a native HTML/CSS engine

https://github.com/geneva-render/geneva
1•fbnt•10m ago•1 comments

Blob-stream: a Kafka alternative for low cost high volume streaming

https://blog.bitdrift.io/post/blob-stream-kafka-alternative
2•mklein123•11m ago•0 comments

Someone rewrote remotion in Rust. 20x faster

https://fframes.studio/
1•neogoose•11m ago•0 comments

Valve Introduces Pyrowave Video Codec in Beta for Low Latency Streaming

https://www.phoronix.com/news/Valve-Steam-Beta-Pyrowave
1•birdculture•12m ago•0 comments

Pari/Gp 2.19 Released

https://pari.math.u-bordeaux.fr/archives/pari-announce-26/msg00005.html
1•yehoshuapw•14m ago•0 comments

Notes on Nationalism (1945)

https://www.orwellfoundation.com/the-orwell-foundation/orwell/essays-and-other-works/notes-on-nat...
2•1equalsequals1•14m ago•0 comments

Synthfolk, a professional network where AI agents are employees

https://synthfolk.ai
1•stepcos•15m ago•0 comments

Fifty years of Apple, and Siri still can't set an alarm for 19:40

https://vania-novikau.me/siri-alarm-19-40/
3•vanadiuz•16m ago•1 comments

SpaceX – Starship Flight 14

https://www.spacex.com/launches/starship-flight-14
2•corvad•16m ago•1 comments

Has Violence Against Teachers Become Accepted by Society?

https://theeducatorsroom.com/has-violence-against-teachers-become-accepted-by-society/
3•obscurette•21m ago•0 comments

Summer of AI Optimization

https://lemire.me/blog/2026/09/22/a-summer-of-ai-optimization/
1•surprisetalk•21m ago•0 comments

The Wall Street Journal sounds a bit concerned

http://observationalepidemiology.blogspot.com/2026/09/the-wall-street-journal-sounds-bit.html
1•speckx•22m ago•0 comments

One resident login, an entire apartment complex: CVE-2026-75960

https://planckproof.ai/blog/rently-master-pin-idor-cve-2026-75960
1•ninjahub•22m ago•0 comments

Show HN: Charter – Declare agent tools in Pydantic instead of implementing them

https://github.com/r28ai/charter
1•nathanqueme•22m ago•0 comments