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.

Show HN: Lightning-extra, cloud-native plugins for PyTorch Lightning

https://github.com/ocramz/lightning-extra
1•marco_z•13s ago•0 comments

Amazon AI chief Prasad leaving; Infrastructure exec to lead unified AI group

https://www.geekwire.com/2025/amazon-ai-chief-rohit-prasad-leaving-infrastructure-exec-peter-desa...
1•JamesAdir•1m ago•0 comments

Ask HN: Is RSS Still Alive?

1•militanz•6m ago•0 comments

Denmark scraps controversial VPN ban proposal after public backlash

https://www.techradar.com/vpn/vpn-privacy-security/denmark-scraps-controversial-vpn-ban-proposal-...
1•maxloh•7m ago•0 comments

Advent of GitHub

https://github.com/vitoc/siege
1•vitoc•7m ago•0 comments

Update 18 December 2025: Apple ID Unblocked by Apple Executive Relations

https://bsky.app/profile/hey.paris/post/3ma3of537kk2d
3•da_grift_shift•16m ago•2 comments

MI6 chief: We'll be as fluent in Python as we are in Russian

https://www.theregister.com/2025/12/16/mi6_chief_well_be_as/
2•maxloh•19m ago•0 comments

MPs warn that UK agreements with Donald Trump are 'built on sand'

https://www.theguardian.com/politics/2025/dec/17/mps-warn-that-uk-agreements-with-donald-trump-ar...
2•KnuthIsGod•19m ago•0 comments

GitHub walks back plan to charge for self-hosted runners

https://www.theregister.com/2025/12/17/github_charge_dev_own_hardware/
3•ozgune•21m ago•2 comments

Show HN: A Save Data Calculator for the Roguelike Gacha Chaos Zero Nightmare

https://www.cznsavedata.com/
1•zittur•21m ago•0 comments

Show HN: Campers – Remote cloud dev environments that feel like localhost

https://github.com/kamilc/campers
1•kamilc•27m ago•0 comments

UK Puberty Blockers Controversy

https://rodgercuddington.substack.com/p/uk-puberty-blockers-controversy
1•freespirt•29m ago•0 comments

Exergy Economics [video]

https://www.youtube.com/watch?v=qqAzhmW4_gQ
1•measurablefunc•34m ago•0 comments

UX Is Dead, Long Live UX

https://www.nngroup.com/articles/long-live-ux/
1•kaizenb•35m ago•0 comments

Stop using dotenv and switch to dotenvx today

https://medium.com/@_mfk/why-you-should-stop-using-dotenv-and-switch-to-dotenvx-today-ff7c05a24c20
2•_mfk•39m ago•1 comments

BrainPredict – 445 on‑prem AI models for business predictions, no LLMs

https://brainpredict.ai
2•brainpredict•39m ago•1 comments

Building Open Source Manus

https://github.com/boxlite-labs/boxlite
1•dorianzheng•44m ago•0 comments

Scammers, spies and triads: inside cyber-crime's $15T global empire

https://www.youtube.com/watch?v=a9cugMoM89w
1•zoenolan•45m ago•0 comments

Hacker News Dark Mode Extension

https://www.icsusa.com/hndarkmode.html
1•lastdong•46m ago•1 comments

Nuno Loureiro – Plasma Physics: from fusion energy to cosmic magnetogenesis [video]

https://www.youtube.com/watch?v=0hiy7hxjZ5s
2•Jimmc414•47m ago•0 comments

One Generic Cancer Drug Costs $35. Or $134. Or $13,000

https://www.bloomberg.com/features/2025-cancer-drug-markups/
1•helsinkiandrew•47m ago•1 comments

Two People Never Share the Same Meaning

https://mikkokotila.medium.com/two-people-never-share-the-same-meaning-061977d83bf3
1•mikkokotila•49m ago•2 comments

The Fate of Flight 2069 - the cost of a disaster that didn’t happen

https://www.newstatesman.com/long-reads/2025/12/the-strange-fate-of-flight-2069
1•bryanrasmussen•59m ago•0 comments

Micron outlines grim outlook for DRAM supply in earnings call

https://www.tomshardware.com/pc-components/dram/micron-outlines-grim-outlook-for-dram-supply-in-f...
3•walterbell•1h ago•0 comments

Porting a HTML5 Parser to Swift and finding how hard it is to make Swift fast

https://ikyle.me/blog/2025/swift-justhtml-porting-html5-parser-to-swift
2•freerunnering•1h ago•0 comments

What Is an Elliptic Curve?

https://www.johndcook.com/blog/2019/02/21/what-is-an-elliptic-curve/
12•tzury•1h ago•0 comments

Claude-Hooks

https://github.com/TheNoeTrevino/claude-hooks
2•handfuloflight•1h ago•0 comments

A Survey of Dynamic Array Structures

https://azmr.uk/dyn/
2•keyle•1h ago•0 comments

Security vulnerability found in Rust Linux kernel code

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e0ae02ba831da2b70790...
9•lelanthran•1h ago•2 comments

Show HN: Crovise – Generate CRO hypotheses from landing pages

https://crovise.netlify.app/
2•adamoufkir•1h ago•1 comments