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.

Bot Traffic from Russia

https://radar.cloudflare.com/bots/as13238
1•consumer451•14s ago•0 comments

3rd Yandex Cloud Data Center Was Hit

https://status.yandex.cloud/en/incidents/2136
1•defly•2m ago•0 comments

Wealth Inequality

https://garyseconomics.org/introduction/
1•haizhung•3m ago•0 comments

Show HN: RemoveMacAI 1.0, a Mac app to turn off Apple Intelligence on macOS 27

https://omlahore.github.io/RemoveMacAI/
1•onyx47•7m ago•0 comments

Show HN: Modelship – an open source ray backed model cluster

https://github.com/modelship-ai/modelship
1•Alez007•8m ago•0 comments

Hibana-QUIC: QUIC in Rust using choreographic programming, no_std and no_alloc

https://github.com/hibanaworks/hibana-quic
1•o8vm•8m ago•0 comments

Optogenetics wins the Nobel – breakthrough helping map and control the brain

https://theconversation.com/optogenetics-wins-the-nobel-one-neuroscience-breakthrough-in-a-line-o...
1•bryanrasmussen•16m ago•1 comments

Ex-Anthropic's Jacob Coxon says he's 90% certain PRC has spies in US AI giants

https://finance.yahoo.com/technology/ai/articles/ex-anthropic-researcher-jacob-coxon-220000427.html
1•nephihaha•17m ago•1 comments

We're still figuring out the side effects of GLP-1 weight-loss drugs

https://www.technologyreview.com/2026/10/09/1146094/were-still-figuring-out-the-side-effects-of-g...
2•joozio•23m ago•0 comments

Lots and Lots of Control Panels

https://kottke.org/26/10/lots-and-lots-and-lots-of-control-panels
1•msalsas•24m ago•0 comments

Megakernels on Mac: What Fusion Saves and What It Costs

https://abhishek.it/blog/how-megakernels-work-and-how-to-build-kernels-for-mac
1•frostbyte7•28m ago•0 comments

Show HN: Small web app to memorize Korean words

https://game.tolearnkorean.com/
1•bryanhogan•36m ago•0 comments

Movie Review: Levels (2024)

https://www.nerdly.co.uk/2024/11/15/levels-review/
1•walterbell•37m ago•0 comments

RF BrainScan getting out at UN now?

2•Dabbling_Dion•38m ago•1 comments

Makaton

https://en.wikipedia.org/wiki/Makaton
1•nomilk•38m ago•0 comments

MD5 Research Challenge

https://solveathome.org/projects/md5
1•jonbaer•43m ago•0 comments

Replaced

https://ghuntley.com/replaced/
2•kaeruct•46m ago•0 comments

Opus Core 1.2 is now available

1•pragidi•47m ago•0 comments

Lovable Style Builder via CF Inference GLM-5.3, Kimi K2.7 Code and GLM-5.3 Flash

https://mainbrella.com/blog/lovable-style-builder-cloudflare-inference/
2•cs1996•47m ago•1 comments

Show HN: Bob

https://bob.spif.fyi/
1•androsynth89•49m ago•1 comments

SQLite 3.54.0 Released

https://sqlite.org/releaselog/3_54_0.html
4•thunderbong•51m ago•0 comments

AI's leaders (probably) aren't faking their fear

https://www.vox.com/politics/505834/ai-doom-anthropic-openai-pr
3•simianwords•52m ago•0 comments

Orkut: You deserve better from social media

https://orkut.com/en/
1•yarapavan•1h ago•1 comments

From WordPress to Astro: Zero Maintenance, Maximum Control

https://www.mikeroberto.com/wordpress-astro-migration
1•larrysalibra•1h ago•0 comments

Neuroscience Can Make Decluttering Easier

https://www.nytimes.com/2026/10/11/opinion/clutter-spring-cleaning-psychology.html
2•gumby•1h ago•1 comments

TasteRoute: Personalized Routing for Video Generation

https://zrt.wtf/publication/2026-10-10-taste-route
1•blackcat201•1h ago•0 comments

Show HN: Infinite – open-source node-based DAW for visuals, music and code

https://github.com/n1m21n/Infinite
1•n1m21n•1h ago•0 comments

LiteReview: A self-hosted plane for configuring PR review agents

https://github.com/BerriAI/litereview
1•mfkhalil•1h ago•0 comments

Distanser – Measure Anything on Screen

https://apps.apple.com/us/app/distanser/id6805159232?mt=12
1•j-sanden•1h ago•1 comments

Luke Nichols' (Outdoor Boys YouTube channel) full commencement speech [video]

https://www.youtube.com/watch?v=ttQd5bEdfL0
1•nomilk•1h ago•0 comments