Логотип 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, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 7

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем bazhahei123. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Command Execution Check у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/rce-check
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
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?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте 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?

Навичку опубліковано на GitHub: bazhahei123. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇