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.

Show HN: Xet Server – Host your own models anywhere

https://github.com/guilt/xet-server
1•vkaku•4m ago•0 comments

AWS Continuum for code vulnerabilities is now generally available

https://aws.amazon.com/blogs/aws/aws-continuum-for-code-vulnerabilities-is-now-generally-available/
1•taubek•12m ago•0 comments

LibreSSL 4.4 Released with Faster SHA3, Bug Fixes

https://www.phoronix.com/news/LibreSSL-4.4-Released
1•ksec•16m ago•1 comments

Volkswagen's best-seller has gone electric, will replace the ID.4 and ID.5

https://electrek.co/2026/10/09/volkswagens-best-seller-goes-ev-replace-id-4-images/
2•geox•17m ago•0 comments

Elon Musk Invests $1B in Skydance (New Paramount/Warner Bros Discovery)

https://techcrunch.com/2026/10/22/elon-musk-made-a-1-billion-investment-in-skydance-report-says/
2•ryan_j_naughton•19m ago•0 comments

'Smart Wall' of AI Cameras Is Watching the Border and More Than a Million People

https://www.nytimes.com/interactive/2026/10/22/us/politics/ai-surveillance-cameras-border-mexico....
2•ryan_j_naughton•21m ago•0 comments

Pangram CEO: People believe AI writing is indistinguishable from ours. It's not

https://bigthink.com/science-tech/trust-issues/
1•paulpauper•25m ago•0 comments

OBS Studio 33

https://github.com/obsproject/obs-studio/releases/tag/33.0.0
1•pentagrama•27m ago•0 comments

The current state of new media

https://twitter.com/kramnotmark/status/2113668179788534255/photo/1
1•binarynate•28m ago•0 comments

AOM Sees Rapid AV2 Adoption Across the Ecosystem Just 4 Months After Release

http://aomedia.org/press%20releases/AOMedia-Rapid-AV2-Adoption-Across-the-Video-Ecosystem/
1•ksec•29m ago•0 comments

Welcome to 2030. I own nothing, no privacy, and life's never been better (2016)

https://medium.com/world-economic-forum/welcome-to-2030-i-own-nothing-have-no-privacy-and-life-ha...
2•sssilver•33m ago•0 comments

Elon Musk Acquires $1B Stake in CNN's Parent Company

https://symby.com/news?_cid=101605177&preferredLanguage=en
15•Alien1Being•35m ago•4 comments

Who will become the new mathematicians of Math 2.0?

https://proofsandprompts.com/2026/10/20/who-will-become-the-new-mathematicians-of-math-2-0/
2•the-mitr•40m ago•0 comments

Who Wrote This Byte?

https://fzakaria.com/2026/10/23/who-wrote-this-byte
1•Sighery•45m ago•0 comments

No Pussyfooting (1973)

https://www.discogs.com/master/9824-Fripp-Eno-No-Pussyfooting?srsltid=AYCX9vI4P8C-IiZyut0mu3GJd_l...
2•erottern•47m ago•0 comments

Yab, yet Another Browser

https://yetanotherbrowser.com/#arc
1•nmiv•56m ago•1 comments

Pi, the coding agent, compiled ahead of time to one native executable

https://github.com/opensec-git/Pi-Bolt
2•thunderbong•59m ago•0 comments

Julia Returns to Tiobe's Top 20

https://tech-insider.org/tiobe-index-october-2026-python-julia-rust/
2•sumnole•1h ago•1 comments

Oura sues rival Ultrahuman again, threatening its U.S. smart ring comeback

https://techcrunch.com/2026/10/22/oura-sues-rival-ultrahuman-again-threatening-its-u-s-smart-ring...
2•Brajeshwar•1h ago•0 comments

Tehran has detailed plans to hit Gulf undersea cables if war resumes

https://www.timesofisrael.com/liveblog_entry/iranian-officials-tehran-has-detailed-plans-to-hit-g...
2•ghost-pooper•1h ago•0 comments

Uringscope: eBPF Tracer and Analyzer for io_uring

https://github.com/rch0wdhury/uringscope
2•tanelpoder•1h ago•1 comments

Regular Expression Matching Can Be Simple and Fast (2007)

https://swtch.com/~rsc/regexp/regexp1.html
3•giancarlostoro•1h ago•0 comments

Hitler's Eagle's Nest retreat 'completely ablaze'

https://www.telegraph.co.uk/world-news/2026/10/24/fire-hitler-eagles-nest-germany/
3•giuliomagnifico•1h ago•1 comments

Security Infrastructure for Developers and Agents

https://infisical.com/
2•measurablefunc•1h ago•0 comments

Filekin – PDF tools with no signup, no limits and no watermark

https://filekin.io/
2•LlamaCode•1h ago•1 comments

Indian government sites are serving revoked eMudhra certificates

https://captnemo.in/blog/2026/10/23/emsign-revoked-gov-in/
2•adityaathalye•1h ago•0 comments

The Age of Reasoning [pdf]

https://metisreasoning.ai/whitepaper/the-age-of-reasoning-2026-10.pdf
3•gmays•1h ago•0 comments

Misure di sicurezza rafforzate NIS: stato e preparazione

https://cyberpath-hq.com/blog/misure-sicurezza-rafforzate-nis/
1•ebalo55•1h ago•0 comments

Mamdani Makes a Splash with His Bidets

https://www.nytimes.com/2026/10/23/nyregion/bidets-zohran-mamdani-gracie-mansion.html
2•osnium123•1h ago•0 comments

Sam Altman: 'I No Longer Think We're Gonna Be Able to Just Patch All the Bugs'

https://gizmodo.com/sam-altman-i-no-longer-think-were-gonna-be-able-to-just-patch-all-the-bugs-20...
5•CharlesW•1h ago•1 comments