スキル一覧に戻る
yldgio

security-validation

by yldgio

Vibe Coding training sample creator: declarative AI-agent driven prompts and instructions for multi-level coding exercises.

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

SKILL.md


name: security-validation description: Comprehensive security validation for password generator applications. Use when auditing, implementing, or reviewing security measures for password handling and generation. license: MIT

Security Validation for Password Generators

When to Use

Use this skill for comprehensive security audits, implementing security measures, or reviewing code for security vulnerabilities in password generation applications.

Security Audit Process

1. Randomness Audit

Verify cryptographically secure random number generation:

  • ✅ Use crypto.getRandomValues() (Web) or crypto.randomBytes() (Node.js)
  • ❌ Never use Math.random() - it's predictable

2. Memory Security

  • Clear passwords from memory after use
  • Avoid storing in global/window scope
  • Don't persist passwords to localStorage/sessionStorage

3. XSS Prevention

  • Escape all user inputs before display
  • Use textContent instead of innerHTML for password display
  • Implement Content Security Policy

4. Dependency Audit

npm audit
npm audit fix

Security Checklist

See the security checklist for a complete validation list.

Automated Validation

# Check for insecure random usage
grep -rn "Math.random" src/

# Check for console.log with passwords
grep -rn "console.log.*password" src/

# Check for innerHTML usage
grep -rn "innerHTML" src/

# Run security audit
npm audit --audit-level=moderate

Reporting

Document any security findings with:

  1. Severity (Critical/High/Medium/Low)
  2. Location (file and line number)
  3. Description of vulnerability
  4. Recommended fix

スコア

総合スコア

55/100

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

SKILL.md

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

+20
LICENSE

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

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

0/5
タグ

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

0/5

レビュー

💬

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