Api Protocol Security logo

Api Protocol Security

Community
zhaji2333
api-protocol-security

当目标存在REST/GraphQL/gRPC/WebSocket接口、Swagger/OpenAPI文档、调试端点(actuator/console)、旧版本API、内部接口、微服务网关,或需要测试HTTP走私、DoS、速率限制时调用。负责API全方法测试、BOLA越权、GraphQL深度攻击、协议层漏洞挖掘。

Overview

Publisherzhaji2333
RepositoryCkSKILLS
Skill nameapi-protocol-security
Stars
123
Forks
16
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by zhaji2333 on GitHub. Read the source before you install it.

Installation

Install the Api Protocol Security AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zhaji2333/CkSKILLS/tree/main/.agents/skills/api-protocol-security
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zhaji2333/CkSKILLS.git /tmp/CkSKILLS
mkdir -p .claude/skills
cp -r /tmp/CkSKILLS/.agents/skills/api-protocol-security .claude/skills/api-protocol-security
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Api Protocol Security in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Api Protocol Security on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Api Protocol Security is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

api-protocol-security — API 与协议层安全专项深度挖掘

何时调用(触发条件)

  • REST/GraphQL/gRPC/WebSocket 接口
  • 接口文档暴露(Swagger/OpenAPI/api-docs)
  • 调试端点(/actuator /debug /console /metrics)
  • 旧版本接口(/api/v1 未下线)、内部接口外泄
  • 路径已知的未授权 API / 网关(路径未知、无账号、独立 H5/迁域残留 → 先 unauth-path-key-hunt)
  • 微服务网关、反向代理
  • HTTP 解析差异(走私)、缓存投毒
  • 资源消耗类攻击(深层查询、巨型请求)

一、API/接口类场景表(全景)

场景漏洞类型挖掘要点
REST API越权/注入/信息泄露全方法测试(GET/POST/PUT/DELETE/PATCH)
GraphQL内省泄露/深度攻击/批量查询__schema查询、嵌套查询DoS、别名批量
gRPC反序列化/未授权protobuf解析、接口鉴权
WebSocket鉴权缺失/注入/越权连接无token验证、消息可伪造
接口文档(Swagger/OpenAPI)敏感接口泄露/swagger-ui /api-docs暴露
调试接口未授权访问/RCE/actuator /debug /console
旧版本接口鉴权缺失/逻辑差异/api/v1旧版本未下线
内部接口外泄未授权/敏感操作内部RPC接口可公网访问

二、REST API 测试要点

  • 每个接口测试全部 HTTP 方法(GET/POST/PUT/DELETE/PATCH/OPTIONS)
  • 每个参数测试:正常值、空值、边界值、类型混淆、数组化、超长、特殊字符
  • 鉴权测试:有 token/无 token/过期 token/其他用户 token
  • 隐藏参数/调试参数全部尝试(debug=1、test=1、_method=PUT)
  • BOLA(对象级授权):遍历资源 ID、批量参数
  • 速率限制:登录、验证码、短信、转账接口是否可绕过(IP/Header 伪造)

三、GraphQL 专项

  • 内省查询:{__schema{types{name}}} 是否开放
  • 深度攻击:嵌套查询(friends 循环)造成 DoS
  • 别名批量:同一查询别名多次执行绕过速率限制
  • 批量枚举:user(id:1) 遍历获取数据
  • 越权:字段级权限缺失(隐藏字段可查)

四、WebSocket 专项

  • 连接时是否验证 token(无鉴权直连)
  • 消息伪造:他人会话/敏感操作
  • 注入:SQL/命令注入点进入消息处理
  • 越权:通过消息 ID 操作他人资源

五、HTTP 走私 / 协议层(O类)

  • 反向代理解析差异(Content-Length vs Transfer-Encoding)
  • 请求边界混淆 → 前置代理放行、后端走私
  • 测试工具:smuggler / Burp 扩展
  • 影响:缓存投毒、绕过鉴权、越权访问其他用户请求

六、资源消耗 DoS(P类)

  • 正则灾难回溯(ReDoS)
  • 巨型 JSON/XML 解析
  • 图像炸弹(解压炸弹)
  • 深度递归(GraphQL 嵌套)
  • 无速率限制的批量接口

七、验证要点

  • 全方法测试结果记录:每个方法的状态码/响应差异
  • 未授权访问:直接调用管理接口/调试端点是否 200
  • BOLA:A 用户 token 读取 B 用户数据即确认
  • 走私:请求包能否污染下一个请求的响应
  • 报告标注:接口文档暴露范围、可枚举数据量、速率限制缺失的影响

八、修复建议

  • 统一网关鉴权,接口文档/调试端点仅内网开放
  • 旧版本接口下线或同步鉴权
  • GraphQL:关闭内省、深度/复杂度限制、别名限制
  • WebSocket:连接鉴权 + 消息级权限校验
  • 代理统一解析(规范 CL/TE)、禁止走私
  • 速率限制:服务端按用户/IP,防 Header 伪造

Frequently asked questions

What does the Api Protocol Security AI skill do?

当目标存在REST/GraphQL/gRPC/WebSocket接口、Swagger/OpenAPI文档、调试端点(actuator/console)、旧版本API、内部接口、微服务网关,或需要测试HTTP走私、DoS、速率限制时调用。负责API全方法测试、BOLA越权、GraphQL深度攻击、协议层漏洞挖掘。

Why use Api Protocol Security on TypingMind?

Because you install it once and use it with any model. Api Protocol Security is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Api Protocol Security in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zhaji2333/CkSKILLS/tree/main/.agents/skills/api-protocol-security. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Api Protocol Security?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Api Protocol Security?

As many as you like. As long as a model supports skills, you can use Api Protocol Security with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Api Protocol Security AI skill free?

Yes. It is published on GitHub by zhaji2333 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇