Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

access-control

БесплатноБез исполняемых скриптовНе проверен

Least privilege principle, RBAC, authentication, authorization, and session management following Hack23 Access Control Policy

Hack23от Hack23★ 15 звёзд на GitHub

Об этом скилле

Access Control Skill

Purpose

This skill enforces access control requirements as defined in the Hack23 ISMS Access Control Policy. It ensures that all systems implement proper authentication, authorization, and session management based on the principle of least privilege.

Rules

Principle of Least Privilege

MUST:

  • Grant minimum permissions necessary to perform job functions
  • Default to deny access (allowlist approach)
  • Separate duties for critical functions (no single person has complete control)
  • Regularly review and revoke unnecessary permissions
  • Document permission requirements for each role
  • Implement time-limited access for temporary needs

MUST NOT:

  • Grant administrative privileges by default
  • Share user accounts between multiple people
  • Use shared service accounts without audit trails
  • Grant permanent access when temporary access is sufficient
  • Allow users to escalate their own privileges

Role-Based Access Control (RBAC)

MUST:

  • Define roles based on job functions
  • Assign permissions to roles, not individual users
  • Document role definitions and their permissions
  • Implement role hierarchy where appropriate
  • Enforce separation of duties through role conflicts
  • Review role assignments quarterly

Roles for Hack23 Projects:

  • Public: Unauthenticated users (read-only access to public content)
  • User: Authenticated regular users (basic functionality)
  • Contributor: Code contributors (read/write to repositories)
  • Maintainer: Project maintainers (merge, release, moderate)
  • Administrator: System administrators (full control, user management)
  • Security Officer: Security team (audit logs, security settings)

MUST NOT:

  • Create user-specific permissions (use roles instead)
  • Assign multiple conflicting roles to same user
  • Allow role self-assignment without approval
  • Create overly broad roles that violate least privilege

Authentication Requirements

MUST:

  • Require authentication for all non-public resources
  • Implement multi-factor authentication (MFA) for:
    • Administrative accounts
    • Access to Confidential or Restricted data
    • Remote access to internal systems
    • Privileged operations (deployments, configuration changes)
  • Enforce strong password requirements:
    • Minimum 12 characters
    • At least one uppercase, lowercase, number, symbol
    • No common passwords (check against known breached passwords)
    • No reuse of last 5 passwords
  • Implement account lockout after 5 failed attempts
  • Require password change every 90 days for privileged accounts
  • Terminate sessions after 30 minutes of inactivity
  • Support passwordless authentication (FIDO2/WebAuthn) where possible

MUST NOT:

  • Use basic authentication over unencrypted connections
  • Store passwords in plaintext or reversible encryption
  • Allow anonymous access to sensitive resources
  • Use weak hashing algorithms (MD5, SHA-1) for passwords
  • Implement custom authentication without security review
  • Bypass authentication for "trusted" networks

Authorization Requirements

MUST:

  • Verify authorization at every access point
  • Check permissions server-side (never rely on client-side checks)
  • Validate user permissions for each resource accessed
  • Implement attribute-based access control (ABAC) for complex policies
  • Deny access by default (fail closed)
  • Log all authorization failures
  • Enforce authorization consistently across all interfaces (web, API, CLI)

MUST NOT:

  • Assume authentication implies authorization
  • Use client-side authorization checks as primary control
  • Grant access based solely on URL/endpoint knowledge
  • Skip authorization checks for internal APIs
  • Use security through obscurity (hidden URLs don't require authentication)

Session Management

MUST:

  • Generate cryptographically random session IDs (minimum 128 bits entropy)
  • Set HTTPOnly flag on session cookies (prevent JavaScript access)
  • Set Secure flag on session cookies (HTTPS only)
  • Set SameSite=Strict or Lax on session cookies (CSRF protection)
  • Implement session timeout (30 minutes inactivity, 8 hours absolute)
  • Regenerate session ID after authentication
  • Invalidate sessions on logout
  • Store session data securely (encrypted, integrity-protected)
  • Implement concurrent session limits
  • Provide users visibility into active sessions

MUST NOT:

  • Include session IDs in URLs
  • Use predictable session IDs
  • Transmit session cookies over unencrypted connections
  • Store sensitive data in client-side storage (localStorage, sessionStorage)
  • Allow session fixation attacks
  • Share sessions across different security contexts

API Authentication

MUST:

  • Require authentication for all non-public API endpoints
  • Use OAuth 2.0 or OpenID Connect for third-party integrations
  • Implement API key rotation (at least annually)
  • Rate limit API requests to prevent abuse
  • Validate API tokens
Полный SKILL.md на GitHub

Установить access-control в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл access-control?

Least privilege principle, RBAC, authentication, authorization, and session management following Hack23 Access Control Policy

Как установить скилл access-control?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл access-control запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить access-control с