Skip to content
Back to skills

Api Security Testing

ASecurity

Use this skill when you need evidence-bounded api-security-testing analysis and validation preparation; triggers include API 安全测试 and api-security-testing.

  • 313 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 6, 2026
ai-agentsgotestinggitapisecurity

Works with

  • api

Security analysis

A100/100

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

Scanned November 6, 2026

npx -y skills add naodeng/awesome-qa-skills --skill api-security-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Security Testing?

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

Security grade badge for Api Security Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/naodeng-api-security-testing-awesome-qa-skills/badge)](https://www.skillsdirectory.com/skills/naodeng-api-security-testing-awesome-qa-skills)

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: api-security-testing
description: Use this skill when you need evidence-bounded api-security-testing analysis and validation preparation; triggers include API 安全测试 and api-security-testing.
license: PolyForm-Noncommercial-1.0.0
metadata:
  version: "1.0.0"
  compatibility: ""
  author: "Awesome QA Skills contributors"
  language: "zh-CN"
  category: "testing-types"
  source: "https://github.com/naodeng/awesome-qa-skills"
  license-url: "https://polyformproject.org/licenses/noncommercial/1.0.0"
---

# API 安全测试(中文版)

## 何时使用

- 需要围绕API 攻击面、输入边界、身份权限、错误泄露和安全合同设计安全测试或审查准备。
- 需要在资料不完整时交付可复核初版,并明确假设、缺口和 Human 决策。
- 需要区分静态安全证据、计划中的验证和已发生的执行。

## 输出格式选项

- 默认输出 Markdown,按安全风险、证据和优先级组织。
- 用户要求表格、CSV、JSON 或工单格式时,保留相同的发现字段和证据状态。
- 输出进入自动化流程前,先确认 schema、枚举值和必填字段。

## 如何使用

1. 先读取 prompts/api-security-testing.md,执行输入审计、覆盖清单和输出合同。
2. 提取范围、环境、版本、角色、数据、依赖、限制和可用证据。
3. 围绕API 攻击面、输入边界、身份权限、错误泄露和安全合同建立可复核场景,区分已知事实、推断和候选验证。
4. 为每项记录影响、优先级、责任角色、关闭条件和验证方法。
5. 信息不足时交付受限初版,不把风险假设写成漏洞确认或安全通过。

## 参考文件

- 每次执行必须读取 prompts/api-security-testing.md。
- 需要评测时读取 evals/eval.yaml 和匹配的 evals/cases/。
- 只有目录存在且任务需要时,才读取 references/、examples/、scripts/ 或 output-formats.md。

## 领域执行要点

- 从已给 API 清单建立 endpoint、主体、资源、动作、敏感字段和信任边界表,标身份来自服务端还是可控请求。
- 每个风险必须具备已提供入口、主体/资源/动作、边界路径、适用安全义务和证据;静态候选不等于漏洞确认。
- 形成领域候选时,必须读取并遵循 [prompts/api-security-testing.md](prompts/api-security-testing.md) 的领域操作与判定流程,逐项保留合法对照、证据缺口和验证动作。

## 核心约束

- 只分析API 攻击面、输入边界、身份权限、错误泄露和安全合同,不登录系统、不调用真实 API、不读取凭据。
- 不编造漏洞、攻击成功、修复完成、扫描覆盖或安全通过结论。
- 缺少证据时标记待确认、blocked 或 unassessed,并给出隔离验证方法。
- 风险接受、例外授权和发布判断必须留给 Human。

## 交付前自检

- [ ] 已完成 known、missing、conflicting、stale、out_of_scope、assumptions 审计。
- [ ] 已覆盖API 安全、触发条件、预期关注点和证据状态。
- [ ] 已分离事实、推断、建议、信息缺口和 Human 决策。
- [ ] 未把静态发现或 dry-run 写成真实攻击、漏洞不存在或发布批准。

## 常见误区

- 把泛化安全审查或 API 合同检查当成API 安全测试的完整替代。
- 只列攻击名,不写适用范围、证据、预期结果和关闭条件。
- 信息不足时直接判定安全,或为了完整性读取真实凭据。

## 最佳实践

- 从高影响、难探测、权限敏感或数据敏感路径开始。
- 使用脱敏材料、最小权限、隔离环境和可回滚验证建议。
- 让另一位工程师能根据来源和边界复核每个安全结论。

Files in this skill

  • SKILL.md3.7 KB
  • agents/openai.yaml358 B
  • evals/cases/basic-success.yaml1.3 KB
  • evals/cases/domain-method-control.yaml1.3 KB
  • evals/cases/domain-method-success.yaml1.2 KB
  • evals/cases/edge-incomplete-input.yaml756 B
  • evals/cases/edge-scope-boundary.yaml804 B
  • evals/eval.yaml532 B
  • evals/local-rules.json139 B
  • evals/trigger-prompts.csv409 B
  • prompts/api-security-testing.md4.4 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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