agentic-workflow-security
БесплатноБез исполняемых скриптовНе проверен5-layer defense-in-depth security for GitHub Agentic Workflows - safe outputs, threat detection, AWF firewall, and zero-trust patterns
от 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:
- Read-only tokens — Agent receives only read-scoped GitHub token; cannot push, create PRs, or delete files
- Zero secrets in agent — Write tokens and API keys exist only in separate, isolated post-agent jobs
- Containerized with AWF — Agent Workflow Firewall routes all outbound traffic through Squid proxy with domain allowlist; kernel-level blocking
- Safe outputs with guardrails — Agent produces structured artifacts; separate gated job applies only explicitly permitted actions with hard limits
- 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) notread-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-allwithout 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 runtitle-prefix:— Required prefix for created issues/PRslabels:— Required/allowed labelsallowed:— Allowlist of label values foradd-labelsclose-older-issues:— Auto-close previous reportsbranch:— Target branch for asset uploadsmax-size:— File size limits for uploadsallowed-exts:— Permitted file extensions
- Enable
threat-detection:withaction: blockfor 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: defaultsfor 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic