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

Fast, accurate and comprehensive userland text measurement algorithm

https://twitter.com/_chenglou/status/2037713766205608234
1•lumannnn•40s ago•0 comments

Big-Endian Testing with QEMU

https://www.hanshq.net/big-endian-qemu.html
1•zmodem•2m ago•0 comments

Tailscale'd into Homelabbing

https://rugu.dev/en/blog/homelabbing_01/
1•birdculture•2m ago•0 comments

Doom in CSS

https://nielsleenheer.com/articles/2026/css-is-doomed-rendering-doom-in-3d-with-css/
1•runxiyu•4m ago•0 comments

Show HN: Newspaper-style HN reader (PWA) with articles and comments side by side

https://hackernewstimes.com
1•terryds•5m ago•0 comments

Show HN: I optimized a Java log scanner from 872ms to 78ms (Zero GC)

https://github.com/Yosefnago/java-deep-dive
1•yosinago•5m ago•0 comments

JWST solves decades-long mystery about why Saturn appears to change its spin

https://phys.org/news/2026-03-jwst-decades-mystery-saturn.html
1•bookmtn•6m ago•0 comments

Quiet Restructuring of Work: AI, Job Compression, and the Risk

https://medium.com/@andreaswalterkoellen/the-quiet-restructuring-of-work-ai-job-compression-and-t...
2•taubek•7m ago•0 comments

InpharmD (YC W21) Is Hiring – Senior Ruby on Rails Engineer (Rails 8, Ruby 3)

https://inpharmd.com/jobs/senior-ruby-on-rails-engineer
1•tulasichintha•9m ago•0 comments

Brief life of Harvard CIA agent who helped install the shah of Iran

https://www.harvardmagazine.com/2010/12/kermit-roosevelt
2•geox•12m ago•0 comments

Ask HN: What are you using for DAO gov data after Tally (tally.xyz) shuts down?

1•Sem_pre•14m ago•0 comments

European Commission investigating breach after Amazon cloud account hack

https://www.bleepingcomputer.com/news/security/european-commission-investigating-breach-after-ama...
3•dryarzeg•15m ago•1 comments

Preparation – The underrated potential for CoMo workshops

https://www.youtube.com/watch?v=JCh9BNP6TOU
1•RebootStr•18m ago•0 comments

Cocoa-Way – Native macOS Wayland compositor for running Linux apps seamlessly

https://github.com/J-x-Z/cocoa-way
2•OJFord•19m ago•0 comments

Building Tanks While the Ukrainians Master Drones

https://www.theatlantic.com/national-security/2026/03/who-needs-tanks-age-drones/686540/
1•doener•21m ago•1 comments

Electricity Maps

https://app.electricitymaps.com/map/live/fifteen_minutes
2•sph•24m ago•0 comments

The underrated benefits of always having oatmeal at lunch

https://hazn.com/oatmeal
2•hazn•24m ago•0 comments

Ask HN: Gumroad suspended my account, blocked my payout, and stopped responding

5•ClipNoteBook•32m ago•1 comments

Show HN: I turned my TV into a '90s Weather Channel with an Android kiosk app

https://github.com/cyberbalsa/retroweather
2•jetbalsa•34m ago•0 comments

Show HN: How to get 100 customers building in public

https://snaprookies.org/blog/marc-lou-and-trustmrr-how-a-solo-founder-turned-trust-into-a-saas-asset
2•RichardOdds•35m ago•0 comments

Vibe coding SwiftUI apps is a lot of fun

https://simonw.substack.com/p/vibe-coding-swiftui-apps-is-a-lot
1•saikatsg•37m ago•0 comments

Scruple – Ethical Mail Agent

1•mchrbn•38m ago•0 comments

FamWake – I built an Android app to coordinate family bathroom times

https://play.google.com/store/apps/details?id=de.familienwecker.famwake&hl=en
1•thefraggle•41m ago•1 comments

Bigoish: Test the empirical computational complexity of algorithms in Rust

https://docs.rs/bigoish/latest/bigoish/
1•fanf2•43m ago•0 comments

Dvmcp – Damn Vulnerable MCP Server for Security Testing

https://dvmcp.co.uk
1•AskCarX•44m ago•1 comments

Distributed DuckDB-Native DataFrames for Elixir

https://dux.now/
2•gjmveloso•49m ago•0 comments

How to make programming terrible for everyone

https://jneen.ca/posts/2026-03-27-how-to-make-programming-terrible-for-everyone/
2•paroneayea•55m ago•1 comments

OpenTTD for Windows NT RISC

https://virtuallyfun.com/2026/03/28/openttd-windows-nt-risc/
1•jandeboevrie•55m ago•0 comments

Apple Says No iPhone in Lockdown Mode Has Ever Been Hacked

https://www.macrumors.com/2026/03/27/no-iphone-in-lockdown-mode-has-ever-been-hacked/
2•7777777phil•56m ago•2 comments

I left YouTube two years ago. Time to come back [video]

https://www.youtube.com/watch?v=Yz3lSKgz4q8
1•thunderbong•1h ago•2 comments