Skip to content
Back to skills

Sec

DSecurity

Quét bảo mật diff hoặc repo hiện tại — secret (không in giá trị), file nhạy cảm đang track/trong history, dependency audit, guard/hook/deny rule của kit, rồi review code đổi theo OWASP. Dùng khi user gõ /sec, trước commit/PR/release, hoặc sau khi diff đụng auth, input, file credential, dependency.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
developmentgoshellsqlawsgitapisecurity

Works with

  • claude code
  • api

Security analysis

D50/100
  • criticalReads or references SSH private keys
  • criticalReads or references SSH private keys

Pro shows the line behind each finding and how to fix it

Scanned October 17, 2026

npx -y skills add 8-Sync-Dev/8sync --skill sec --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sec?

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

Security grade badge for Sec
[![Security: D — Skills Directory](https://www.skillsdirectory.com/api/skills/8-sync-dev-sec/badge)](https://www.skillsdirectory.com/skills/8-sync-dev-sec)

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: sec
description: Quét bảo mật diff hoặc repo hiện tại — secret (không in giá trị), file nhạy cảm đang track/trong history, dependency audit, guard/hook/deny rule của kit, rồi review code đổi theo OWASP. Dùng khi user gõ /sec, trước commit/PR/release, hoặc sau khi diff đụng auth, input, file credential, dependency.
argument-hint: [diff | repo]
---
Mặc định quét diff hiện tại (`git diff` + file untracked); `repo` hoặc không có diff → cả repo. Chỉ báo file:dòng + loại, KHÔNG in giá trị secret.

1. **Secret:** `gitleaks detect --no-banner --redact` nếu có; không có → regex trên file đang track và diff: khoá API (AWS, GitHub, Anthropic, OpenAI, Slack), header PEM private key, gán `password|secret|token` bằng chuỗi literal dài. Nói rõ đã dùng công cụ nào.
2. **File nhạy cảm:** `git ls-files` và `git log --all --name-only --format=` lọc `.env` (trừ `.example/.sample/.template`), `*.pem`, `*.p12`, `*.session`, `*.pkl`, `id_rsa*`, `id_ed25519*`, `credentials*`. Còn trong history → `git filter-repo` + rotate.
3. **Dependency audit** — chỉ chạy công cụ có sẵn, thiếu thì ghi "skipped: thiếu <tool>": `cargo audit` (Cargo.lock) · `pnpm audit` / `npm audit` (lockfile tương ứng) · `govulncheck ./...` (go.mod) · `pip-audit` (requirements/pyproject).
4. **Kit:** chạy `8sync ccc status` — guard hook, verify/stop gate, deny rule `.env`/key/force-push còn bật không; managed-settings có không. Thiếu → `8sync ccc kit`; muốn siết cả máy → `/harden`.
5. **Review code đổi theo OWASP:** có `/security-review` built-in và skill `senior-security` → dùng chúng cho bước này, không viết lại. Tự làm thì soát: injection (SQL/shell/path), authN/authZ thiếu, SSRF, deserialization, crypto yếu, log lộ dữ liệu, CORS/CSRF, `unsafe`/`eval`/`exec` mới.
6. **Báo cáo:** bảng `mức | mục | file:dòng | việc cần làm`. **BLOCK** (secret thật, lỗ hổng khai thác được — dừng ship) · **WARN** (rủi ro cần user quyết) · **OK** (liệt kê ngắn mục sạch + mục bị skip).
7. Secret thật → bảo user rotate NGAY và xoá khỏi history; không tự rotate, không tự xoá, không lặp lại giá trị.

Liên quan: `/aup-audit` (quét theo Usage Policy) · `/rules` (được phép không) · `/harden` (cấu hình Claude Code).

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.

Comments

Loading comments…

Newsletter

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