secret-scan SKILL.md skillA
secret-scan from perrylink/dsh-skill-pack-security is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add perrylink/dsh-skill-pack-security/secret-scan@v2.2.25Pins v2.2.25 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- perrylink/dsh-skill-pack-security
- Path
skills/secret-scan/SKILL.md- Versions recorded
- 13
- Latest version
- v2.2.25, committed Oct 31, 2026
- First version recorded
- Sep 7, 2026
- Size
- 6,917 bytes
- Repository stars
- 22
- License
- Apache-2.0
凭据/密钥暴露审计:gitleaks、trivy 全历史扫描命令与参数、告警误报分级判据、脱敏报告规范、按轮换→撤销→清除历史→CI 门禁排序的修复流程。任务涉及仓库内密钥/token/密码/私钥的检测、历史提交泄露排查、扫描告警真伪判定或泄露报告撰写时用;与凭据无关的常规代码审查不用。.
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
# 凭据扫描(secret-scan)
目标:找出仓库(含历史)中的真实凭据并推动修复。硬性纪律:**任何输出、报告、日志中不出现密钥明文**。
## 1. 工具就绪
```sh
gitleaks --version
trivy --version
trufflehog --version
```
样例输出(以本机实际输出为准):`gitleaks version 8.24.3` / `Version: 0.61.0` / `trufflehog 3.88.12`。
判据:退出码 0 = 可用;非 0 或 `command not found` = 未安装。
安装(装不上就跳过并走第 4 节降级 grep,报告注明):
```sh
# Windows: scoop install gitleaks trivy trufflehog (或 winget install Gitleaks.Gitleaks AquaSecurity.Trivy TruffleSecurity.Trufflehog)
# macOS/Linux: brew install gitleaks trivy trufflehog
```
把实际版本号写进报告(可复现审计的前提)。
## 2. 全历史扫描(默认路径)
```sh
gitleaks detect --source . --report-format json --report-path .gitleaks-report.json --redact -v
```
- 退出码:0 = 未发现;**1 = 发现告警,也可能是配置/参数错误**——必须看 stderr 区分。
- 样例 stderr(真发现):`INFO: 42 leaks found. 120 commits scanned.`
- 样例 stderr(配置错误):`unable to load config` —— 此时退出码 1 不代表有泄露。
- 判据:只有 stderr 出现 `leaks found` **且** JSON 中 `Findings` 数组非空才算发现;两者缺一 = 修复配置后重扫。
- 输出样例(`--redact` 已把 `match` 打码):
```json
{ "Description": "Generic API Key", "StartLine": 12, "File": "src/ci/deploy.sh",
"Commit": "a1b2c3d4", "RuleID": "generic-api-key", "Secret": "REDACTED" }
```
…Read the whole file at its exact version.
How to install
mdr add perrylink/dsh-skill-pack-security/secret-scan@sha256:239541908555865aThe line at the top of this page pins the label v2.2.25, 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.
[](https://markdownregistry.com/a/art_usb72cxdenu46ggp)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 13 versions of this file, between Sep 7, 2026 and Oct 31, 2026, about one every 5 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v2.2.25 latest | 2026-10-31 | af6b35f | 6,917 B | A | view · diff |
| v2.2.24 | 2026-10-10 | 0c1deb8 | 6,917 B | A | view · diff |
| v2.2.23 | 2026-10-10 | a5f8d45 | 6,917 B | A | view · diff |
| v2.2.22 | 2026-10-05 | 008bf2e | 6,917 B | A | view · diff |
| v2.2.20 | 2026-10-05 | 6b2adfe | 6,917 B | A | view · diff |
| v2.2.19 | 2026-10-04 | 380880e | 6,917 B | A | view · diff |
| v2.2.18 | 2026-10-04 | 8761f0d | 6,917 B | A | view · diff |
| v2.2.17 | 2026-09-24 | f926448 | 6,917 B | A | view · diff |
| v2.2.16 | 2026-09-12 | 8e74c4d | 6,917 B | A | view · diff |
| v2.2.14 | 2026-09-10 | d6120c8 | 6,917 B | A | view · diff |
| v2.2.13 | 2026-09-09 | 6ffdda7 | 6,917 B | A | view · diff |
| v2.2.12 | 2026-09-09 | dd3da11 | 6,917 B | A | view · diff |
| v2.2.10 | 2026-09-07 | 4430c52 | 6,917 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6917 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
perrylink/dsh-skill-pack-security · 22 stars · license Apache-2.0 · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_usb72cxdenu46ggp GET https://markdownregistry.com/api/v1/resolve?ref=perrylink/dsh-skill-pack-security/secret-scan GET https://markdownregistry.com/api/v1/blob/239541908555865ac9048e14d5ccea614bc5aaca7109d64e44fec097c28e0cf4
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 perrylink/dsh-skill-pack-security
Every file in perrylink/dsh-skill-pack-security