sql-injection-detection
Detects SQL injection via string concatenation and fmt.Sprintf in database queries. Use when reviewing code for SQLi, unsafe query construction, or auditing…
от zakirkun★ 40 звёзд на GitHub
Установить sql-injection-detection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
SQL Injection Detection
Identifies SQL queries built with string concatenation or format strings where user input reaches execution sinks. See patterns.yaml for detection rules.
Detection Workflow
- Import check — look for database packages (
database/sql,gorm,sqlx, ORMs) - Call check — find SQL execution functions (
Query,QueryRow,Exec,Raw) - Context check — check if arguments include string concatenation or
fmt.Sprintf - Taint check — trace whether the concatenated variable is user-controlled (request params, form data, headers)
- Validate — confirm the variable is not a compile-time constant or allow-listed value before reporting
Vulnerable
db.Query("SELECT * FROM users WHERE id = " + userInput)
db.Query(fmt.Sprintf("SELECT * FROM users WHERE id = %s", userInput))
Safe
db.Query("SELECT * FROM users WHERE id = $1", userInput)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- patterns.yaml
FAQ
Что делает скилл sql-injection-detection?
Detects SQL injection via string concatenation and fmt.Sprintf in database queries. Use when reviewing code for SQLi, unsafe query construction, or auditing parameterized query usage.
Как установить скилл sql-injection-detection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sql-injection-detection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…