frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

FBI warns ARTEX AI hacking tool is powering global cyberattacks

https://www.bleepingcomputer.com/news/security/fbi-warns-artex-ai-hacking-tool-is-powering-global...
1•fosco•26s ago•0 comments

Improving the Wii U's Wii Mode

https://garyodernichts.blogspot.com/2026/11/improving-wii-us-wii-mode.html
1•GaryOderNichts•1m ago•0 comments

All code is slop (except mine) [video]

https://www.youtube.com/watch?v=O_zcc6Xl12g
1•jebarker•2m ago•0 comments

Show HN: Brewlet – Patch golden images across Kubernetes without rebuilding apps

https://brewlet.sh/
1•brunoborges•2m ago•0 comments

Disaster recovery efforts temporarily boosted health for some men

https://news.northwestern.edu/stories/2026/10/disaster-recovery-efforts-temporarily-boosted-healt...
1•sieste•6m ago•0 comments

[SPLASH'26] Mojo: Towards One Systems Language for All Hardware [video]

https://www.youtube.com/watch?v=9-97SB5XJh4
1•melodyogonna•6m ago•0 comments

Suitcase does more than one job

https://usefulls.com/
1•channusingh1424•7m ago•1 comments

United Airlines has a widespread system outage

https://apnews.com/article/united-airlines-outage-5a5e5f75bb07f11ffb8750901f0076ff
7•tedd4u•11m ago•1 comments

United Airlines experiencing 'widespread system outage'

https://www.nbcchicago.com/news/local/united-airlines-experiencing-widespread-system-outage/4017556/
3•scapecast•11m ago•0 comments

Marlow – an AI app builder that deploys to your own server

https://marlow.app
3•morzanius•11m ago•0 comments

Xcode now includes skills for performance profiling

https://developer.apple.com/documentation/xcode-release-notes/xcode-27_3-release-notes
1•Austin_Conlon•12m ago•0 comments

A Collage Showing 49 Drill Holes Made by NASA's Curiosity Mars Rover

https://science.nasa.gov/photojournal/a-collage-showing-49-drill-holes-made-by-nasas-curiosity-ma...
1•wawayanda•13m ago•0 comments

How to Break into Security, Ptacek Edition

https://krebsonsecurity.com/2012/06/how-to-break-into-security-ptacek-edition/
17•ronfriedhaber•14m ago•1 comments

US datacenters emit as much CO2 as Denmark

https://www.nature.com/articles/s41893-026-01985-7
3•28304283409234•14m ago•0 comments

United Airlines Widespread System Outage

https://www.cnn.com/2026/11/16/us/united-airlines-outage
17•bearsyankees•18m ago•0 comments

Adding MCP Support to PgDog

https://pgdog.dev/blog/mcp
1•levkk•18m ago•0 comments

Agent remote control in LM Studio Bionic

https://lmstudio.ai/blog/agent-remote-control
4•yags•20m ago•0 comments

Diamane OS: Graphene for the Fairphone

https://diamaneos.de/
1•maelito•21m ago•0 comments

Breach of a 3rd-party JavaScript host impacting high value websites

https://x.com/Scott_Helme/status/2122422157959471456
3•Palmik•22m ago•0 comments

Identity Confirmed [James Bond]

https://twitter.com/007/status/2122343820180275593
1•scapecast•23m ago•1 comments

HolyArrs: One app for your whole media server

https://holyarrs.com/
1•doener•24m ago•0 comments

Microsoft Edge suggests unrelated websites if your site is down

https://twitter.com/Tomas_Zubiri/status/2122450911100604804
4•TZubiri•26m ago•0 comments

FBI has possession of router that the FAA says is behind Friday's ATC meltdown

https://www.cnn.com/2026/11/16/politics/video/the-arena-fbi-possesion-router-faa-atc-meltdown
4•zzzeek•28m ago•2 comments

QuickTime VR Reborn – Babylon 5 Fans

https://www.babylon5fans.com/artifacts/quicktime-vr-reborn/
2•justsomehnguy•29m ago•0 comments

LANDrop Closed Source (2024)

https://github.com/landrop/landrop
1•chonkey_monkey•30m ago•1 comments

Cooked

1•shaikhabdullahw•34m ago•0 comments

No matter how you ask, more Americans are negative than positive about AI

https://ourworldindata.org/no-matter-how-you-ask-more-americans-are-negative-than-positive-about-ai
3•atlasunshrugged•34m ago•0 comments

Carbon Emissions of Biggest US Data Centers Rival Entire Countries, Study Says

https://www.nytimes.com/interactive/2026/11/16/climate/ai-data-center-pollution-carbon-emissions....
2•ytpete•35m ago•0 comments

Coordinating Codex and Claude Across macOS, Linux, and Windows

https://www.provos.org/p/coordinating-ai-agents-across-operating-systems/
1•nielsprovos•35m ago•1 comments

Latest Debian 12 LTS images have a kernel crash

https://www.mail-archive.com/debian-lts@lists.debian.org/msg12577.html
3•trestacos•36m ago•1 comments