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

The Web Is an Antitrust Wedge

https://infrequently.org/2026/04/the-web-is-an-antitrust-wedge/
2•genericlemon24•1m ago•0 comments

GitHub Watch

https://rohanadwankar.github.io/github_watch/
2•jonbaer•5m ago•0 comments

Musk asks SpaceX IPO banks to buy Grok AI subscriptions, NYT reports

https://finance.yahoo.com/markets/stocks/articles/musk-asks-spacex-ipo-banks-181543226.html
2•alex_suzuki•10m ago•0 comments

How to take down a US F-35 over Iran? Chinese engineer's prophetic tutorial

https://www.scmp.com/news/china/science/article/3348619/how-take-down-us-f-35-over-iran-chinese-e...
2•sixhobbits•15m ago•0 comments

Show HN: RemembrallMCP – code dependency graph for agents and memory

https://github.com/cdnsteve/remembrallmcp
2•cdnsteve•15m ago•0 comments

Sheets Spreadsheets in Your Terminal

https://github.com/maaslalani/sheets
2•_____k•21m ago•0 comments

Archaeologists discover wreck of Danish warship sunk by Nelson 225 years ago

https://www.theguardian.com/science/2026/apr/02/archaeologists-discover-wreck-danish-warship-sunk...
3•zeristor•21m ago•0 comments

Show HN: Design to Code

https://www.absl.design/
2•absolute7•22m ago•0 comments

FDA had already warned the self-proclaimed 'fastest growing company in history'

https://www.drugdiscoverytrends.com/the-new-york-times-spotlighted-medvi-the-fda-had-already-warn...
2•thm•24m ago•0 comments

Emotion concepts and their function in a large language model

https://www.anthropic.com/research/emotion-concepts-function
7•dnw•24m ago•0 comments

Show HN: Cursor Cmd+K like command generator for all terminals

https://github.com/64bit/commandOK
2•gigapotential•27m ago•0 comments

Anyone switch accounts for Claude Code, did you lose everything?

2•dpark2026•28m ago•0 comments

¡Haciendo Historia Celebrating PyCon US's First-Ever Spanish-Language Keynote

https://pycon.blogspot.com/2026/04/haciendo-historia-celebrating-pycon-uss.html
3•lumpa•42m ago•0 comments

Auralo: An nice new Radio App check it out

https://testflight.apple.com/join/mEtdrzZ5
2•marc0janssen•47m ago•2 comments

Trump fires Pam Bondi as US Attorney General

https://www.reuters.com/world/trump-fires-pam-bondi-us-attorney-general-cnn-fox-2026-04-02/
3•mgh2•51m ago•3 comments

AgentShift–One command migrates your OpenClaw agents to NemoClaw

https://agentshift.sh/
1•ogkranthi•59m ago•0 comments

Uber engineer alleges hostile 'boys club' culture, firing after cancer leave

https://archive.org/details/10127280
4•nickvec•1h ago•0 comments

Spath and Splan

https://sumato.ai/posts/2026-04-04-spath-and-splan.html
1•jasonmoo•1h ago•0 comments

Ask HN: Interactive Car Mechanics Guide?

1•id00•1h ago•0 comments

Scientists are working on "everything vaccines"

https://economist.com/science-and-technology/2026/04/01/scientists-are-working-on-everything-vacc...
6•andsoitis•1h ago•2 comments

Donald Knuth: Open Letter to Condoleezza Rice (2002)

https://www-cs-faculty.stanford.edu/~knuth/rice.html
5•car•1h ago•2 comments

100 Years of the Iron Ring

https://engineerscanada.ca/news-and-events/news/100-years-of-the-iron-ring-a-symbol-of-an-enginee...
1•jruohonen•1h ago•0 comments

Vibe coded a design tool for a client handover as a non-technical founder

https://www.ugh.design
2•jayantrao94•1h ago•1 comments

Video Friday: Digit Learns to Dance

https://spectrum.ieee.org/video-humanoid-dancing
2•jruohonen•1h ago•0 comments

AdGuard ad trackers What ad-based surveillance does to your traffic

https://adguard.com/en/blog/adguard-ad-tracker-report-2025.html
2•XzetaU8•1h ago•0 comments

Pale Blue Dot

https://en.wikipedia.org/wiki/Pale_Blue_Dot
3•thunderbong•1h ago•1 comments

EU cyber agency attributes major data breach to TeamPCP hacking group

https://therecord.media/european-commission-cyberattack-teampcp
5•jruohonen•1h ago•1 comments

Show HN: AI Dev Board – Job Board for AI Developers with a Full REST API

https://aidevboard.com/
2•8bitconcepts•1h ago•0 comments

Ask HN: Why still embed heavy 3rd-party iFrames for simple social proof?

2•LordKode•1h ago•0 comments

Show HN: HyprMac – I missed Hyprland after switching to Mac, so I built it

https://github.com/zacharytgray/HyprMac
2•zachtgray•1h ago•0 comments