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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/zeroize-audit/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“افحص شيفرة C++ الخاصة بي بحثًا عن تسرب البيانات الحساسة، وتأكد من محو كلمات المرور بشكل صحيح.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تحلل المهارة الشيفرة على مستويات مختلفة، بما فيها لغة التجميع (assembly)، لترى بدقة كيف تُعالج البيانات الحساسة وهل تُمحى. تقارن الشيفرة مع التحسينات ومن دونها لتكشف المشكلات التي تظهر فقط في النسخ الأسرع.

المحتوى التقني (ملف 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»؟

هو محو البيانات الحساسة عن طريق الكتابة فوقها بأصفار أو قيم غير ضارة أخرى، بحيث لا يمكن استرجاعها.

لماذا قد يُزيل المترجم عملية «zeroization»؟

يحسّن المترجم الشيفرة لتصبح أسرع. فإذا رأى أن البيانات المحذوفة لم تعد مطلوبة، قد يُزيل تعليمة المحو لتوفير وقت المعالجة، وهذا قد يشكل خطرًا أمنيًا.

هل أحتاج إلى إذن لاستخدام هذه المهارة؟

نعم، هذه المهارة للأغراض التعليمية أو لتقييمات أمنية مصرح بها فقط. يجب أن تحصل على إذن صريح ومكتوب من مالك النظام قبل استخدامها.

التفاصيل

الوصف الأصلي من المؤلف

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
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة