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

A trajectory-based approach to recommendation and search for creative content

https://zenodo.org/doi/10.5281/zenodo.17847529
1•abhi_bhartiya•35s ago•1 comments

Sketch of Ideas in Geometry and Computing

https://nigelvr.github.io/post-1.html
1•nigelvr•2m ago•0 comments

SC25: Estimating AMD's Upcoming MI430X's FP64 and the Discovery Supercomputer

https://chipsandcheese.com/p/sc25-estimating-amds-upcoming-mi430xs
1•rbanffy•2m ago•0 comments

HarisLab – Free Developer Tools, Games and Productivity (No Ads)

https://harislab.tech/
1•Haris18•4m ago•0 comments

MCP Is a Fad

https://tombedor.dev/mcp-is-a-fad/
1•jjfoooo4•4m ago•1 comments

The Legacy of Nicaea

https://hedgehogreview.com/web-features/thr/posts/the-legacy-of-nicaea
1•diodorus•5m ago•0 comments

What happens when the coding becomes the least interesting part of the work

https://simonwillison.net/2025/Dec/13/obie-fernandez/
1•mmaunder•8m ago•1 comments

I created a publishing system for step-by-step coding guides in Typst

https://press.knowledge.dev/p/new-150-pages-rust-guide-create-a
1•deniskolodin•15m ago•1 comments

GPT-5.2 got worse on Terminal Bench 2.0, so is GPT-5.2 Pro

https://twitter.com/xdotli/status/1999915788061577588
1•xdotli•15m ago•1 comments

llamafile: Distribute and Run LLMs with a Single File

https://github.com/mozilla-ai/llamafile
2•stefankuehnel•17m ago•0 comments

Air passengers exposed to high levels of ultrafine particles, study

https://www.theguardian.com/environment/2025/dec/12/air-passengers-extremely-high-levels-ultrafin...
3•sampo•23m ago•0 comments

British Army could have avoided Ajax vehicle injuries, says whistleblower

https://www.thetimes.com/uk/defence/article/army-ajax-injuries-whistleblower-nqkk9dh8n
1•_dain_•23m ago•0 comments

The Land Trap by Mike Bird

https://progressandpoverty.substack.com/p/book-review-the-land-trap-by-mike
1•JumpCrisscross•26m ago•0 comments

Show HN: Chorus is now open source

https://github.com/meltylabs/chorus
1•Charlieholtz•35m ago•0 comments

Show HN: Soup.lua: making Lua do what it shouldn't

https://github.com/if-not-nil/soup/tree/main/lua
1•qwool•37m ago•0 comments

Where are all the Canadians going?

https://www.bbc.com/travel/article/20251211-where-are-all-the-canadians-going
2•neom•38m ago•0 comments

An Interesting Set of Artifacts

https://drive.google.com/drive/folders/18uXq5Leil2rAY5ICOfKGryRFyDFYMh80?usp=drive_link
1•d4rkn0d3z•40m ago•3 comments

Dick Van Dyke turns 100

https://www.theguardian.com/film/2025/dec/13/dick-van-dyke-centenarian-100-mary-poppins-chitty-ch...
13•thunderbong•41m ago•2 comments

Fast Sequence Iteration in Common Lisp

https://world-playground-deceit.net/blog/2025/12/fast-sequence-iteration-in-common-lisp.html
3•BoingBoomTschak•43m ago•0 comments

News broadcast reunited 10,189 families separated by war [video]

https://www.youtube.com/watch?v=Xt052H_kVuo
1•bane•50m ago•0 comments

Show HN: DAUT – AI-powered documentation generator for your codebase

https://github.com/2dogsandanerd/DAUT
1•2dogsanerd•59m ago•0 comments

Former Apple, Google designer: "Are we stuck with the same Desktop UX forever?" [video]

https://www.youtube.com/watch?v=1fZTOjd_bOQ
6•joelkesler•1h ago•3 comments

10-minute scan could help millions with hard-to-treat high blood pressure

https://medicalxpress.com/news/2025-11-minute-scan-millions-hard-high.html
1•PaulHoule•1h ago•0 comments

The Antitrust Case Against Airbnb

https://www.thesling.org/the-antitrust-case-against-airbnb/
3•ilamont•1h ago•0 comments

The Rust Reference – Behavior considered undefined

https://doc.rust-lang.org/reference/behavior-considered-undefined.html#behavior-considered-undefined
3•Brysonbw•1h ago•0 comments

Rutland mosaic depicts 'long-lost' Troy story

https://le.ac.uk/news/2025/december/rutland-mosaic-long-lost-troy-story
1•geox•1h ago•0 comments

Best of times, worst of times: record fossil-fuel profits, inflation

https://www.sciencedirect.com/science/article/pii/S2214629625003020
3•hackandthink•1h ago•0 comments

Nicer Rust Diagnostics for Neovim

https://github.com/alexpasmantier/krust.nvim
2•alexpasmantier•1h ago•0 comments

A proactive approach to more secure code

https://www.microsoft.com/en-us/msrc/blog/2019/07/a-proactive-approach-to-more-secure-code
2•Brysonbw•1h ago•0 comments

Why mRNA-based Covid-19 vaccines can cause myocarditis

https://med.stanford.edu/news/all-news/2025/12/myocarditis-vaccine-covid.html
5•blumomo•1h ago•0 comments