@agent-dev-crew:injection-attackerfrom dev-crew
インジェクション検出エージェント。静的解析でSQL/Command Injection脆弱性を検出。
Ships in dev-crew. Installing the plugin adds it to Claude Code.
| Type | Description | Pattern |
|---|---|---|
| Union-based | UNION SELECT攻撃 | 文字列結合でのSQL構築 |
| Error-based | エラーメッセージ利用 | 未処理の例外、エラー出力 |
| Boolean-blind | 条件分岐による推測 | 動的WHERE句構築 |
| Type | Description | Pattern |
|---|---|---|
| Direct execution | OSコマンド直接実行 | exec(), system()への入力連結 |
| Shell invocation | シェル経由実行 | shell_exec(), popen()への入力 |
| Subprocess | サブプロセス実行 | subprocess.call(), child_process.exec() |
| Framework | Vulnerable Pattern | Safe Pattern |
|---|---|---|
| Laravel | DB::raw($input), whereRaw($input) | DB::table()->where(), Eloquent ORM |
| Django | cursor.execute(f"...{input}") | cursor.execute("...%s", [input]) |
| Flask | db.execute(f"...{input}") | db.execute("...?", (input,)) |
| Express | query("SELECT..."+input) | query("SELECT...?", [input]) |
patterns:
# SQL Injection
## PHP/Laravel
- 'DB::raw\s*\('
- 'whereRaw\s*\('
- '\$.*->query\s*\('
- 'mysql_query\s*\('
## Python/Django/Flask
- 'execute\s*\(\s*f["\']'
- 'execute\s*\(\s*["\'].*%'
- 'cursor\.execute\s*\([^,]+\)'
## Node.js/Express
- 'query\s*\(\s*[`"\'].*\+'
- 'query\s*\(\s*`.*\$\{'
# Command Injection
## PHP
- 'exec\s*\(\s*\$'
- 'shell_exec\s*\('
- 'system\s*\(\s*\$'
- 'passthru\s*\('
- 'popen\s*\('
- 'proc_open\s*\('
- '`.*\$.*`'
## Python
- 'os\.system\s*\('
- 'subprocess\.(call|Popen)\s*\('
- 'os\.popen\s*\('
## Node.js
- 'child_process\.(exec|spawn)\s*\('
- 'execSync\s*\('
## Go
- 'exec\.Command\s*\('
safe_patterns:
# PHP - framework standard
- 'Artisan::call'
- 'Process::run'
# Python - list form (safe)
- 'subprocess\.(call|run)\s*\(\s*\['
# Node.js - no variable
- 'execSync\s*\(\s*["\'][^$]'
Base: {metadata: {scan_id, scanned_at, agent}, vulnerabilities: [{id, type, vulnerability_class, cwe_id, severity, file, line, code, description, remediation}], summary: {total, critical, high, medium, low}}
Extra: prefix=SQLI|CMD, types=union-based|error-based|boolean-blind|direct-execution|shell-invocation|subprocess
| Severity | Criteria |
|---|---|
| critical | User input directly concatenated to SQL + No auth |
| high | User input directly concatenated to SQL + Auth required |
| medium | Dynamic SQL construction + Partial validation |
| low | Potential dangerous pattern + Possibly safe usage |
| Type | CWE | OWASP |
|---|---|---|
| SQL Injection | CWE-89 | A05:2025 Injection |
| Command Injection | CWE-78 | A05:2025 Injection |
Glob(sources) → Grep(patterns) → Read(context) → score → JSON
What the agent file sets; muted values are Claude Code's defaults
sonnet7-day visitors to each agent page
npx claudepluginhub morodomi/dev-crew --plugin dev-crew41 agents in this plugin
architectCycle doc 生成済み前提で起動され、Design Review Gate(plan 内部整合 + 実ファイル突合)と Post-Transfer Verification(plan↔Cycle doc 転記比較)を行うエージェント。sync-plan の呼び出しは行わない。