api-security SKILL.md skillA

api-security from coco-research/coco is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add coco-research/coco/api-security@git:20260914.480426e

Pins git:20260914.480426e in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
coco-research/coco
Path
systems/reverse-skill/skills/api-security/SKILL.md
Versions recorded
1
Latest version
git:20260914.480426e, committed Sep 14, 2026
Size
4,987 bytes
Repository stars
827
License
a license file GitHub does not identify

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication, authorization, rate-limit, and CI/CD testing.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# API 安全测试

## 适用场景

- REST API 安全测试(OpenAPI/Swagger 驱动或盲测)
- GraphQL 安全审计(内省、批查询、别名过载)
- WebSocket 安全测试
- JWT / OAuth 2.0 认证测试
- BOLA/IDOR/BFLA 授权漏洞检测
- API 限速绕过与 DoS 测试

## 10 阶段测试流程

### Phase 1: API 发现与侦察

```text
主动发现:
□ Vespasian: 无头浏览器爬取 → 自动生成 OpenAPI 3.0 / GraphQL SDL 规范
□ Entropy --discover: 从 robots.txt + JS 文件提取端点
□ Kiterunner / ffuf: 爆破未文档化的端点路径
□ 检查常见路径: /swagger.json, /openapi.json, /graphql, /api-docs

GraphQL 内省(三级尝试):
  1. 标准内省查询
  2. 精简查询(绕过 WAF 全量封禁)
  3. 仅查 __schema { types { name } }(最小探测)
```

### Phase 2: 认证测试

```text
JWT 分析(jwt_tool / Burp):
□ alg:none 攻击: 修改头部为 "alg":"none",清空签名
□ 密钥混淆: RS256 公钥 → HS256 对称密钥
□ 弱 HMAC 密钥爆破: jwt_tool -C -d wordlist.txt
□ 过期/声明篡改: 修改 exp/iat/sub/role 声明
□ kid 注入: ../../etc/passwd → HMAC 签名绕过

OAuth 2.0:
□ redirect_uri 操控 → 授权码泄漏
□ CSRF via state 参数缺失
□ Token 在 Referer 头泄漏
□ PKCE 缺失检测

GraphQL 认证:
□ mutation 通过 GET 请求绕过认证(CSRF)
□ 批查询认证绕过
```

### Phase 3: 授权测试(BOLA/IDOR/BFLA)

```text
BOLA(对象级授权绕过):
□ 遍历数字 ID: /user/1 → /user/2 → /user/3
□ 遍历 UUID
□ 遍历用户名/邮箱
□ Burp Autorize: 双会话重放对比

BFLA(功能级授权绕过):
□ 普通用户执行管理员 API
□ HTTP 方法切换: GET → PUT → PATCH → DELETE
□ API 版本降级: /v2/admin → /v1/admin
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add coco-research/coco/api-security@sha256:c7023888be3caa37

The line at the top of this page pins the label git:20260914.480426e, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_v6fne7o6nobbvnjh.svg)](https://markdownregistry.com/a/art_v6fne7o6nobbvnjh)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Sep 14, 2026.

versioncommittedcommitsizeaudit
git:20260914.480426e latest2026-09-14 480426e 4,987 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4987 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

coco-research/coco · 827 stars · license a license file GitHub does not identify · pushed 2026-10-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_v6fne7o6nobbvnjh
GET https://markdownregistry.com/api/v1/resolve?ref=coco-research/coco/api-security
GET https://markdownregistry.com/api/v1/blob/c7023888be3caa370a87b5716ddef96d61898901c90081259150f0c4f9aa2513

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from coco-research/coco

AGENTS.md AGENTS.md file
coco-research/coco · AGENTS.md
git:20261007.61dca6d · audit A · 827 stars
create-rule SKILL.md skill
coco-research/coco · adapters/cursor/skills/create-rule/SKILL.md · Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up…
git:20260426.d53cc6c · audit A · 827 stars
create-skill SKILL.md skill
coco-research/coco · adapters/cursor/skills/create-skill/SKILL.md · Guides users through creating effective Agent Skills for Cursor. Use when the user wants to create, write, or author a…
git:20260426.d53cc6c · audit A · 827 stars
create-subagent SKILL.md skill
coco-research/coco · adapters/cursor/skills/create-subagent/SKILL.md · Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up…
git:20260426.d53cc6c · audit A · 827 stars
migrate-to-skills SKILL.md skill
coco-research/coco · adapters/cursor/skills/migrate-to-skills/SKILL.md · Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent…
git:20260426.d53cc6c · audit A · 827 stars
update-cursor-settings SKILL.md skill
coco-research/coco · adapters/cursor/skills/update-cursor-settings/SKILL.md · Modify Cursor/VSCode user settings in settings.json. Use when the user wants to change editor settings, preferences…
git:20260426.d53cc6c · audit A · 827 stars
_selftest SKILL.md skill
coco-research/coco · evals/skills/_selftest/SKILL.md
git:20261017.31c57de · audit C · 827 stars
agent-lightning SKILL.md skill
coco-research/coco · skills/agent-lightning/SKILL.md · Train and optimize AI agents using Microsoft's Agent Lightning framework with reinforcement learning. Use when setting…
git:20260802.1479e32 · audit A · 827 stars
agent-self-eval SKILL.md skill
coco-research/coco · skills/agent-self-eval/SKILL.md · Post-run self-evaluation system that scores agent output on correctness, clarity, actionability, and conciseness. Use…
v0.1.0 · audit A · 827 stars
ai-marketing-videos SKILL.md skill
coco-research/coco · skills/ai-marketing-videos/SKILL.md · Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for…
git:20260914.57d3294 · audit A · 827 stars
ai-product SKILL.md skill
coco-research/coco · skills/ai-product/SKILL.md · Use when building AI features into a product: LLM integration, RAG pipelines, guardrails, streaming, AI UX, prompt…
v0.1.0 · audit A · 827 stars
api-design-principles SKILL.md skill
coco-research/coco · skills/api-design-principles/SKILL.md · Use when designing a new REST or GraphQL API, reviewing an API spec before implementation, setting team API standards…
git:20260914.e75f220 · audit A · 827 stars

Every file in coco-research/coco

Other files named api-security

api-security SKILL.md skill
sickn33/agentic-awesome-skills · plugins/agentic-awesome-skills-claude/skills/api-security/SKILL.md · Authorized security assessment of REST, GraphQL, WebSocket, and SOAP APIs: discovery, authentication and authorization…
git:20260826.2ac0933 · audit A · 48,329 stars
api-security SKILL.md skill
skillmds/skillmd · plugins/code-security-review-pipeline/skills/api-security/SKILL.md · Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication…
git:20260919.fecc0d5 · audit A · 250 stars
api-security SKILL.md skill
francostino/opencode-skills-collection · bundled-skills/api-security/SKILL.md · Authorized security assessment of REST, GraphQL, WebSocket, and SOAP APIs: discovery, authentication and authorization…
git:20260827.2a689f0 · audit A · 87 stars
api-security SKILL.md skill
novaestellar/novahaku · testing/api-security/SKILL.md · Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication…
git:20260910.546fe86 · audit A · 28 stars
api-security SKILL.md skill
jim60105/copilot-prompt · skills/api-security/SKILL.md · Guideline for designing, implementing, and verifying secure APIs following OWASP API Security Top 10 (2023) best…
git:20260928.6911cf8 · audit A · 22 stars

Browse by kind, by grade A, or by owner.