V3 Security Overhaul について
V3 Security Overhaulは、claude-flow v3のセキュリティ作業を調整するClaude Codeスキルです。脆弱性対応、脅威モデル作成、テスト、安全なコーディングパターンを扱います。
主な機能
- 01セキュリティ担当エージェントの調整
- 02依存関係の脆弱性対応
- 03弱いパスワードハッシュの置き換え
- 04入力検証とパスのサニタイズ
- 05コマンド実行時のシェル解釈の回避
活用シーン
- 01v3の脅威モデルの策定
- 02重大な脆弱性の修正
- 03セキュリティテストと検証の追加
- 04コマンド実行とパス処理の確認
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ proffesor-for-testing/ agentic-qe --skill v3-security-overhaulインストール後、Claude Code で/v3-security-overhaulを入力して読み込まれたか確認します。
詳細
V3 セキュリティの全面的な見直し
このスキルでできること
専用の v3 セキュリティエージェントを使用して、claude-flow v3 の包括的なセキュリティの見直しを調整し、重大な脆弱性に対処するとともに、セキュリティを最優先する開発手法を確立します。
クイックスタート
# Initialize V3 security domain (parallel)
Task("Security architecture", "Design v3 threat model and security boundaries", "v3-security-architect")
Task("CVE remediation", "Fix CVE-1, CVE-2, CVE-3 critical vulnerabilities", "security-auditor")
Task("Security testing", "Implement TDD London School security framework", "test-architect")
重大なセキュリティ修正
CVE-1:脆弱な依存関係
npm update @anthropic-ai/claude-code@^2.0.31
npm audit --audit-level high
CVE-2:弱いパスワードハッシュ
// ❌ Old: SHA-256 with hardcoded salt
const hash = crypto.createHash('sha256').update(password + salt).digest('hex');
// ✅ New: bcrypt with 12 rounds
import bcrypt from 'bcrypt';
const hash = await bcrypt.hash(password, 12);
CVE-3:ハードコードされた認証情報
// ✅ Generate secure random credentials
const apiKey = crypto.randomBytes(32).toString('hex');
セキュリティパターン
入力検証(Zod)
import { z } from 'zod';
const TaskSchema = z.object({
taskId: z.string().uuid(),
content: z.string().max(10000),
agentType: z.enum(['security', 'core', 'integration'])
});
パスのサニタイズ
function securePath(userPath: string, allowedPrefix: string): string {
const resolved = path.resolve(allowedPrefix, userPath);
if (!resolved.startsWith(path.resolve(allowedPrefix))) {
throw new SecurityError('Path traversal detected');
}
return resolved;
}
安全なコマンド実行
import { execFile } from 'child_process';
// ✅ Safe: No shell interpretation
const { stdout } = await execFile('git', [userInput], { shell: false });
成功指標
- セキュリティスコア:90/100(npm audit とカスタムスキャン)
- CVE の解決:重大な脆弱性を 100%修正
- テストカバレッジ:セキュリティ上重要なコードの 95%超
- 実装:すべての安全なパターンを文書化してテスト済み
コメント
Markdown 対応