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★ 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
- 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.
- Read the closest guardrail before deciding severity:
SECURITY.mdfor supported and unsupported deployment posture.AGENTS.mdfor repo runbook constraints and shared-core approval rules.tools/security_check.pyfor user-facing security diagnostics.tools/workflow_parity.pyand release workflows for CI/publish coverage.
- Reproduce or prove the issue with the smallest command that exercises the risk.
- 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 fromapp_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 requirecandidate.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_outvalues through the canonical resolver before use; never skip validation merely becausePath.is_absolute()is true. Beforermtree, 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 Pathis the worker-side mount target and may intentionally differ from the scheduler-sideAGI_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.envmutation, or SSHFS commands. Allow dedicated descendants such as/mnt/agilab, not the ambient root/mntitself. Persist cluster-mode environment values only after the pre-mounted-share check or
Установить 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic