code-audit SKILL.md skillA

code-audit 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/code-audit@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/code-audit/SKILL.md
Versions recorded
1
Latest version
git:20260914.480426e, committed Sep 14, 2026
Size
1,539 bytes
Repository stars
827
License
a license file GitHub does not identify

Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

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

# Source Code Security Audit

## 适用场景

- 白盒审计、PR/差分安全审查
- Semgrep / CodeQL / Bandit / gosec 等 SAST
- 危险 API、注入点、鉴权缺失、加密误用
- 与 `supply-chain-security/` 分工:本 skill 偏**自有代码逻辑**,供应链偏依赖与管道

## 工作流

### 1. 范围与威胁模型

```text
□ 信任边界:用户输入、文件、反序列化、SSRF、鉴权中间件
□ 高价值资产:鉴权、支付、管理端、密钥处理
```

### 2. 自动扫描

```bash
semgrep --config auto .
# 或项目规则包
semgrep --config p/owasp-top-ten .
```

### 3. 人工验证(MUST)

```text
□ 每个 SAST 命中:可达性?可利用性?误报?
□ 鉴权:IDOR/越权、缺校验、错误的多租户隔离
□ 注入:SQL/命令/模板/LDAP
□ 加密:硬编码密钥、ECB、自定义 crypto
```

### 4. 产出

```text
Finding:位置 + 数据流 + PoC + 修复建议
可选 ATT&CK / CWE 编号
```

## 工具链

| 工具 | 语言/场景 |
|------|-----------|
| Semgrep | 多语言快速规则 |
| CodeQL | 深数据流(GitHub) |
| Bandit | Python |
| gosec / staticcheck | Go |
| SpotBugs / FindSecBugs | Java |

## 参考

- `references/sast-review-checklist.md`
- `../supply-chain-security/` `../api-security/` `../llm-security/`(Agent 代码)

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add coco-research/coco/code-audit@sha256:b710916dba76f21e

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_fhyxq6nuoag3wfn6.svg)](https://markdownregistry.com/a/art_fhyxq6nuoag3wfn6)

3 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 1,539 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 (1539 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_fhyxq6nuoag3wfn6
GET https://markdownregistry.com/api/v1/resolve?ref=coco-research/coco/code-audit
GET https://markdownregistry.com/api/v1/blob/b710916dba76f21ea2707307303cfb2dd23b36eb79ba18ca170c24c208729ccf

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 code-audit

code-audit SKILL.md skill
skillmds/skillmd · plugins/code-security-review-pipeline/skills/code-audit/SKILL.md · Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API…
git:20260919.fecc0d5 · audit A · 250 stars
code-audit SKILL.md skill
arcasilesgroup/ai-engineering · skills/ai-verify/tiers/3-chain/code-audit/SKILL.md · Review code for correctness bugs, concurrency and lifecycle errors, type-safety holes, error handling gaps…
git:20260901.dca22e5 · audit A · 61 stars
code-audit SKILL.md skill
novaestellar/novahaku · testing/code-audit/SKILL.md · Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API…
git:20260910.546fe86 · audit A · 28 stars
code-audit SKILL.md skill
greglas75/zuvo · skills/code-audit/SKILL.md · Batch audit of production files against CQ1-CQ40 quality gates and CAP1-CAP29 anti-patterns. Tiered output (A/B/C/D)…
git:20261016.4de0a83 · audit A · 7 stars

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