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.

Joint guidance on minimum elements for a software bill of materials

https://www.cyber.gc.ca/en/news-events/joint-guidance-minimum-elements-software-bill-materials
1•jruohonen•2m ago•0 comments

Proof of Impossibility

https://en.wikipedia.org/wiki/Proof_of_impossibility
1•num42•3m ago•0 comments

Scroll Mask Tailwind CSS Utilities

https://twilson.net/scroll-mask
1•eustoria•4m ago•0 comments

NodePass – Universal TCP/UDP Tunneling Solution

https://nodepass.eu/
1•eustoria•5m ago•0 comments

AFS II: Please Stop Invocating Kiss and DRY

https://devz.cl/posts/acronym-fatigue-series-dry-kiss-yagni/
1•DanielVZ•5m ago•0 comments

How to Read Mathematics? – A study guide [pdf]

https://web.mathi.uni-heidelberg.de/media/How_To_Read_Math_88bf1d2d47.pdf
4•gregorburger•6m ago•0 comments

Accept Your Fate. Don't Wear Shorts to the Office

https://www.nytimes.com/2026/07/30/opinion/office-shorts-men.html
2•anonu•6m ago•0 comments

Cursed Plugins

https://github.com/Factory-AI/cursed-plugins
1•bbor•6m ago•0 comments

SNARKs and Zero Knowledge Technology Course

https://www.youtube.com/playlist?list=PLnD_TI73e88eNr-4y4tst8FveDJxiGMQg
1•shayanbahal•8m ago•0 comments

NPM Implements Pre-Publication Malware Scanning, but Will It Work?

https://opensourcemalware.com/blog/npm-prepublication-malware-scanning
1•jruohonen•8m ago•0 comments

Ask HN: When a post of yours does well, do you know why?

1•john_builds•9m ago•1 comments

JetBrains warns of critical TeamCity remote code execution flaw

https://www.bleepingcomputer.com/news/security/jetbrains-warns-of-critical-teamcity-remote-code-e...
1•Brajeshwar•9m ago•0 comments

Anthropic and OpenAI are competing to see whose agents can go rogue harder

https://www.theregister.com/security/2026/07/31/anthropic-and-openai-are-competing-to-see-whose-a...
2•joebuckwilliams•10m ago•0 comments

Tesla Weighs China Unit Sale Ahead of SpaceX Deal

https://www.bloomberg.com/news/articles/2026-07-31/tesla-weighs-china-unit-sale-ahead-of-spacex-d...
2•chollida1•11m ago•0 comments

Show HN: Axioma – Stream and data compression engine for low-bandwidth links

https://github.com/axmstandart1-beep/axioma/tree/main
1•abbasov_murad•13m ago•0 comments

A big win for Android interoperability

https://www.openhomefoundation.org/blog/a-big-win-for-android-interoperability/
2•soheilpro•15m ago•0 comments

The most official water costs $120k a gallon

https://signoregalilei.com/2026/07/26/the-most-official-water-costs-120000-a-gallon/
2•surprisetalk•16m ago•0 comments

From Sketch to Steel: The Isometric to Iron Organic Hoodie Story

https://ddsboston.com/blogs/news/from-sketch-to-steel-the-isometric-to-iron-organic-hoodie-story
1•robert_dds•16m ago•0 comments

PyTorch Multi-Process Inference Weight Sharing via Inter-Process Communication

https://leimao.github.io/blog/PyTorch-IPC-Multi-Process-Inference-Weight-Sharing/
1•eigenBasis•17m ago•0 comments

Defrag Incremental on Steam

https://store.steampowered.com/app/4286660/Defrag_Incremental/
1•ohjeez•18m ago•0 comments

Show HN: I built a cross-browser extension that controls fingerprinting surfaces

https://privacything.com/en/
3•tomaszjanusz•18m ago•0 comments

16-bit Serial Homebrew CPU – 2023

https://www.jiristepanovsky.cz/project.php?p=23cpu
1•num42•19m ago•0 comments

What Is Digital Sovereignty

https://blog.documentfoundation.org/blog/2026/07/28/what-is-digital-sovereignty/
2•hn_acker•19m ago•0 comments

Maze Toys

https://maze.toys
2•bookofjoe•20m ago•0 comments

Show HN: Spryly – Track outdated dependencies across every repo and registry

https://spryly.io
1•aquamulier•20m ago•0 comments

Why ugly buildings create NIMBYism

https://www.worksinprogress.news/p/why-ugly-buildings-create-nimbyism
1•bensouthwood•21m ago•0 comments

Rails: Arbitrary file read and remote code execution in Active Storage

https://discuss.rubyonrails.org/t/cve-2026-66066-possible-arbitrary-file-read-and-remote-code-exe...
1•lobo_tuerto•23m ago•0 comments

U.S. Weighs $100k Fee for Foreign Students Wanting to Work After Graduation

https://www.wsj.com/politics/policy/u-s-weighs-100-000-fee-for-foreign-students-wanting-to-work-a...
4•fht•23m ago•1 comments

Claude won't let me talk about the Gaza genocide

https://evanp.me/2026/07/23/claude-wont-let-me-talk-about-the-gaza-genocide/
3•speckx•24m ago•0 comments

A Ton of Space Junk Tumbles Unpredictably to Earth Every Week

https://www.nytimes.com/2026/07/31/world/asia/space-debris-falling-crashing-earth-risk.html
4•bicepjai•26m ago•2 comments