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.

Kubernetes, mark II? Why Google's giving away gVisor used by A/ and OAI

https://thenewstack.io/gvisor-cncf-kubernetes-open-source/
1•stevefan1999•9m ago•0 comments

Why Do We Build Fluxcut?

1•loveTech•10m ago•0 comments

He Was a Suspect in the Yogurt Shop Murders for Thirty Years. He Can't Forget

https://www.texasmonthly.com/true-crime/the-yogurt-shop-killer-who-wasnt/
2•gmays•18m ago•0 comments

Tetris Theme Remix (video, 2018)

https://www.youtube.com/watch?v=-1uQKFblyUU
1•erickhill•19m ago•0 comments

SR-Gadgets: Make Scan-Resistant Caching Practical

https://arxiv.org/abs/2609.30468
3•matt_d•19m ago•0 comments

Open source Matlab Alternative, first release.

https://github.com/me-farza/opennumlab
1•AI4Science•20m ago•1 comments

NASA Navigation Experiment Shows Promise for Planetary Landings

https://www.nasa.gov/centers-and-facilities/armstrong/nasa-navigation-experiment-shows-promise-fo...
1•andsoitis•21m ago•0 comments

Type: Agent orchestrator for running Claude Code and Codex on cloud

https://type.com/
1•handfuloflight•21m ago•0 comments

Kimi K3.1 locally on one GPU

2•Argonautlabs•25m ago•0 comments

Asahi Linux Progress Linux 7.3

https://asahilinux.org/2026/11/progress-report-7-3/
2•ackyshake•25m ago•0 comments

Google, Meta and TikTok Sue to Block Law Curbing Addictive Social Media for Kids

https://www.kqed.org/news/12108703/google-meta-and-tiktok-sue-to-block-california-law-curbing-add...
5•geox•29m ago•0 comments

Show HN: JavaScript web apps with WASM layout and GPU rendering in 280 KB

https://github.com/rkaehn/uniform
1•rkaehn•29m ago•0 comments

Powered by muscle cells, a paper-thin robot swims through watery maze

https://news.mit.edu/2026/powered-by-muscle-cells-paper-thin-robot-swims-through-watery-maze-0929
3•gmays•34m ago•0 comments

SpiritFone Session

http://spirititc.org/2026/11/06/spiritfone-in-action/
1•pkshadygrove•36m ago•0 comments

17776 (2017)

https://www.sbnation.com/a/17776-football
1•akkartik•36m ago•0 comments

Connect ChatGPT or Claude to Wordpress.com, Free in November

https://wordpress.com/blog/2026/11/03/free-chatgpt-claude/
1•rdmuser•38m ago•0 comments

California Voters Reject Billionaire Wealth Tax, DDHQ Projects

https://www.bloomberg.com/news/articles/2026-11-07/california-voters-reject-billionaire-tax-ddhq-...
7•madihaa•38m ago•0 comments

Naval Ravikant: The Beginning of Infinity [video]

https://www.youtube.com/watch?v=yAj5EnyuakI
2•jakeogh•39m ago•0 comments

Just turned my car into a Tesla Roadster

https://roadster-chi.vercel.app/
2•aaron_dutta•42m ago•0 comments

Meta Employees 'Interacted' with Pirated Copies of Adult Films, Filing Shows

https://torrentfreak.com/meta-employees-interacted-with-pirated-copies-of-adult-films-filing-shows/
3•gslin•43m ago•0 comments

A barbarian tribe's mythic origin story is true, ancient DNA reveals

https://www.science.org/content/article/barbarian-tribe-s-mythic-origin-story-true-ancient-dna-re...
7•benbreen•51m ago•0 comments

Code Matters: Reflections on Rust in the LLM Age – Bryan Cantrill – Rust NYC [video]

https://www.youtube.com/watch?v=5D7QPOIZ7gY
3•vismit2000•51m ago•0 comments

Show HN: Help me pick a logo animation for my in-browser AI creature game

https://id-le.com/review/intro-logo-animation
1•nico•52m ago•0 comments

We Engineer Safer Agents

https://www.perplexity.ai/hub/blog/how-we-engineer-safer-agents
1•gmays•53m ago•0 comments

Quantum Computers Are Poised to Crack Encryption. AI Could Beat Them to It

https://www.wsj.com/tech/ai/ai-math-online-encryption-quantum-computers-57926bb2
1•fortran77•1h ago•0 comments

Exploring Janet and the HTTPF web framework

https://nick.gs/blog/2026-11/exploring-janet-and-the-httpf-web-framework/
1•veqq•1h ago•0 comments

F2FS: A New File System for Flash Storage (2015) [pdf]

https://www.usenix.org/system/files/conference/fast15/fast15-paper-lee.pdf
1•vismit2000•1h ago•0 comments

Show HN: We tested our prompt injection filter in public

https://hodor.gatebolt.com/blog/secret-leak-test
1•junayedmizan5•1h ago•0 comments

MCP-server-AutoCAD-Lisp-helper

https://github.com/radwanalmsora/mcp-server-autocad-lisp-helper
1•radwanAlmsora•1h ago•0 comments

The AI Business Model Just Collapsed

https://www.honest-broker.com/p/the-ai-business-model-just-collapsed
3•paulpauper•1h ago•1 comments