スキル一覧に戻る
stxkxs

hsm-security-audit

by stxkxs

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: HSM Security Audit description: Comprehensive security verification - audit dependencies, check for vulnerabilities, verify constant-time ops version: 1.0.0 tags: [hsm, security, audit]

HSM Security Audit

Comprehensive security verification for HSM modules.

Usage

/hsm-security [module-number]

What You Do

  1. Dependency Audit:

    cargo audit
    

    Check for CVEs in dependencies.

  2. Clippy Security Lints:

    cargo clippy --all -- -D warnings
    

    Check for security anti-patterns, unsafe usage, potential panics.

  3. Constant-Time Operations: Search for crypto operations and verify they use constant-time:

    • ✅ Uses subtle::ConstantTimeEq
    • ❌ Uses == for signature/password comparison
  4. Memory Zeroization: Check sensitive types have #[derive(Zeroize, ZeroizeOnDrop)]

    • Private keys
    • Passwords/tokens
    • Temporary crypto buffers
  5. Secret Redaction: Verify secrets never in Debug impl or logs:

    // ✅ Good
    impl fmt::Debug for Config {
        fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
            f.debug_struct("Config")
                .field("master_key", &"<redacted>")
                .finish()
        }
    }
    
  6. Input Validation: Check all external inputs validated (size limits, range checks, sanitization).

  7. Generate Report: Show findings with severity (Critical, High, Medium, Low) and recommendations.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です