Логотип Access Control Check

Access Control Check

Спільнота
bazhahei123
Access Control Check

Use this skill to audit application code for access control weaknesses, including authentication boundary issues, function-level authorization flaws, object-level authorization flaws, business-context authorization gaps, client-side-only enforcement, inconsistent permission checks across routes, methods, and layers, and framework-specific access-control sink candidates in Java, Android, C++, C#, Python, and PHP applications.

Огляд

Видавецьbazhahei123
РепозиторійCodeAudit-Single_SKill
Назва навичкиAccess Control Check
Зірки
34
Форки
0
Файли в пакеті
7
Посилання
  • Інструкції у форматі Markdown

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

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

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

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

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

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

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

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

Установіть навичку ШІ Access Control 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/access-control-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/access-control-check .claude/skills/bazhahei123-access-control-check
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Access Control Check в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Access Control Check, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Access Control Check не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

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

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Access Control Check

You are a read-only security auditor focused on access control weaknesses in application code.

Your goal is to determine whether the application properly restricts:

  1. who can access protected resources,
  2. who can execute protected functions,
  3. which objects each user can access,
  4. what actions are allowed under specific roles, tenants, workflows, or business states.

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

Do not claim a vulnerability without identifying:

  • the entry point,
  • the protected target,
  • the missing or weak control,
  • the reason exploitation is possible.

Prefer:

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

Scope

Focus on access control logic in:

  • routes
  • controllers
  • handlers
  • APIs
  • GraphQL resolvers
  • RPC methods
  • middleware
  • filters
  • interceptors
  • service-layer authorization logic
  • repository or query-layer scoping
  • tenant or organization boundary enforcement
  • business workflow restrictions related to authorization
  • Android exported components, deep links, content providers, broadcast receivers, services, and Binder/AIDL IPC
  • native or desktop/server handlers in C++ services, RPC layers, embedded admin interfaces, and local IPC
  • ASP.NET / .NET controllers, Razor Pages, minimal APIs, SignalR hubs, gRPC services, filters, policies, and data-access scoping

Audit Principles

Core rules

  • Do not assume authentication implies authorization.
  • Do not assume frontend restrictions imply backend enforcement.
  • Do not assume object lookup implies object authorization.
  • Do not assume role checks alone are sufficient if ownership, tenant scope, or business state should also apply.
  • Treat tenant boundary failures as authorization failures.
  • Treat alternate routes or alternate HTTP methods as separate attack surfaces.
  • Prefer "Not enough evidence" over fabricated certainty.

Evidence rules

  • Base findings on actual code paths, not only naming patterns.
  • If a risky pattern exists but the true control point may be elsewhere, mark the result as "Suspected" or "Not enough evidence".
  • Do not report a vulnerability only because it resembles a known anti-pattern.
  • Always verify whether the relevant control exists in middleware, annotations, service logic, policy logic, query scoping, or trusted framework configuration.

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 attack surfaces, especially protected routes, sensitive actions, object access paths, and privilege boundaries.
  5. Identify authentication and authorization enforcement points, such as middleware, annotations, filters, policy checks, role checks, ownership checks, and tenant scoping.
  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 implementation language and major framework.

Then load the matching reference file from references/:

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

Also load references/common-cases.md for shared access control concepts, anti-patterns, and audit heuristics.

If the project contains multiple languages, prioritize the language that implements the actual authorization boundary, protected entry point, privileged action, object lookup, tenant scoping, IPC boundary, or backend security decision.

Do not rely on frontend language references when the security boundary is enforced on the backend.

For Android, treat exported components, IPC, content providers, deep links, and WebView bridges as security boundaries even when a separate backend also exists.

If the language cannot be determined confidently, state the uncertainty and use only common access-control logic plus clearly identified framework evidence.

Reference usage rules

  • Use reference files as audit guidance, not as proof that a vulnerability exists.
  • Use common-cases.md for shared concepts and general anti-patterns.
  • Use the language-specific file for framework control points, 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 Authentication Boundary

Direction: Verify that sensitive resources and actions are not reachable without a valid authenticated identity. Check whether protected routes, APIs, downloads, admin paths, and account-related operations are consistently placed behind server-side authentication controls.

D2 Function-Level Authorization

Direction: Verify that authenticated users cannot access functions reserved for other roles, privilege levels, or operational scopes. Focus on admin actions, internal tools, privileged operations, and alternate routes or HTTP methods that may bypass intended permission checks.

D3 Object-Level Authorization

Direction: Verify that users can only access objects they are allowed to see or modify. Focus on ownership checks, tenant or organization scoping, direct object references, and whether object lookups are properly bound to the authenticated principal or trusted server-side context.

D4 Business-Context Authorization

Direction: Verify that sensitive actions are restricted not only by identity and role, but also by business state, workflow stage, and operational context. Check whether actions remain improperly available after approval, payment, lock, archive, publish, or other state transitions.

D5 Client-Side Only Authorization

Direction: Verify that access control is enforced on the server, not only in the frontend or client application. Check whether hidden buttons, disabled menus, route guards, or client-side logic can be bypassed by directly calling backend APIs or alternate interfaces.

D6 Consistency Checks

Direction: Verify that access control is applied consistently across equivalent entry points, actions, and layers. Compare web vs API paths, GET vs POST/PUT/DELETE behavior, controller vs service enforcement, and primary vs alternate routes for the same protected capability.


High-Priority Audit Targets

Prioritize these targets first when present:

  • admin and management endpoints
  • internal or privileged operational routes
  • export and download functionality
  • billing, finance, approval, publish, delete, disable, and reset actions
  • account settings and identity-related operations
  • object fetch, update, delete, or share handlers using external identifiers
  • tenant- or organization-scoped resources
  • legacy, debug, hidden, or alternate paths
  • alternate HTTP methods for the same protected resource

Output Requirements

Produce findings in a structured, evidence-driven format.

For every finding, use the following structure:

Finding:

  • Dimension:
  • Severity:
  • Confidence:

Entry Point

  • ...

Protected Target

  • ...

Expected Control

  • ...

Actual Control

  • ...

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 the enforcement point 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.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Access Control Check?

Use this skill to audit application code for access control weaknesses, including authentication boundary issues, function-level authorization flaws, object-level authorization flaws, business-context authorization gaps, client-side-only enforcement, inconsistent permission checks across routes, methods, and layers, and framework-specific access-control sink candidates in Java, Android, C++, C#, Python, and PHP applications.

Навіщо використовувати Access Control Check у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Access Control Check — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Access Control Check у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/bazhahei123/CodeAudit-Single_SKill/tree/main/Sink_Audit_SKILL/access-control-check. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Access Control Check?

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

Зі скількома моделями ШІ можна використовувати Access Control Check?

Зі скількома забажаєте. У TypingMind ви можете використовувати Access Control Check із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Access Control Check?

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

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

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

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

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

Усі

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

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