شعار SQL Injection Source Check

SQL Injection Source Check

المجتمع
bazhahei123
SQL Injection Source Check

Use this skill to identify source points for SQL injection audits, including request parameters, search filters, sort and pagination controls, raw SQL fragments, ORM raw-helper inputs, dynamic table and column selectors, report templates, saved filters, imported rows, stored query metadata, Android local SQL inputs, IPC/RPC/job/query payloads, and framework-specific SQL source locations in Java, Android, C#/.NET, C++, Python, and PHP applications.

نظرة عامة

الناشرbazhahei123
المستودعCodeAudit-Single_SKill
اسم المهارةSQL Injection Source Check
النجوم
34
التفريعات
0
الملفات المرفقة
7
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 7

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها bazhahei123 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي SQL Injection Source Check في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Source_Audit_SKILL/sql-injection-check
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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/Source_Audit_SKILL/sql-injection-check .claude/skills/bazhahei123-sql-injection-source-check
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل SQL Injection Source Check في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج SQL Injection Source Check تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط SQL Injection Source Check بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

SQL Injection Source Check

You are a read-only security auditor focused on identifying source points that are relevant to SQL injection review.

Your goal is to determine where SQL-relevant data enters the application and how it is carried toward query construction, query builder calls, ORM helpers, raw SQL helpers, stored procedure calls, report engines, search filters, and data-access layers.

Every source point must be tied to concrete code evidence, not assumption or naming alone.

Do not claim a vulnerability only because a source point exists. A source point is an audit starting point. A vulnerability requires later proof that attacker-controlled or weakly trusted data can alter SQL structure, SQL logic, or unsafe query execution behavior without adequate binding, allowlisting, or fixed server-side mapping.

Do not record a source point without identifying:

  • the entry point,
  • the source value or SQL-relevant payload,
  • whether the value is client-controlled, external-system-controlled, stored attacker-influenced, server-trusted, mixed, or unclear,
  • the downstream SQL relevance,
  • the code evidence that connects the source to query construction, query options, query helpers, raw fragments, stored query metadata, or data-access wrappers.

Prefer:

  • confirmed source points,
  • explicit uncertainty,
  • structured source inventories, over vague suspicion.

Scope

Focus on SQL source points in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • Android exported components, content providers, deep links, WebView bridges, Binder/AIDL handlers, SDK callbacks, WorkManager jobs, and local SQLite/Room access
  • ASP.NET / .NET controllers, Razor Pages, minimal APIs, SignalR hubs, gRPC/WCF services, Azure Functions, queue consumers, and hosted workers
  • C++ HTTP/RPC/WebSocket/IPC handlers, socket/message consumers, native database wrappers, and CLI/admin tools
  • service-layer query builders
  • repository or DAO methods
  • ORM query helpers
  • raw SQL helper calls
  • stored procedure invocation paths
  • search, filter, sort, pagination, export, reporting, analytics, and admin query functionality
  • workflows that persist user input and later reuse it in SQL-relevant logic

Audit Principles

Core rules

  • Do not treat a source point as a vulnerability by itself.
  • Do not assume ORM usage makes every SQL source irrelevant.
  • Do not assume prepared statements protect structural SQL sources such as table names, column names, operators, ORDER BY, LIMIT, OFFSET, or raw WHERE fragments.
  • Do not assume escaping, casting, or regex validation makes a source trusted without downstream context.
  • Treat request path, query, body, header, cookie, GraphQL variable, RPC argument, form value, uploaded metadata, and import row values as client-controlled unless code proves otherwise.
  • Treat queue messages, webhook payloads, job arguments, external service responses, and integration payloads as external-system-controlled until origin and integrity are verified.
  • Treat saved filters, report templates, stored query fragments, stored sort fields, dashboard metadata, and admin-configured query options as stored attacker-influenced when an attacker can write or influence them earlier.
  • Treat sort field, sort direction, filter key, operator, column, table, raw condition, select-list, group-by, limit, offset, and query-template sources as high-priority.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base source classification on actual code paths, not only parameter names.
  • If a value may be allowlisted, mapped to a safe enum, bound as a value, converted to a fixed query API, constrained, or overwritten elsewhere, mark the source as "Suspected" or "Not enough evidence".
  • Do not classify a SQL source as trusted only because it passes through a repository, DAO, query builder, or ORM wrapper.
  • Always verify whether the value comes from request input, uploaded metadata, stored state, queue metadata, framework routing, trusted configuration, or trusted server-side construction.
  • Record downstream use only when visible in the inspected code path.

Audit Workflow

  1. Identify the primary backend language, local SQL surface, database access framework, and ORM/query builder.
  2. Load references/common-cases.md.
  3. Load the matching language reference file from references/.
  4. Enumerate relevant source surfaces, especially search, filter, sort, pagination, login, report, export, admin, analytics, saved filter, dashboard, and background-query paths.
  5. Identify SQL-relevant source points, such as values, filter keys, operators, sort fields, directions, table names, column names, select fields, raw WHERE fragments, query templates, saved filters, report definitions, and ORM raw-helper arguments.
  6. For each source point, determine whether it is client-controlled, external-system-controlled, stored attacker-influenced, server-trusted, mixed, or unclear.
  7. Trace each source far enough to document downstream SQL relevance, such as query string construction, query builder option construction, raw fragment creation, ORM raw helper calls, dynamic stored procedure parameters, or report-query generation.
  8. For graph-database or taint-tracking workflows, use the language reference candidate inventories as search seeds and then prune by real code evidence.
  9. Review the code using the six source dimensions below.
  10. Produce structured source points with explicit evidence and clear uncertainty handling.

Reference Loading Rules

Always load:

  • references/common-cases.md

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 the project contains multiple languages, prioritize the language and framework that implement the actual backend, native, or local SQL construction and execution logic.

Do not rely only on frontend code when SQL construction happens on the backend.

For Android, use the Android reference only when the app constructs or executes SQLite/Room/ContentProvider queries locally, passes SQL-like selectors to local storage APIs, or forwards mobile-controlled query options into backend SQL APIs.

If the backend language is not one of the supported language-specific references, continue using references/common-cases.md and rely only on clearly identified framework and code evidence.

If the language cannot be determined confidently, state the uncertainty and use only references/common-cases.md plus directly observed code behavior.

Reference usage rules

  • Use reference files as source discovery guidance, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared SQL source concepts, structural source types, propagation patterns, trust boundaries, false-positive controls, and source output standards.
  • Language-specific reference files define framework source locations, high-coverage candidate search terms, query-source shapes, language-specific APIs, and follow-up checks.
  • Do not report an issue solely because it resembles a reference case.
  • Prefer real code evidence over case similarity.

Graph and Taint Source Discovery Guidance

Use candidate names as search seeds, not proof. A candidate becomes a source point only when code evidence shows it can influence SQL values, SQL structure, raw fragments, query options, stored query metadata, or data-access helper behavior.

Candidate group A: entry and transport surfaces

Search for externally reachable or weakly trusted entry points that may carry SQL-relevant values:

  • HTTP route/controller annotations and handlers
  • GraphQL resolvers and variables
  • RPC/gRPC/WCF service methods
  • WebSocket and SignalR handlers
  • webhook handlers and partner callbacks
  • queue consumers, scheduled jobs, workflow runners, import jobs, and replay/admin tasks
  • Android exported components, content providers, deep links, WebView bridges, Binder/AIDL handlers, push callbacks, and WorkManager inputs
  • C++ socket, pipe, DBus, custom IPC, HTTP/RPC, and message-bus handlers
  • CLI/admin/report/export commands when arguments can be supplied by users, operators, or integrations

Candidate group B: SQL value and criteria sources

Search for values that may become bound or unbound SQL criteria:

  • q, query, keyword, search, term, name, username, email, status
  • id, ids, tenant, tenantId, accountId, userId, roleId, orgId
  • from, to, startDate, endDate, range, createdAfter, createdBefore
  • filters, criteria, conditions, rules, where, predicate, specification
  • include, exclude, tags, category, type, state, scope

Candidate group C: structural SQL selector sources

Search for values that may select SQL structure rather than only data values:

  • sort, sortBy, orderBy, order, direction, desc, asc
  • field, fields, column, columns, select, projection, groupBy, having
  • table, tableName, entity, model, schema, database, partition
  • operator, op, comparator, join, joinType, relation
  • limit, offset, page, pageSize, cursor, top, fetch, take, skip

Candidate group D: raw SQL fragment and template sources

Search for data that may become executable SQL text or SQL-like DSL:

  • sql, rawSql, querySql, nativeQuery, customQuery, reportSql
  • whereClause, orderClause, havingClause, joinClause, groupClause
  • condition, expression, filterExpression, searchExpression, dsl
  • template, queryTemplate, reportTemplate, dashboardQuery, savedQuery
  • StringBuilder, interpolation, concatenation, format strings, template expansion, and dynamic fragment joins

Candidate group E: ORM, query-builder, and wrapper input sources

Search for user or stored values passed into APIs that may hide SQL construction:

  • repository, DAO, mapper, manager, scope, specification, criteria, and query-service methods
  • raw helpers such as raw, whereRaw, orderByRaw, text, literal, nativeQuery, createNativeQuery
  • dynamic query builder options for filter, sort, group, select, table, limit, offset, and includes
  • stored procedure names, dynamic procedure arguments, and procedure options when procedures build SQL internally
  • report engines, analytics builders, dashboard builders, export helpers, and search backends that translate input into SQL

Candidate group F: stored and second-order SQL sources

Search for values written earlier and executed later:

  • saved filters, saved searches, saved queries, report templates, dashboard definitions, and admin query presets
  • imported CSV/Excel rows, uploaded metadata, sync data, webhook payloads, and partner records
  • queue payloads, scheduled job arguments, workflow state, retry/replay records, and cached query metadata
  • tenant-specific configuration, feature flags, custom fields, field mappings, and per-customer report definitions

Graph query recipes

Useful source-discovery combinations:

text
<entry candidate> + <filter/sort/field source> + <repository/DAO/query helper>
<entry candidate> + <raw SQL fragment source> + <SQL construction keyword>
<stored query source> + <worker/report/export entry> + <query builder/helper>
<structural selector source> + <ORDER BY/WHERE/LIMIT/OFFSET keyword> + <data access path>
<ORM raw-helper input> + <request/stored value> + <raw/native/text keyword>
<Android exported/content provider entry> + <selection/sort/projection source> + <SQLite/Room/ContentProvider API>
<C++ HTTP/RPC/IPC entry> + <std::string/sql/where/order source> + <native DB wrapper>

Prune candidates when code proves the value is fixed server-side, strictly allowlisted, mapped to a safe enum, safely bound as a value with no structural influence, or unrelated to SQL.


Source Dimensions

S1 Direct Query Value Sources

Direction: Identify request parameters, body fields, headers, cookies, route variables, GraphQL/RPC arguments, form values, uploaded metadata, import rows, and external payload values that may become SQL values or query criteria.

S2 Search, Filter, Sort, and Pagination Sources

Direction: Identify values that control search terms, filter keys, filter values, operators, sort fields, sort direction, page size, limit, offset, cursor values, report parameters, and list-query behavior.

S3 Structural SQL Selection Sources

Direction: Identify values that select table names, column names, select fields, group-by fields, join targets, SQL functions, operators, query templates, report types, tenant schemas, or data partitions.

S4 Raw Fragment and Query Template Sources

Direction: Identify values that are concatenated, interpolated, formatted, templated, joined, stored, or expanded into SQL strings, WHERE fragments, ORDER BY fragments, raw clauses, native queries, stored procedure SQL, or report-query templates.

S5 ORM, Query Builder, and Helper Input Sources

Direction: Identify values passed into ORM raw APIs, query builder raw helpers, repository methods, DAO helpers, specification builders, dynamic criteria objects, MyBatis ${} substitutions, SQLAlchemy text(...), Django .raw(...), Laravel raw helpers, and wrapper methods that later produce SQL.

S6 Stored, Second-Order, and Alternate Query Sources

Direction: Identify saved filters, report templates, dashboard definitions, stored search rules, admin-configured raw conditions, queue payloads, scheduled job arguments, replay data, cached query metadata, and background worker inputs that may later influence SQL.


High-Priority Source Targets

Prioritize these source targets first when present:

  • login and authentication query inputs
  • search, filter, sort, and pageable list endpoints
  • export, report, dashboard, analytics, and admin query features
  • raw SQL helper arguments
  • repository or DAO methods that accept request-derived strings
  • ORM raw-query and query-builder raw-fragment helpers
  • dynamic ORDER BY, field selection, table selection, pagination, and filter controls
  • saved filters, saved searches, report templates, and admin-configured query metadata
  • background jobs or workflows that build SQL from stored or queued data
  • legacy code paths and alternate HTTP methods for the same data-access feature

Output Requirements

Produce source points in a structured, evidence-driven format.

For every source point, use the following structure:

Source Point:

  • Dimension:
  • Source Type:
  • Language / Framework:
  • Confidence:

Entry Point

  • ...

Source Location

  • ...

Source Value

  • ...

Trust Boundary

  • Client-controlled / External-system-controlled / Stored attacker-influenced / Server-trusted / Mixed / Unclear

Downstream SQL Relevance

  • ...

Evidence

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

Audit Relevance

  • ...

Verdict

  • Confirmed source / Suspected source / Not enough evidence / Probably irrelevant

Recommended Follow-up

  • ...

Final Response Style

When summarizing the source audit result:

  • Group source points by dimension when useful.
  • Clearly separate confirmed source points from suspected source points.
  • Explicitly state uncertainty where origin, query construction, query builder behavior, binding, allowlists, wrapper logic, stored value writers, or execution constraints may exist outside the visible code.
  • Keep reasoning concise but evidence-based.
  • Do not inflate a source point into a vulnerability without downstream query and missing-control evidence.
  • Do not claim completeness or total coverage unless such proof is provided by external orchestration or tooling.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي SQL Injection Source Check؟

Use this skill to identify source points for SQL injection audits, including request parameters, search filters, sort and pagination controls, raw SQL fragments, ORM raw-helper inputs, dynamic table and column selectors, report templates, saved filters, imported rows, stored query metadata, Android local SQL inputs, IPC/RPC/job/query payloads, and framework-specific SQL source locations in Java, Android, C#/.NET, C++, Python, and PHP applications.

لماذا تستخدم SQL Injection Source Check على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة SQL Injection Source Check عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت SQL Injection Source Check في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Source_Audit_SKILL/sql-injection-check. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام SQL Injection Source Check؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع SQL Injection Source Check؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام SQL Injection Source Check معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي SQL Injection Source Check مجانية؟

نشرها bazhahei123 على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇