본문으로 건너뛰기
Skillpedia
보안48k · #6238

zeroize-audit

하는 일

이 도구는 C, C++, Rust 프로그래밍 코드를 검사해 비밀번호나 키 같은 민감한 정보가 사용 후 완전히 지워지는지 확인합니다. 정보가 새거나 제대로 제거되지 않는 문제를 찾으며, 컴파일러가 코드를 최적화할 때 생기는 문제도 포함합니다.

사용하는 경우

  • ✓민감한 데이터(비밀번호, 키 등)를 다루는 코드를 검토할 때.
  • ✓중요한 프로그램에서 민감한 데이터 삭제가 안전하게 이루어지는지 확인할 때.
  • ✓암호화 구현과 인증 시스템을 점검하는 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/zeroize-audit/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/zeroize-audit/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 C++ 코드에서 민감한 데이터 유출이 있는지 확인하고, 비밀번호가 올바르게 지워지는지 검사해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 기계어(어셈블리)를 포함한 여러 수준에서 코드를 분석해, 민감한 데이터가 어떻게 다뤄지고 지워지는지 살펴봅니다. 최적화를 적용한 경우와 적용하지 않은 경우를 비교해, 빠른 버전에서만 나타나는 문제를 찾습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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:

  1. Ask the user to state the exact target URL, IP, account, or resource.
  2. Ask the user to confirm written authorization and the permitted scope.
  3. Show the exact command(s) and explain their expected effect.
  4. 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

…

자주 묻는 질문

‘제로화(zeroization)’는 무엇인가요?

민감한 데이터를 0이나 다른 무해한 값으로 덮어써서 복구할 수 없게 만드는 것입니다.

컴파일러는 왜 제로화를 제거할 수 있나요?

컴파일러는 코드를 빠르게 만들기 위해 최적화합니다. 지워진 데이터가 더 이상 필요 없다고 판단하면 지우는 명령을 제거할 수 있으며, 이는 보안 위험이 될 수 있습니다.

이 도구를 사용하려면 허가가 필요한가요?

예, 이 도구는 교육 목적이나 승인된 보안 점검에만 사용해야 합니다. 사용하기 전에 시스템 소유자의 명시적인 서면 허가가 필요합니다.

상세 정보

작성자의 원본 설명

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.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#6238
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬