شعار Command Execution Source Check

Command Execution Source Check

المجتمع
bazhahei123
Command Execution Source Check

Use this skill to identify source points for command execution and code execution audits, including command names, shell strings, argv values, flags, options, file paths, environment values, working directories, script content, eval expressions, external tool inputs, queued task payloads, stored command templates, mobile/IPC/RPC execution inputs, and framework-specific execution source locations in Java, Android, C#/.NET, C++, Python, and PHP applications.

نظرة عامة

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

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

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

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

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

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

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

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

التثبيت

ثبّت مهارة الذكاء الاصطناعي Command Execution 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/rce-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/rce-check .claude/skills/bazhahei123-command-execution-source-check
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Command Execution Source Check

You are a read-only security auditor focused on identifying source points that are relevant to command execution and code execution review.

Your goal is to determine where execution-relevant data enters the application and how it is carried toward operating-system commands, shells, process builders, interpreters, script engines, expression engines, external tool wrappers, automation helpers, queued jobs, and stored task definitions.

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 reaches an execution sink with missing or weak fixed-command, allowlist, argv, shell, quoting, expression, or wrapper controls.

Do not record a source point without identifying:

  • the entry point,
  • the source value or execution-relevant payload,
  • whether the value is client-controlled, external-system-controlled, stored attacker-influenced, server-trusted, mixed, or unclear,
  • the downstream execution relevance,
  • the code evidence that connects the source to command construction, argument construction, tool selection, script execution, eval/expression execution, or execution wrappers.

Prefer:

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

Scope

Focus on execution source points in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • Android exported components, deep links, WebView bridges, Binder/AIDL handlers, WorkManager jobs, content providers, SDK callbacks, and mobile automation or diagnostic features that receive execution-relevant values
  • ASP.NET / .NET controllers, minimal APIs, Razor Pages, SignalR hubs, gRPC services, WCF services, Azure Functions, queue consumers, and worker inputs
  • C++ HTTP/RPC/IPC/native service handlers, CGI/FastCGI entry points, plugin callbacks, custom protocol frames, CLI/admin commands, and native automation jobs
  • service-layer command wrappers
  • process execution helpers
  • shell invocation code
  • script-engine and eval logic
  • interpreter invocation code
  • expression and rule engines
  • external tool wrappers
  • queue consumers and background jobs
  • config-driven or stored command execution paths
  • framework and library features that can trigger code or command execution
  • admin, diagnostics, replay, batch, and operational tooling

Audit Principles

Core rules

  • Do not treat a source point as a vulnerability by itself.
  • Do not assume shell=False, argv arrays, or process APIs make every execution source safe.
  • Do not assume quoting or escaping makes a source trusted.
  • Do not assume a value is safe because it is a file path, mode, option, template, stored task, queue payload, or admin-only parameter.
  • Treat request path, query, body, header, cookie, GraphQL variable, RPC argument, form value, uploaded filename, 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 stored task definitions, stored command templates, stored expressions, saved options, and cached job payloads as stored attacker-influenced when an attacker can write or influence them earlier.
  • Treat command name, tool name, subcommand, option, flag, script content, expression text, environment value, and working directory 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, quoted, escaped, split, constrained, or overwritten elsewhere, mark the source as "Suspected" or "Not enough evidence".
  • Do not classify an execution source as trusted only because it is passed through a 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 and major framework.
  2. Load references/common-cases.md.
  3. Load the matching language reference file from references/.
  4. Enumerate relevant source surfaces, especially admin tools, system utilities, conversion tasks, import/export handlers, script runners, expression/rule engines, callback-driven tasks, queued jobs, and workflows that launch commands or interpreters.
  5. Identify execution-relevant source points, such as command names, tool names, subcommands, shell strings, argv values, option values, file paths, environment variables, working directories, script bodies, expressions, templates, and stored task payloads.
  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 execution relevance, such as command string construction, argv construction, process launch, shell invocation, interpreter invocation, eval/expression evaluation, external tool execution, or wrapper calls.
  8. Review the code using the six source dimensions below.
  9. 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-cases.md
  • Android -> references/android-cases.md
  • C# / .NET -> references/csharp-cases.md
  • C++ / native services -> references/cpp-cases.md
  • Python -> references/python-cases.md
  • PHP -> references/php-cases.md

If the project contains multiple languages, prioritize the language and framework that implement the actual execution boundary.

For Android, prioritize mobile boundaries that can introduce command names, tool/action selectors, shell fragments, script content, interpreter arguments, file paths, environment-like values, WebView bridge inputs, IPC parcel fields, or WorkManager input data that later reaches an execution wrapper or backend execution API.

For C#/.NET and C++, prioritize server, RPC, IPC, queue, worker, plugin, native automation, process-wrapper, expression-engine, and external-tool layers that receive command, script, argv, option, environment, working-directory, or stored task values.

Do not rely only on wrapper names or task names; focus on where command names, arguments, scripts, expressions, interpreters, or external tools are actually selected, constructed, or invoked.

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 execution source concepts, propagation patterns, trust boundaries, false-positive controls, and source output standards.
  • Language-specific reference files define framework source locations, execution-relevant source shapes, language-specific APIs, and follow-up checks.
  • Use the high-coverage candidate inventories in each reference as graph-search seed lists for entry points, command/tool selectors, shell/script/eval fields, argv/option/environment values, stored second-order execution sources, and downstream execution-boundary mapping.
  • Do not report an issue solely because it resembles a reference case.
  • Prefer real code evidence over case similarity.

Graph / Taint Source Discovery Workflow

When the audit uses a graph database, code property graph, semantic index, or taint-tracking pipeline, seed discovery with candidate groups instead of relying on one exact source name.

Candidate group A: entry points

Search for code locations that receive execution-relevant data:

  • HTTP route annotations, route tables, controller methods, handlers, servlet mappings, minimal APIs, and legacy scripts
  • GraphQL resolvers and mutations
  • RPC, gRPC, WCF, SOAP, Thrift, WebSocket, queue, worker, and message handlers
  • Android activities, services, broadcast receivers, content providers, deep links, WebView bridge methods, Binder/AIDL handlers, and WorkManager jobs
  • C++ HTTP/RPC/IPC handlers, native plugin callbacks, CGI/FastCGI handlers, CLI/admin tools, and background automation jobs

Candidate group B: command, tool, action, and interpreter selectors

Search for values likely to select what gets executed:

  • cmd, command, commandName, tool, toolName, executable, program, binary, process
  • script, scriptName, interpreter, runtime, engine, plugin, module, class, method, function
  • action, operation, mode, subcommand, task, job, workflow, runner, handler

Candidate group C: argument, option, path, and environment values

Search for values that can alter execution behavior:

  • arg, args, argv, arguments, param, parameters, option, options, flag, flags, switch
  • host, target, url, uri, ip, domain, file, filename, path, input, output, config
  • env, environment, cwd, workDir, workingDir, stdin, inputStream, payload, template

Candidate group D: shell, script, eval, and expression text

Search for text that may be interpreted:

  • shell, shellCommand, commandLine, commandTemplate, template, scriptBody, sourceCode, code
  • eval, expression, formula, rule, spel, ognl, mvel, jexl, groovy, python, php, powershell, bash, cmd
  • debug, diagnostic, adminEval, runScript, executeScript, automation

Candidate group E: indirect and second-order execution sources

Search for execution-relevant values from:

  • database task definitions, saved automations, command templates, scheduler configs, cron metadata, replay/admin payloads
  • queue messages, job args, failed jobs, retry payloads, webhook payloads, provider events, internal service responses
  • uploaded filenames and metadata, imported rows, config files, plugin manifests, scripts, temporary files, generated files

Candidate group F: downstream relevance mapping

Keep only candidates connected to execution-relevant behavior:

  • command construction, argv construction, shell string construction, script generation, interpreter invocation
  • eval/expression/script engine input
  • process launch wrappers, external CLI wrappers, automation runners, diagnostic utilities
  • environment map construction, working-directory selection, stdin/config file creation
  • stored task loading, queue worker execution, replay/admin execution paths

Source Dimensions

S1 User-Controlled Execution Input Sources

Direction: Identify request parameters, body fields, headers, cookies, uploaded filenames, form fields, GraphQL/RPC arguments, import rows, and external payload values that may influence commands, scripts, expressions, tools, or automation tasks.

S2 Command, Tool, Script, and Interpreter Selection Sources

Direction: Identify values that select command names, executable paths, tool names, subcommands, scripts, interpreters, plugins, actions, modes, or wrapper targets.

S3 Shell String, Template, and Code Fragment Sources

Direction: Identify values that are concatenated, interpolated, formatted, templated, joined, stored, or expanded into shell strings, command templates, script bodies, eval content, expression text, or rule-engine input.

S4 Argument, Option, File Path, Environment, and Working Directory Sources

Direction: Identify values that become argv entries, flags, options, file paths, output paths, input paths, environment variables, working directories, stdin, config files, or tool-specific behavior controls.

S5 Eval, Expression Engine, and Script Content Sources

Direction: Identify expressions, formulas, rules, dynamic code, template snippets, script payloads, admin/debug evaluation input, and interpreter-fed content.

S6 Stored, Queue, Job, and Alternate Execution Sources

Direction: Identify stored command templates, task definitions, queue payloads, job arguments, retry/replay data, config-driven execution values, admin/ops paths, and background worker inputs that may later influence execution.


High-Priority Source Targets

Prioritize these source targets first when present:

  • admin tools and operational endpoints
  • shell or process wrapper services
  • import/export and conversion workflows
  • OCR, image, PDF, office, archive, media, and document processing helpers
  • notification and automation scripts
  • system diagnostic or network utility features
  • script-engine or expression-evaluation features
  • queue consumers and replay tools
  • stored task definitions, templates, or command metadata
  • legacy execution helpers and alternate code paths to the same tool
  • external tool wrappers that accept user-controlled paths, options, or modes

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 Execution 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, command construction, argv construction, shell use, allowlists, quoting, wrapper logic, 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 sink and missing-control evidence.
  • Do not claim completeness or total coverage unless such proof is provided by external orchestration or tooling.

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

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

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

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

Use this skill to identify source points for command execution and code execution audits, including command names, shell strings, argv values, flags, options, file paths, environment values, working directories, script content, eval expressions, external tool inputs, queued task payloads, stored command templates, mobile/IPC/RPC execution inputs, and framework-specific execution source locations in Java, Android, C#/.NET, C++, Python, and PHP applications.

لماذا تستخدم Command Execution Source Check على TypingMind؟

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

كيف أثبّت Command Execution Source Check في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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