Command Palette

Search for a command to run...

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

agilab-security-review-patterns

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

Review AGILAB changes for security hardening risks. Use when code, docs, or workflows touch installers, native Python UI exposure, cluster/SSH/share behavior…

ThalesGroupот ThalesGroup★ 23 звезды на GitHub

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

AGILAB Security Review Patterns

Use this skill to review AGILAB changes through a security-hardening lens before merge, release, or public documentation. It is a review workflow, not a pentest claim. Keep findings tied to concrete files, commands, and user impact.

Start Here

  1. Inspect the diff and classify the touched security surface:
    • UI exposure: native Python UI host, settings page, routes, auth/TLS assumptions.
    • Execution: apps, notebooks, generated code, service tasks, autorun paths.
    • Cluster: SSH, Dask, shared folders, remote accounts, worker deployment.
    • Secrets: .env, CLI args, logs, session state, run evidence, artifacts.
    • Supply chain: pyproject.toml, installers, PyPI workflows, external repos.
    • LLM connectors: local/remote models, API capability checks, prompt injection.
  2. Read the closest guardrail before deciding severity:
    • SECURITY.md for supported and unsupported deployment posture.
    • AGENTS.md for repo runbook constraints and shared-core approval rules.
    • tools/security_check.py for user-facing security diagnostics.
    • tools/workflow_parity.py and release workflows for CI/publish coverage.
  3. Reproduce or prove the issue with the smallest command that exercises the risk.
  4. Prefer fail-closed behavior over silent fallback, especially for cluster, public UI bind, secrets, dependency resolution, and publication flows.

Review Checks

  • Insecure defaults: public bind, permissive network access, autorun, remote execution, or relaxed validation must require explicit opt-in.
  • Trust boundaries: do not treat external apps, notebooks, generated snippets, PyPI packages, Hugging Face artifacts, or cluster workers as trusted just because they are convenient.
  • Secrets: no secrets in tracked files, generated docs, logs, screenshots, CLI examples, exception text, or persisted app settings.
  • Serialization and tasks: reject unsafe legacy formats instead of loading them. Prefer JSON schemas and explicit validation.
  • Pickle/model loading: require a trusted root plus manifest/hash verification before loading pickle-backed models or caches. A production caller being safe is not enough when the helper default can be reused unsafely; make missing trust context fail closed and add a regression for that default.
  • Cluster shares: cluster mode must require a usable shared path distinct from local-only paths; do not silently degrade to local execution.
  • Share-root path confinement: app UI fields such as data_in, data_out, inbox directories, service configs, and workflow artifact paths are untrusted input even when they come from app_args_form.py. Do not let absolute paths pass through verbatim, and do not accept .. traversal after a simple join. The shared resolver layer should expand and resolve the share root and candidate path, then require candidate.is_relative_to(share_root); app-local forms should only add defaults or display helpers unless the app has a genuinely local path contract. When hardening a generic resolver, sweep sibling forms for settings paths and artifact-root joins that depend on CWD or allow an absolute target component to replace the intended export root.
  • Worker-side revalidation and destructive resets: manager or UI validation is not a worker trust boundary. Workers must pass relative and absolute data_in/data_out values through the canonical resolver before use; never skip validation merely because Path.is_absolute() is true. Before rmtree, replacement, or reset, require a guarded reset helper that rejects the share/workflow root itself as well as paths outside it, including case-variant or symlink spellings that alias the root on the active filesystem. Treat a physical-share input fallback as read-only: outputs must remain under the active workflow root, and no reset target may overlap a protected input tree or source file in either direction. Regress an absolute sibling escape, data_out='.', input/output ancestor and descendant overlap, physical-input fallback, and a platform-supported alias of the root with reset enabled.
  • Remote worker mount targets: Workers Data Path is the worker-side mount target and may intentionally differ from the scheduler-side AGI_CLUSTER_SHARE (including an explicit POSIX mount such as /mnt/agilab). Do not incorrectly confine it beneath the scheduler's local path. Validate the target as a root selection instead: reject parent traversal, NULs, filesystem-root, worker-home-root, and exact sensitive operating-system-root spellings, drive-relative paths, and unsupported Windows/UNC forms before local directory creation, form-state persistence, remote .env mutation, or SSHFS commands. Allow dedicated descendants such as /mnt/agilab, not the ambient root /mnt itself. Persist cluster-mode environment values only after the pre-mounted-share check or
Полный SKILL.md на GitHub

Установить agilab-security-review-patterns в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл agilab-security-review-patterns?

Review AGILAB changes for security hardening risks. Use when code, docs, or workflows touch installers, native Python UI exposure, cluster/SSH/share behavior, app execution, notebooks, LLM connectors, secrets, PyPI/GitHub/Hugging Face publishing, dependency policy, or external repositories.

Как установить скилл agilab-security-review-patterns?

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

Скилл agilab-security-review-patterns запускает скрипты?

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

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

Сравнить agilab-security-review-patterns с