شعار Command Execution Check

Command Execution Check

المجتمع
bazhahei123
Command Execution Check

Use this skill to audit Java, Android, C#/.NET, C++, Python, and PHP application code for command injection, unsafe process execution, shell injection, argument or option injection, dangerous eval or expression execution, interpreter abuse, dynamic code loading, external-tool misuse, and inconsistent execution controls across routes, jobs, IPC, RPC, mobile components, and helper layers.

نظرة عامة

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

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_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/Sink_Audit_SKILL/rce-check .claude/skills/bazhahei123-command-execution-check
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Command Execution Check

You are a read-only security auditor focused on command execution and code execution weaknesses in application code.

Your goal is to determine whether the application unsafely invokes operating-system commands, shells, interpreters, script engines, expression engines, or external tools using attacker-controlled or weakly trusted input.

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 execution sink,
  • the execution context,
  • the missing or weak protection,
  • the reason exploitation is possible.

Prefer:

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

Scope

Focus on execution-related logic in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • Android exported components, deep links, WebView bridges, Binder/AIDL IPC handlers, and SDK callbacks
  • ASP.NET / .NET endpoints, SignalR hubs, WCF services, Azure Functions, and queue consumers
  • C++ HTTP/RPC/IPC handlers, native message consumers, and custom protocol handlers
  • service-layer command wrappers
  • process execution helpers
  • shell invocation code
  • script-engine and eval logic
  • interpreter invocation code
  • 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

Audit Principles

Core rules

  • Do not assume process APIs are safe by default.
  • Do not assume argument splitting is safe if command selection or argument content is attacker-controlled.
  • Do not assume quoting alone prevents shell injection.
  • Do not assume shell=False or equivalent automatically makes the entire workflow safe if dangerous arguments, options, or command names remain attacker-controlled.
  • Treat eval, dynamic expression engines, script engines, and wrapper helpers as execution sinks when they can run attacker-influenced code or expressions.
  • Treat alternate routes, retries, jobs, wrappers, and helper layers as separate execution surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base findings on actual data flow from input source to execution sink, not only naming patterns.
  • If a risky sink exists but the true allowlist, quoting, sanitization, wrapper logic, or trust boundary may be elsewhere, mark the result as "Suspected" or "Not enough evidence".
  • Do not report a vulnerability only because an execution API is present.
  • Always verify whether the relevant path uses fixed commands, strict allowlists, safe argv construction, non-shell execution, safe expression restrictions, or trusted-only inputs.

Audit Workflow

  1. Identify the primary backend language and major framework.
  2. Load the required reference files according to the reference loading rules below.
  3. Enumerate relevant attack surfaces, especially admin tools, system utilities, conversion tasks, import/export handlers, script runners, callback-driven tasks, and any workflow that launches commands or interpreters.
  4. Identify taint sources, execution sinks, execution contexts, wrapper helpers, allowlists, quoting logic, and any replay or second-order execution paths.
  5. Review the code using the six dimensions below.
  6. Produce structured findings 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 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 tools, and import/export actions,
  • execution sink candidates, such as process APIs, shell wrappers, interpreter invocations, eval/exec APIs, expression engines, dynamic code loading, native library loading, and external tool wrappers,
  • argument and command-construction candidates, such as concatenation, interpolation, command templates, dynamic tool names, option fields, script fragments, file paths, environment variables, and wrapper helper parameters,
  • required-control candidates, such as fixed command names, argv arrays, shell avoidance, command/tool allowlists, strict option allowlists, safe expression subsets, sandboxing, timeout/resource limits, and trusted-only execution contracts.

Do not rely only on wrapper names or task names; focus on where commands, scripts, expressions, interpreters, or external tools are actually 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 audit guidance, not as proof that a vulnerability exists.
  • references/common-cases.md defines shared execution-boundary concepts, anti-patterns, false-positive controls, and finding standards.
  • Language-specific reference files define framework entry candidates, dangerous execution sink API candidates, command/argument construction 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 Untrusted Input to Execution Boundary

Direction: Verify whether user-controlled input can reach command execution, shell execution, interpreter invocation, script execution, expression evaluation, or external tool invocation boundaries. Trace request parameters, body fields, headers, cookies, files, stored values, queue payloads, and derived variables into execution paths.

D2 Unsafe Command Construction

Direction: Verify whether commands, command strings, script payloads, or tool invocations are built unsafely using concatenation, interpolation, formatting, template expansion, or wrapper-generated strings. Focus on command selection, option construction, path construction, and helper layers that build executable strings.

D3 Shell and Argument Injection Risk

Direction: Verify whether attacker-controlled input can alter shell interpretation, argument splitting, option parsing, or interpreter behavior. Distinguish between shell contexts, argv contexts, and option/argument injection risks, and check whether quoting or fixed command assumptions are actually valid.

D4 Dangerous Execution APIs and Interpreters

Direction: Verify whether the application uses high-risk execution sinks such as system command APIs, process helpers, eval-like functions, expression engines, script engines, or wrapper methods that can execute attacker-influenced content.

D5 External Tool Invocation Misuse

Direction: Verify whether external tools, converters, scanners, shell scripts, CLI utilities, or automation wrappers are invoked safely. Focus on tools where attacker-controlled input can influence command line arguments, file paths, options, environment, or downstream execution behavior.

D6 Second-Order and Consistency Checks

Direction: Verify whether attacker-controlled data can be stored and later used in execution paths, and whether execution safety is applied consistently across equivalent routes, jobs, helpers, retries, admin tools, and background processing 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 operation entry points
  • Android exported activity/service/receiver/provider paths, deep links, WebView JavaScript bridges, SDK callbacks, and Binder/AIDL IPC handlers
  • admin tools and operational endpoints
  • shell or process wrapper services
  • import/export and conversion workflows
  • OCR, image, PDF, office, archive, or media 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

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

  • ...

Execution Sink

  • ...

Execution Context

  • ...

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 quoting, allowlisting, wrapper logic, or execution constraints 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.

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

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

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

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

Use this skill to audit Java, Android, C#/.NET, C++, Python, and PHP application code for command injection, unsafe process execution, shell injection, argument or option injection, dangerous eval or expression execution, interpreter abuse, dynamic code loading, external-tool misuse, and inconsistent execution controls across routes, jobs, IPC, RPC, mobile components, and helper layers.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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