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

ECB’s digital euro project faces decisive vote in 2026

https://www.ft.com/content/99a7b61b-c5df-4794-8c5f-2e3acd291333
1•nutjob2•1m ago•0 comments

Decorative Cryptography

https://www.dlp.rip/decorative-cryptography
3•todsacerdoti•6m ago•0 comments

Unifying QFT and GR Through Topologically Protected Gauge Theory

https://www.academia.edu/145737035/The_Renormalization_of_Gravity_Resolving_the_Goroff_Sagnotti_D...
1•MohskiBroskiAI•6m ago•0 comments

FL Studio Linux Setup Guide

https://github.com/Torbuntu/fl-studio-linux-setup
1•luckys•8m ago•0 comments

The Death and Rebirth of Programming – The Phoenix Architecture

https://aicoding.leaflet.pub/3malrv6poy22a
1•kiyanwang•11m ago•0 comments

The Naibbe cipher: encrypts Latin and Italian as Voynich-like ciphertext

https://www.youtube.com/watch?v=ByARtG-GUPo
1•omega3•11m ago•1 comments

Microsoft Office renamed to "Microsoft 365 Copilot app"

https://www.office.com
4•LeoPanthera•11m ago•1 comments

League of Legends Client rendered unusable after 10 year certificate expired

https://gamefragger.com/pc/moba/league-of-legends/league-of-legends-global-login-outage-expired-c...
1•dracotomes•13m ago•0 comments

Show HN: Spectra – Visuals should be infrastructure, not manual work

1•JannikJung•17m ago•0 comments

FreeBSD Home NAS, part 5: ZFS pools, datasets, snapshots, and monitoring ZFS he

https://rtfm.co.ua/en/freebsd-home-nas-part-5-zfs-pool-datasets-snapshots-and-zfs-monitoring/
2•todsacerdoti•18m ago•0 comments

Show HN: Kandinsky AI Video Generator

https://www.kandinskyai.com
1•Zach_HE•18m ago•0 comments

Swan Upping

https://en.wikipedia.org/wiki/Swan_upping
1•cyode•19m ago•0 comments

Voice Coding on iPad with Claude

https://www.youtube.com/watch?v=Rptvh534lI4
2•siwakotisaurav•20m ago•1 comments

What are some good designer agents available now?

1•nmr521521•21m ago•0 comments

Blade Runner: Braun HL 1 Personal Fan, En español (2012)

http://camara-de-maravillas.blogspot.com/2012/11/el-objeto-de-la-semana-ventilador-de.html
1•exvi•24m ago•0 comments

Ilya Sutskever

https://en.wikipedia.org/wiki/Ilya_Sutskever
1•doener•25m ago•0 comments

Secure, lint, and harden GitHub Actions workflows

https://github.com/reugn/github-ci
1•jrzx•29m ago•0 comments

Show HN: Transform messy server logs into clean, readable format

https://prettylog.net
1•bardonadam•30m ago•0 comments

RustFS vulnerability: Hardcoded token with privileged access

https://old.reddit.com/r/selfhosted/comments/1q432iz/update_your_rustfs_immediately_hardcoded_token/
3•Erlangen•31m ago•0 comments

Inducing self-NSFW classification in image models to prevent deepfakes edits

4•Genesis_rish•33m ago•0 comments

Show HN: Friction – A trilogy of archival fiction told via GitHub Markdown

https://github.com/andreas-breidenthal/friction-trilogy
1•a-breidenthal•36m ago•1 comments

Starlink offers free internet to Venezuela following Maduro capture

https://starlink.com/en-jo/support/article/026071b1-2b57-1ddb-8321-22442313223e?srsltid=AfmBOorDu...
1•tolloid•38m ago•0 comments

Show HN: H4 – The Next Paradigm of Interaction

https://h4os.run/
1•yeclark•41m ago•0 comments

Show HN: Formfactor – A MIDI Modulation Workbench

https://aftertone.co/formfactor/
1•oceanwaves•42m ago•0 comments

Building a TLS 1.3 Implementation in Pure Common Lisp

https://atgreen.github.io/repl-yell/posts/pure-tls/
2•birdculture•44m ago•0 comments

Show HN: MockBlast – Local-first mock data generator (SQL, Mongo, JSON)

https://mockblast.com
1•lotfijbe•47m ago•1 comments

Asmotor: Powerful macro (cross) assembler package for several CPUs

https://github.com/asmotor/asmotor
1•doener•51m ago•0 comments

Zed extension that automatically inserts customizable file headers

https://github.com/MrAMS/zed-auto-file-header
1•Kika233•52m ago•0 comments

Deming Regression

https://en.wikipedia.org/wiki/Deming_regression
1•tosh•52m ago•0 comments

AI Garden Design Software for Homeowners

https://hadaa.pro/
1•Fh_•55m ago•1 comments