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.

Data Science Weekly – Issue 673

https://datascienceweekly.substack.com/p/data-science-weekly-issue-673
1•sebg•33s ago•0 comments

iCloud Photos is now required for permanent Shared Albums

https://support.apple.com/en-us/108314
1•nde•48s ago•1 comments

Veda: First Intelligent Hoby OS

https://github.com/vahmoh25/Veda/blob/main/documentation/AGENT.md
1•saeed3saeed•59s ago•0 comments

DeLorean may have a flying car in the air before Tesla does [video]

https://electrek.co/2026/10/14/delorean-may-have-a-flying-car-in-the-air-before-tesla-does-video/
1•Bender•1m ago•0 comments

Company that put gas engines in Teslas goes bankrupt owing $37M

https://electrek.co/2026/10/15/obrist-hyperhybrid-gas-engine-tesla-bankruptcy/
1•Bender•2m ago•0 comments

Yours

https://blog.coredump.cx/p/yours-truly
1•surprisetalk•2m ago•0 comments

OpenTodo, a Todoist killer with MCP integration

https://open-todo.app/
1•TutleCpt•7m ago•1 comments

San Francisco Unified to remove lottery system

https://edsource.org/updates/san-francisco-unified-to-remove-lottery-system-assign-students-to-ne...
1•i0exception•7m ago•0 comments

PrismML Releases Bonsai 2 2B, 4B, and 9B

https://huggingface.co/collections/prism-ml/bonsai-2-small
1•JonSchneider•8m ago•0 comments

No More Heroes – Terence Tao Talks to Numberphile About AI [video]

https://www.youtube.com/watch?v=bAnwMdfcMVw
1•marvinborner•8m ago•0 comments

A tool to compare LLM benchmarks

https://philippdubach.com/posts/model-atlas-capability-weights/
1•7777777phil•8m ago•1 comments

I built something in my free time! A gift service :)

https://www.nextpagegift.com/
1•Negary•13m ago•0 comments

Dev publishes 25-year-old Palm OS tools to GitHub

https://www.theregister.com/offbeat/2026/10/15/give-him-a-hand-dev-publishes-25-year-old-palm-os-...
1•dmitrygr•13m ago•0 comments

Laptop Based on 6502 CPU

https://www.maddox.pro/?p=448
1•nanochess•21m ago•1 comments

Show HN: Eve Python Agent Template

https://github.com/vercel-labs/eve-agent-python-template
1•flashbrew•23m ago•0 comments

China's Secret Nuclear Tests

https://www.swp-berlin.org/10.18449/2026C31/
1•CGMthrowaway•24m ago•0 comments

The Salvation of Susan Pevensie

https://dougwils.com/books-and-culture/the-salvation-of-susan-pevensie.html
2•barry-cotter•27m ago•0 comments

Getting a subroutine right: a case study [pdf]

https://cr.yp.to/talks/2026.10.15/slides-djb-20261015-sorting-4x3.pdf
1•matt_d•28m ago•0 comments

Redis now has compressed bitmaps (Roaring)

https://lemire.me/blog/2026/10/15/redis-now-has-compressed-bitmaps-roaring/
2•smilelamp•29m ago•0 comments

ChatGPT can peek at your Chrome tabs now

https://www.theverge.com/ai-artificial-intelligence/1012510/openai-chatgpt-google-chrome-tabs
2•mikelgan•30m ago•1 comments

Hackers hijack D-Link, Ubiquiti devices to resell your stolen bandwidth

https://www.bleepingcomputer.com/news/security/hackers-hijack-d-link-ubiquiti-devices-to-resell-y...
2•wondersky•31m ago•0 comments

AA-Robotics v0.1

https://artificialanalysis.ai/articles/aa-robotics
2•liamswayne•31m ago•0 comments

Show HN: My AI induced mania in embedded computer graphics engineering [video]

https://www.youtube.com/watch?v=Ig2gYmOTuug
3•i2pi•34m ago•2 comments

68k Macintosh Ports

https://roytinker.com/68k-ports/
1•TimTheTinker•35m ago•0 comments

Show HN: Luksmith – Mount LUKS Ext4 Drives Natively in Finder on Apple Silicon

https://luksmith.app
2•baytizzel•38m ago•0 comments

Netflix Layoffs and A16Z layoffs are they signs for something?

2•dzonga•39m ago•1 comments

SK Hynix Unveils Next-Generation Memory Roadmap to Address AI Bottlenecks

https://www.koreaittimes.com/news/articleView.html?idxno=158124
2•peter_d_sherman•39m ago•0 comments

Linus Torvalds is using AI to develop Linux kernel code now

https://www.zdnet.com/innovation/linus-torvalds-uses-ai-to-write-linux-kernel-patch/
3•RickJWagner•42m ago•2 comments

Why your health insurance is dropping GLP-1 coverage

https://www.vox.com/good-medicine-newsletter/506555/glp-1-wegovy-zepbound-cost-health-insurance
2•ggm•42m ago•0 comments

Show HN: AlwaysGreen – uptime monitoring and status page

https://alwaysgreen.tech/
2•mikewww•47m ago•0 comments