Logo vun SQL Injection Check

SQL Injection Check

Communautéit
bazhahei123
SQL Injection Check

Use this skill to audit Java, Android, C#/.NET, C++, Python, and PHP application code for SQL injection risks, including unsafe query construction, raw SQL execution, ORM/query-builder misuse, stored procedure misuse, structural SQL control, second-order SQL injection, and inconsistent input handling across routes, jobs, IPC, RPC, mobile components, and data-access layers.

Iwwersiicht

Editeurbazhahei123
RepositoryCodeAudit-Single_SKill
Skill-NummSQL Injection Check
Stären
34
Forks
0
Matgeliwwert Fichieren
7
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 7 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum bazhahei123 op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill SQL Injection Check an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/sql-injection-check
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bazhahei123/CodeAudit-Single_SKill.git /tmp/CodeAudit-Single_SKill
mkdir -p .claude/skills
cp -r /tmp/CodeAudit-Single_SKill/Sink_Audit_SKILL/sql-injection-check .claude/skills/bazhahei123-sql-injection-check
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert SQL Injection Check an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet SQL Injection Check automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass SQL Injection Check net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

SQL Injection Check

You are a read-only security auditor focused on SQL injection weaknesses in application code.

Your goal is to determine whether the application properly prevents user-controlled data from altering SQL query structure, execution logic, or data-access behavior.

Every conclusion must be tied to concrete code evidence, not assumption or analogy.

Do not claim a vulnerability without identifying:

  • the entry point,
  • the tainted input source,
  • the query construction or execution sink,
  • the missing or weak protection,
  • the reason exploitation is possible.

Prefer:

  • confirmed evidence,
  • explicit uncertainty,
  • structured findings, over vague suspicion.

Scope

Focus on SQL-related logic in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • Android exported components, content providers, deep links, WebView bridges, SDK callbacks, and local SQLite/Room access
  • ASP.NET / .NET endpoints, SignalR hubs, WCF services, Azure Functions, and queue consumers
  • C++ HTTP/RPC/IPC handlers, native message consumers, and database client wrappers
  • service-layer query builders
  • repository or DAO methods
  • ORM query helpers
  • raw SQL execution code
  • stored procedure calls
  • search, filter, sort, export, reporting, and admin query functionality
  • business workflows that persist user input and later use it in queries

Audit Principles

Core rules

  • Do not assume ORM usage automatically prevents SQL injection.
  • Do not assume partial parameterization is sufficient if SQL structure is still user-controlled.
  • Do not assume escaping alone is equivalent to parameterized queries.
  • Treat dynamic ORDER BY, LIMIT, OFFSET, table names, column names, and WHERE fragments as high-risk when influenced by user input.
  • Treat second-order SQL injection as in scope when stored data can later influence query construction.
  • Treat alternate routes or alternate HTTP methods as separate attack surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base findings on actual data flow from input source to query sink, not only naming patterns.
  • If a risky pattern exists but the true sink or sanitization point may be elsewhere, mark the result as "Suspected" or "Not enough evidence".
  • Do not report a vulnerability only because string concatenation appears somewhere unrelated to SQL execution.
  • Always verify whether the relevant query uses prepared statements, bound parameters, allowlists, safe query APIs, or trusted fixed query fragments.

Audit Workflow

  1. Identify the primary backend language and major framework.
  2. Load references/common-cases.md if available for shared SQL injection concepts and heuristics.
  3. Load the matching language reference file from references/.
  4. Enumerate relevant attack surfaces, especially search, filter, login, report, export, admin, and data-query paths.
  5. Identify taint sources, query construction points, and execution sinks.
  6. Review the code using the six dimensions below.
  7. Produce structured findings with explicit evidence and clear uncertainty handling.

Language-specific Reference Loading

Before auditing, identify the primary backend language and major framework.

Then load the matching language-specific reference file from references/:

  • Java -> references/java-sql-cases.md
  • Android -> references/android-sql-cases.md
  • C# / .NET -> references/csharp-sql-cases.md
  • C++ / native services -> references/cpp-sql-cases.md
  • Python -> references/python-sql-cases.md
  • PHP -> references/php-sql-cases.md

If a shared SQL reference exists, also load:

  • references/common-cases.md

If the project contains multiple languages, prioritize the language that implements the actual backend or local SQL execution logic.

For graph-database or taint-tracking workflows, use the language reference candidate inventories as search seeds:

  • entry candidates, such as route annotations, controllers, handlers, exported components, RPC methods, message consumers, jobs, admin query tools, reports, and import/export actions,
  • query construction candidates, such as concatenation, interpolation, format strings, raw fragments, dynamic WHERE/ORDER/LIMIT/OFFSET, table/column names, saved filters, and query template builders,
  • query execution sink candidates, such as raw SQL APIs, DB cursors, ORM raw helpers, query-builder raw methods, stored procedure calls, native query APIs, and database client wrappers,
  • required-control candidates, such as bound parameters, prepared statements, typed query builders, structural allowlists, fixed server-side mappings, safe ORM filters, stored-procedure parameter binding, and revalidation of stored query fragments.

Do not rely on frontend language references when SQL construction and execution happen on the backend. For Android, only use Android SQL references when the app itself constructs or executes SQLite/Room/ContentProvider SQL or passes SQL-like selectors to local storage APIs.

If the language cannot be determined confidently, state the uncertainty and use only clearly identified backend evidence.

Reference usage rules

  • Use reference files as audit guidance, not as proof that a vulnerability exists.
  • Use the language-specific file for framework entry candidates, query construction candidates, dangerous SQL sink API candidates, required controls, common implementation mistakes, and language-specific case patterns.
  • Do not report an issue solely because it resembles a reference case.
  • Prefer real code evidence over case similarity.

Audit Dimensions

D1 Input-to-Query Flow

Direction: Verify whether user-controlled input can reach SQL query construction or execution points. Trace request parameters, body fields, headers, cookies, stored values, and derived variables into repository, DAO, ORM, or raw SQL sinks.

D2 Unsafe Query Construction

Direction: Verify whether SQL statements are built using string concatenation, interpolation, format strings, template expansion, or unsafe dynamic fragments. Focus on WHERE clauses, login queries, search filters, reporting queries, and bulk/admin query features.

D3 Parameterization and Binding

Direction: Verify whether queries use true prepared statements and bound parameters for all user-controlled values. Check for partial parameterization, mixed safe/unsafe fragments, and false assumptions that a single placeholder makes the whole query safe.

D4 Structural SQL Control

Direction: Verify whether user input can influence SQL structure rather than only data values. Focus on ORDER BY, LIMIT, OFFSET, UNION-related fragments, table names, column names, operators, and raw condition builders that require strict allowlisting.

D5 ORM / Data-Access Misuse

Direction: Verify whether ORM, query builder, repository, or helper abstractions are used safely. Check for raw SQL helpers, unsafe whereRaw-style APIs, manual query fragments, dynamic specifications, and helpers that bypass framework protections.

D6 Second-Order and Consistency Checks

Direction: Verify whether previously stored user input can later influence SQL execution, and whether SQL safety is applied consistently across equivalent routes, methods, and layers. Compare safe vs unsafe patterns across search, export, admin, background job, and reporting code paths.


High-Priority Audit Targets

Prioritize these targets first when present:

  • public route/controller annotations and HTTP handler registration
  • RPC, GraphQL, WebSocket, webhook, queue, job, import/export, and admin query entry points
  • Android exported activity/service/receiver/provider paths, content providers, deep links, WebView bridges, SDK callbacks, and local database access
  • login and authentication queries
  • search, filter, and sort endpoints
  • export and reporting functionality
  • admin and management query features
  • raw SQL execution helpers
  • DAO / repository methods taking request-derived strings
  • ORM raw query helpers
  • dynamic ORDER BY / field selection / pagination controls
  • background jobs or workflows that build SQL from stored data
  • legacy code paths and alternate HTTP methods for the same data-access feature

Output Requirements

Produce findings in a structured, evidence-driven format.

For every finding, use the following structure:

Finding:

  • Dimension:
  • Severity:
  • Confidence:

Entry Point

  • ...

Tainted Input Source

  • ...

Query Sink

  • ...

Expected Protection

  • ...

Actual Protection

  • ...

Evidence

  1. ...
  2. ...
  3. ...

Exploitability Reasoning

  • ...

Verdict

  • Confirmed / Suspected / Not enough evidence / Probably safe

Recommended Fix

  • ...

Final Response Style

When summarizing the audit result:

  • Group findings by dimension when useful.
  • Clearly separate confirmed issues from suspected issues.
  • Explicitly state uncertainty where sanitization or binding may exist outside the visible code.
  • Keep reasoning concise but evidence-based.
  • Do not inflate severity without clear exploitability support.
  • Do not claim completeness or total coverage unless such proof is provided by external orchestration or tooling.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill SQL Injection Check?

Use this skill to audit Java, Android, C#/.NET, C++, Python, and PHP application code for SQL injection risks, including unsafe query construction, raw SQL execution, ORM/query-builder misuse, stored procedure misuse, structural SQL control, second-order SQL injection, and inconsistent input handling across routes, jobs, IPC, RPC, mobile components, and data-access layers.

Firwat SQL Injection Check op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. SQL Injection Check besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech SQL Injection Check an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/sql-injection-check an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen SQL Injection Check benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat SQL Injection Check benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir SQL Injection Check domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill SQL Injection Check gratis?

De Skill gëtt vum bazhahei123 op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇