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.

ADHD and Loneliness: What It's Like to Be "Good with People" and Lonely

https://mindfullofit.substack.com/p/adhd-and-loneliness-what-its-really
1•MindFullOfIt•16s ago•0 comments

Show HN: Desktop‑2FA – offline, encrypted 2FA authenticator for your desktop

https://github.com/wrogistefan/desktop-2fa
1•wrogistefan•1m ago•0 comments

Developing for Embedded Linux with WendyOS

https://swiftonserver.com/wendyos-setting-up-embedded-linux/
1•frizlab•2m ago•0 comments

Meet The South Pacific Ponzi King with a Bogus Bank – and a Global Fan Club

https://www.occrp.org/en/feature/meet-the-south-pacific-ponzi-king-with-a-bogus-bank-and-a-global...
1•rmason•5m ago•0 comments

Trump to hire 1k specialists for 'Tech Force' to build AI, finance projects

https://www.cnbc.com/2025/12/15/trump-ai-tech-force-amazon-apple.html
1•rmason•7m ago•1 comments

I built an API to stop manual data entry from invoices and resumes

1•scannyai•7m ago•0 comments

Feeding your chatbot Drugs A crazy SaaS idea

https://www.pharmaicy.store
3•puildupO•7m ago•2 comments

Why I Disappeared – My week with minimal internet in a remote island chain

https://www.kenklippenstein.com/p/why-i-disappeared
2•eh_why_not•10m ago•0 comments

SWEResume – clean your resume in seconds

https://www.sweresume.app/
1•zed_labs_dev•11m ago•1 comments

LoongArch 64-bit userspace emulation

https://fwsgonzo.medium.com/notes-on-libloong-loongarch-64-bit-emulation-515ea6610cad
1•ingve•12m ago•1 comments

Unity's Mono problem: Why your C# code runs slower than it should

https://marekfiser.com/blog/mono-vs-dot-net-in-unity/
2•iliketrains•14m ago•0 comments

Arch Linux package stats fun statistics

https://pkgstats.archlinux.de/fun
1•zdw•14m ago•0 comments

I tested every Japanese app in last 2 years so you don't have to, these are best

https://old.reddit.com/r/LearnJapanese/comments/1phbsk4/i_tested_every_japanese_app_that_came_out...
1•wahnfrieden•14m ago•0 comments

Reading an OLED display directly into an agent via MCP

https://mastodon.social/@rcarmo/115799340761326831
1•rcarmo•18m ago•0 comments

Soft robots harvest ambient heat for self-sustained motion

https://techxplore.com/news/2025-11-soft-robots-harvest-ambient-sustained.html
1•PaulHoule•21m ago•0 comments

Tips for making the Chrome Performance Panel less overwhelming

https://calendar.perfplanet.com/2025/tips-for-making-the-performance-panel-less-overwhelming/
1•zdw•24m ago•0 comments

I built a neon-style weekly planner for iOS because I hate clutter

https://apps.apple.com/ie/app/weeklii/id6756281596
1•qaengineerfp•25m ago•1 comments

Show HN: Handoff – Claude Code plugin to let any AI continue where you left off

https://github.com/willseltzer/claude-handoff
1•pgspaintbrush•25m ago•0 comments

The Rainforests Being Cleared to Build Your R.V

https://www.nytimes.com/2025/08/19/world/asia/indonesia-borneo-deforestation-rv.html
1•JumpCrisscross•25m ago•0 comments

Software engineers should be a little bit cynical

https://www.seangoedecke.com/a-little-bit-cynical/
20•zdw•26m ago•3 comments

What Helps Kafka Scale

https://shbhmrzd.github.io/2025/11/21/what-helps-kafka-scale.html
1•01-_-•27m ago•0 comments

Pop icon Kate Bush's £10.8M windfall from Stranger Things hit song

https://www.dailymail.co.uk/tvshowbiz/article-15416747/TALK-TOWN-Running-bank-pop-icon-Kate-Bushs...
2•canucker2016•27m ago•0 comments

Determining Current Arm Cortex-M Security State with GDB

https://danielmangum.com/posts/arm-cortex-m-security-state-gdb/
1•hasheddan•30m ago•0 comments

Fake AI videos of snowy Amsterdam leave tourists disappointed, anger tour guides

https://nltimes.nl/2025/12/23/fake-ai-videos-snowy-amsterdam-leave-tourists-disappointed-anger-to...
1•belter•31m ago•0 comments

AI's trillion-dollar opportunity: Context graphs

https://twitter.com/JayaGup10/status/2003525933534179480
1•asasidh•32m ago•2 comments

Why 451 Is Good for You – Greylisting Perspectives from the Early Noughties

https://bsdly.blogspot.com/2025/12/why-451-is-good-for-you-greylisting.html
1•zdw•33m ago•0 comments

Memelang: Terse SQL uses "axial grammar" for LLM generation

https://arxiv.org/abs/2512.17967
1•bri-holt•34m ago•0 comments

The Prison of Financial Mediocrity

https://twitter.com/systematicls/status/2004900241745883205
4•zuhayeer•38m ago•0 comments

Show HN: FOSS multi Claude-code operator

https://www.youtube.com/watch?v=qs4DuCO0T-Y
1•harlequinetcie•38m ago•0 comments

Aircraft sometimes rhyme with previous design

https://www.gravityloss.com/2025/12/how-aircraft-sometimes-rhyme-with-previous-design/
1•Gravityloss•40m ago•0 comments