Skip to content
Back to skills

Ai Agent

ASecurity

AI/LLM/Agent 安全专项。当目标是 Chatbot/RAG/AI 助手、AI 应用平台、在线代码执行沙箱、云端 Agent 沙箱/工具执行/网关时调用。

  • 167 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
securitypythonnodeapifrontendsecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add zhaji2333/CkSKILLS --skill ai-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ai Agent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ai Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zhaji2333-ai-agent/badge)](https://www.skillsdirectory.com/skills/zhaji2333-ai-agent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ai-agent
description: AI/LLM/Agent 安全专项。当目标是 Chatbot/RAG/AI 助手、AI 应用平台、在线代码执行沙箱、云端 Agent 沙箱/工具执行/网关时调用。
---

# ai-agent — AI/LLM/Agent 安全专项

## 何时调用

- Chatbot/RAG/AI 助手/提示词
- AI 平台(Langflow/ComfyUI/Dify/Gradio 等)
- 在线代码执行/沙箱逃逸
- Agent 工具执行/平台 API/跨租户
- AI 输出渲染(转 xss)

## 30 秒分诊

1. 先建信任边界:谁调模型、模型能调哪些工具、检索源是否可控
2. 对话口当遥控器:合法请求让它执行命令
3. 平台 API 直打:F12 抓 exec/files/tool,换 sandbox_id 测跨租户
4. 沙箱内按七大面:组件未授权→凭据→提权→逃逸→跨租户→集群/内网→网关

## 首枪顺序

- 产品指纹:Langflow `validate/code` exec;ComfyUI userdata 写配置;Dify/Next RSC;Gradio component_server 读文件
- Python pyjail:`__subclasses__`/`_wrap_close.__globals__`/`chr(95)` 拼 dunder
- Node vm:`this.constructor.constructor('return process')()`;vm2 用 Proxy/Error.stack
- 提示词注入:直接/间接(文档/邮件/网页);System Prompt 泄露
- RAG 投毒:可写知识库/检索源
- Agent 平台直打 `/exec` `/files` `/tool`,三态对照换 id
- 沙箱内凭据:env、`/proc/1/environ`、k8s sa token、配置文件
- 网关/控制面:伪造或下发响应,另一会话真执行才算(L3)

## 知识库索引(按需开小块,禁通读)

| 文件 | 用途 | 大小 |
|---|---|---|
| `knowledge/AI平台漏洞实战.md` | v2 实战:产品指纹/沙箱逃逸/Agent 运行时 | 3.7KB |
| `knowledge/agent-tool-exec-test.md` | 真实 SRC 对话口工具真执行 | 3.3KB |
| `knowledge/agent-sandbox-takeover-02-二、进站决策树.md` | Agent 沙箱进站决策树 | 0.9KB |
| `knowledge/agent-execution-channel-hijack-03-三、HTTP-跨租户-必须三态-+-对照.md` | 平台 API 跨租户 | 1.7KB |
| `knowledge/agent-prompt-injection-bypass-03-三、第一枪-未拒绝时.md` | 提示词注入第一枪 | 0.9KB |
| `knowledge/ai-llm-agent-security-04-三、提示词注入-Prompt-Injection-——-LLM01.md` | LLM 提示词注入全景 | 8.1KB |
| `knowledge/cloud-ide-codex-rce-chain.md` | 云 IDE/Codex RCE 链 | 7.9KB |

其余 44 个知识块(按标题搜,禁止通读):`ls knowledge/`;原始清单见 `../../../docs/MIGRATION.md`。

## 相关

- `web-auth-access` / `cloud-infra` / `web-xss-frontend`

Files in this skill

  • SKILL.md2.4 KB
  • knowledge/AI平台漏洞实战.md3.7 KB
  • knowledge/agent-execution-channel-hijack-01-一、三层-只有一层会拒绝.md892 B
  • knowledge/agent-execution-channel-hijack-02-二、路径-B-五步.md1.1 KB
  • knowledge/agent-execution-channel-hijack-03-三、HTTP-跨租户-必须三态-+-对照.md1.7 KB
  • knowledge/agent-execution-channel-hijack-04-四、网关-控制面-HTTP-L1-L2.md755 B
  • knowledge/agent-execution-channel-hijack-05-五、「拒绝了但执行了」.md654 B
  • knowledge/agent-execution-channel-hijack-06-六、客户端连云端网关.md485 B
  • knowledge/agent-execution-channel-hijack-07-七、判定表.md651 B
  • knowledge/agent-execution-channel-hijack-08-八、联动.md383 B
  • knowledge/agent-prompt-injection-bypass-01-一、先分清-遥控器-vs-注入.md916 B
  • knowledge/agent-prompt-injection-bypass-02-二、铁律.md566 B
  • knowledge/agent-prompt-injection-bypass-03-三、第一枪-未拒绝时.md901 B
  • knowledge/agent-prompt-injection-bypass-04-四、护栏六层-已拒绝时.md1.3 KB
  • knowledge/agent-prompt-injection-bypass-05-五、L2-改叙事-不改攻击目标.md770 B
  • knowledge/agent-prompt-injection-bypass-06-六、L4-换实现-不换话术.md715 B
  • knowledge/agent-prompt-injection-bypass-07-七、L1-编码-+-间接注入.md820 B
  • knowledge/agent-prompt-injection-bypass-08-八、失败升级.md509 B
  • knowledge/agent-prompt-injection-bypass-09-九、联动.md439 B
  • knowledge/agent-sandbox-takeover-01-一、要打穿的面-按性价比-不是按酷.md520 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.