Command Palette

Search for a command to run...

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

agentic-workflow-security

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

5-layer defense-in-depth security for GitHub Agentic Workflows - safe outputs, threat detection, AWF firewall, and zero-trust patterns

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

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

🔒 Agentic Workflow Security Skill

Purpose

Comprehensive security guidance for GitHub Agentic Workflows implementing the official 5-layer defense-in-depth architecture: read-only tokens, zero secrets in agent, containerized execution with Agent Workflow Firewall (AWF), safe outputs with guardrails, and agentic threat detection.

When to Use

Apply this skill when:

  • Designing secure agentic workflows
  • Configuring safe-inputs, safe-outputs, and threat detection
  • Setting up network firewall rules (AWF)
  • Implementing integrity filtering for public repositories
  • Responding to security incidents in agentic workflows

Rules

5-Layer Defense-in-Depth Architecture

MUST implement all five official security layers:

  1. Read-only tokens — Agent receives only read-scoped GitHub token; cannot push, create PRs, or delete files
  2. Zero secrets in agent — Write tokens and API keys exist only in separate, isolated post-agent jobs
  3. Containerized with AWF — Agent Workflow Firewall routes all outbound traffic through Squid proxy with domain allowlist; kernel-level blocking
  4. Safe outputs with guardrails — Agent produces structured artifacts; separate gated job applies only explicitly permitted actions with hard limits
  5. Agentic threat detection — AI-powered scan checks for prompt injection, leaked credentials, and malicious code before any write

MUST NOT:

  • Rely on any single security layer
  • Bypass safe-outputs for convenience
  • Assume AI agents are inherently trustworthy

Principle of Least Privilege

MUST:

  • Use specific resource permissions (e.g., issues: read, contents: read) not read-all
  • Grant write operations only through safe-outputs with max: limits
  • Use fine-grained PATs with minimal scopes
  • Set timeout-minutes: on all workflows
  • Audit permission usage regularly

MUST NOT:

  • Use permissions: write-all without security review
  • Use classic PATs instead of fine-grained tokens
  • Allow unrestricted network access

Safe Outputs (Write Operations via Gated Jobs)

MUST:

  • Configure all write operations in safe-outputs: with specific constraints:
    • max: — Hard limit per operation per run
    • title-prefix: — Required prefix for created issues/PRs
    • labels: — Required/allowed labels
    • allowed: — Allowlist of label values for add-labels
    • close-older-issues: — Auto-close previous reports
    • branch: — Target branch for asset uploads
    • max-size: — File size limits for uploads
    • allowed-exts: — Permitted file extensions
  • Enable threat-detection: with action: block for all production workflows
  • Use separate permission-controlled jobs to execute safe outputs
  • Include human review gates for critical operations

MUST NOT:

  • Grant direct write permissions when safe-outputs can be used
  • Set excessive max: limits without justification
  • Auto-merge AI-generated PRs without review
  • Skip threat detection for write operations

Safe Inputs (Custom Tools)

MUST:

  • Define custom tools inline using safe-inputs: section
  • Use typed input parameters with validation
  • Scope tool access appropriately
  • Provide clear descriptions for each tool
  • Use environment variables for secrets (never hard-code)
  • Test tools thoroughly before production use

MUST NOT:

  • Execute arbitrary code from external sources
  • Trust user input without validation
  • Expose secrets in tool definitions
  • Grant excessive capabilities to custom tools
  • Skip input sanitization

Threat Detection

MUST:

  • Enable automatic threat detection for safe-outputs workflows
  • Configure threat-detection: settings appropriately
  • Review threat detection alerts promptly
  • Block workflow execution on critical threats
  • Monitor for prompt injection attempts
  • Scan for exposed credentials in outputs
  • Detect malicious code patterns

MUST NOT:

  • Disable threat detection without security review
  • Ignore threat detection warnings
  • Auto-approve flagged outputs
  • Skip investigation of security alerts

Network Security (Agent Workflow Firewall)

MUST:

  • Use network: {} for zero external access (most secure)
  • Use network: defaults for GitHub-only access (github.com, api.github.com)
  • Explicitly allowlist required domains when external access is needed
  • Use HTTPS for all external communications
  • Understand that AWF uses Squid proxy with kernel-level blocking

MUST NOT:

  • Allow unrestricted internet access without justification
  • Use HTTP for sensitive communications
  • Trust external APIs without validation
  • Bypass certificate validation

Secret Management

MUST:

  • Store all secrets in GitHub Secrets (repository or organization level)
  • Use descriptive secret names (e.g., ANTHROPIC_API_KEY)
  • Rotate secrets regularly
  • Use fine-grained PATs with minimal scopes
  • Document required secrets in workflow documentation
  • Audit secret access patterns
  • Revoke compromised secrets immediately

MUST NOT:

  • Hard-code
Полный SKILL.md на GitHub

Установить agentic-workflow-security в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл agentic-workflow-security?

5-layer defense-in-depth security for GitHub Agentic Workflows - safe outputs, threat detection, AWF firewall, and zero-trust patterns

Как установить скилл agentic-workflow-security?

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

Скилл agentic-workflow-security запускает скрипты?

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

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

Сравнить agentic-workflow-security с