Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Sql Injection

ASecurity

Analyze SQL and ORM injection risks in application code — use for string-built queries, raw SQL helpers, and database sinks (CWE-89 / A03:2021).

15 stars
0 votes
0 copies
0 views
Added 9/22/2026
securityrustgosqlapidatabasesecurity

Works with

cursorapi

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add awarexone/AXguard --skill sql-injection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sql Injection?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Sql Injection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/awarexone-sql-injection/badge)](https://www.skillsdirectory.com/skills/awarexone-sql-injection)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: sql-injection
description: Analyze SQL and ORM injection risks in application code — use for string-built queries, raw SQL helpers, and database sinks (CWE-89 / A03:2021).
version: "1.0.0"
author: AwareXone
license: MIT
domain: application-security
subcategory: injection
tags: [sqli, injection, orm, cwe-89]
frameworks:
  cwe: [CWE-89]
  owasp_top10: [A03:2021]
  owasp_api_top10: []
  owasp_llm_top10: []
  owasp_wstg: []
  owasp_asvs: []
  mitre_attack: []
  mitre_atlas: []
  nist_csf: []
  nist_ai_rmf: []
related_skills: [api-security, command-injection, security-triage, security-remediation]
related_commands: [/axguard-sql, /axguard-inject, /axguard-audit, /axguard-flow]
related_rules: [sql., nosql.]
references:
  - https://owasp.org/Top10/A03_2021-Injection/
  - https://cwe.mitre.org/data/definitions/89.html
last_reviewed: "2026-09-15"
---

# SQL Injection Analysis

## Purpose

Encode practitioner reasoning for detecting and validating **SQL injection** and unsafe raw-query patterns during pre-ship review.

## When to Use

- Reviewing database access code (SQL strings, ORM `.raw`, query builders).
- After AXguard hits `sql.*` or suspicious `injection.*` near DB APIs.
- API endpoints that filter/sort/search with user parameters.

## When Not to Use

- Queries that are fully static with zero user influence.
- NoSQL-specific operator injection (use a dedicated NoSQL skill when available; AXguard `nosql.*` rules are adjacent).

## Security Concepts

SQLi occurs when untrusted input changes SQL **syntax/structure**, not merely values. Parameter binding sends values separately so structure stays fixed.

## Threat Model

Attacker influence over WHERE/ORDER/identifiers can yield data disclosure, authentication bypass, or in some stacks RCE via DB features — assess per engine.

## Analysis Workflow

1. Prefer `axguard flow` evidence when available (`sources_to_sql` / unsanitized paths in `dataflow.json`).
2. Find sinks: `execute`, `executemany`, `query`, `.raw`, `text(`, cursor calls.
3. Find sources: request params, headers, path, webhook bodies, AI tool args.
4. Determine if input is concatenated, f-string formatted, or `%`-formatted into SQL.
5. Check whether identifiers (table/column) are user-controlled — bind parameters cannot fix identifier injection; need allowlists.
6. Confirm ORM usage is actually parameterized (some `.raw`/`extra` APIs are not).

## Evidence Requirements

- Sink location
- Source of taint
- Proof of string composition into SQL
- Impact class (read / write / auth bypass) as hypothesis until validated

## False Positive Controls

- Bound parameters (`?`, `%s` with args tuple, ORM filters)
- Allowlisted sort columns mapped server-side
- Static admin scripts with no external input

## Remediation

- Parameterized queries / prepared statements only for values.
- Allowlist for ORDER BY / column names.
- Least-privilege DB accounts.
- Prefer ORM query APIs without raw string splicing.

## Verification

Re-run `axguard audit`, then manually confirm the risky composition path is gone and tests cover malicious input strings as data (not syntax).

## Related Skills

`api-security`, `security-triage`, `security-remediation`, `command-injection`

## Framework Mapping

- CWE-89
- OWASP A03:2021 Injection

## References

- https://owasp.org/Top10/A03_2021-Injection/
- https://cwe.mitre.org/data/definitions/89.html

## Research Provenance

Primary: OWASP Top 10:2021 A03; CWE-89 (2026-09-15).  
Secondary: AXGuard `rules/sql.json`; HF CyberNative DPO / UVID — derived pattern concepts only.

Attribution

awarexoneawarexone
View sourceMore from awarexone →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Springboot Security

Java Spring Boot 服务中关于身份验证/授权、验证、CSRF、密钥、标头、速率限制和依赖安全的 Spring Security 最佳实践。

2456590 votes

Security Review

Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.

2456590 votes

Paperclip Task Bridge

Create, comment on, update, and list Paperclip tasks from Hermes using scoped Paperclip API credentials.

805540 votes

Summarize Status

Write a short, colloquial summary for a Paperclip summary slot: open with the 1–3 specific, concrete actions the reader needs to take right now to unblock the work, then a brief plain-language status, streaming progress as it works.

805540 votes

Paperclip Evals

Choose, inspect, validate, and report Paperclip Runner or Product E2E evaluations while preserving evidence, provenance, cost, and failure classification.

805540 votes
View all in security →