zeroize-audit
Skill này làm gì
Công cụ này kiểm tra mã lập trình của bạn (C, C++, Rust) để đảm bảo thông tin nhạy cảm như mật khẩu hoặc khóa được xóa hoàn toàn sau khi dùng. Nó tìm các lỗi mà dữ liệu này có thể bị rò rỉ hoặc không được xóa đúng cách, ngay cả khi trình biên dịch tối ưu mã.
Khi nào nên dùng
- ✓Khi rà soát mã xử lý dữ liệu nhạy cảm (mật khẩu, khóa, v.v.).
- ✓Khi kiểm tra xem việc dọn dẹp dữ liệu nhạy cảm có được thực hiện an toàn trong các chương trình quan trọng hay không.
- ✓Khi kiểm toán các triển khai mật mã và hệ thống xác thực.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/zeroize-audit/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Kiểm tra mã C++ của tôi xem có rò rỉ dữ liệu nhạy cảm không và đảm bảo mật khẩu được xóa đúng cách.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ phân tích mã ở nhiều cấp độ, kể cả mã máy (assembly), để xem chính xác dữ liệu nhạy cảm được xử lý và xóa như thế nào. Nó so sánh mã có và không có tối ưu hóa để tìm các vấn đề chỉ xuất hiện ở phiên bản nhanh hơn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Supporting material availability
This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files:
Ask for the original supporting material or an existing installation before using a step that depends on these paths; this catalog does not identify a verified download source for them. Resolve each path relative to that installation, inspect its contents, and verify any applicable license and execution prerequisites. Do not run a command or claim a referenced procedure was followed until its required file exists. Do not fabricate the missing scripts or treat an unrelated file with the same name as equivalent. Independent steps fully documented here can proceed within the user’s authorized scope; report any dependent step as unavailable.
⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.
Mandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
- Ask the user to state the exact target URL, IP, account, or resource.
- Ask the user to confirm written authorization and the permitted scope.
- Show the exact command(s) and explain their expected effect.
- Wait for explicit confirmation in the current conversation.
Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
zeroize-audit — Claude Skill
When to Use
- Auditing cryptographic implementations (keys, seeds, nonces, secrets)
- Reviewing authentication systems (passwords, tokens, session data)
- Analyzing code that handles PII or sensitive credentials
- Verifying secure cleanup in security-critical codebases
- Investigating memory safety of sensitive data handling
When NOT to Use
- General code review without security focus
- Performance optimization (unless related to secure wiping)
- Refactoring tasks not related to sensitive data
- Code without identifiable secrets or sensitive values
Purpose
Detect missing zeroization of sensitive data in source code and identify zeroization that is removed or weakened by compiler optimizations (e.g., dead-store elimination), with mandatory LLVM IR/asm evidence. Capabilities include:
- Assembly-level analysis for register spills and stack retention
- Data-flow tracking for secret copies
- Heap allocator security warnings
- Semantic IR analysis for loop unrolling and SSA form
- Control-flow graph analysis for path coverage verification
- Runtime validation test generation
Scope
- Read-only against the target codebase (does not modify audited code; writes analysis artifacts to a temporary working directory).
- Produces a structured report (JSON).
- Requires valid build context (
compile_commands.json) and compilable translation units. - "Optimized away" findings only allowed with compiler evidence (IR/asm diff).
Inputs
See {baseDir}/schemas/input.json for the full schema. Key fields:
| Field | Required | Default | Description |
|---|---|---|---|
path |
yes | — | Repo root |
compile_db |
no | null |
Path to compile_commands.json for C/C++ analysis. Required if cargo_manifest is not set. |
cargo_manifest |
no | null |
Path to Cargo.toml for Rust crate analysis. Required if compile_db is not set. |
config |
no | — | YAML defining heuristics and approved wipes |
opt_levels |
no | ["O0","O1","O2"] |
Optimization levels for IR comparison. O1 is the diagnostic level: if a wipe disappears at O1 it is simple DSE; O2 catches more aggressive eliminations. |
languages |
no | ["c","cpp","rust"] |
Languages to analyze |
max_tus |
no | — | Limit on translation units processed from compile DB |
mcp_mode |
no | prefer |
off, prefer, or require — controls Serena MCP usage |
mcp_required_for_advanced |
no | true |
Downgrade SECRET_COPY, MISSING_ON_ERROR_PATH, and NOT_DOMINATING_EXITS to needs_review when MCP is unavailable |
mcp_timeout_ms |
no | — | Timeout budget for MCP semantic queries |
…
Câu hỏi thường gặp
“Zeroization” là gì?
Zeroization là việc xóa dữ liệu nhạy cảm bằng cách ghi đè chúng bằng số không hoặc các giá trị vô hại khác, đảm bảo không thể khôi phục.
Tại sao trình biên dịch có thể xóa “zeroization”?
Trình biên dịch tối ưu mã để chạy nhanh hơn. Nếu nó xác định dữ liệu đã xóa không còn cần thiết, nó có thể bỏ lệnh xóa để tiết kiệm thời gian xử lý, và điều này có thể gây rủi ro bảo mật.
Tôi có cần được cấp quyền để dùng công cụ này không?
Có, công cụ này chỉ dành cho mục đích giáo dục hoặc đánh giá bảo mật được ủy quyền. Bạn phải có sự cho phép rõ ràng, bằng văn bản, từ chủ hệ thống trước khi dùng.
Chi tiết
Mô tả gốc của tác giả
Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C/C++/Rust code handling secrets, keys, passwords, or other sensitive data.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #6238
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.