agentic-actions-auditor
它能做什么
这个工具会检查你的 GitHub Actions 工作流(用来自动化任务的流程),看看在使用人工智能的情况下是否存在安全漏洞。它会寻找攻击者可能误导 AI 的途径。
适用场景
- ✓你在工作流中使用 Claude Code 等 AI 工具时。
- ✓检查你的工作流处理信息的方式是否安全时。
- ✓检查攻击者能否把危险信息发送给 AI 时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agentic-actions-auditor/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我检查一下我使用 Claude Code 的 GitHub 工作流的安全性。”
每周 5 个新技能,1 分钟读完。
工作原理
该工具会分析你的工作流配置文件。它会查找可能让攻击者可控的信息传递到 AI 的模式,即使这些模式并不明显。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Supporting material availability
This AAS tree bundles the inline methodology only. The contributed guide named a foundations file, action profiles, cross-file resolution and nine vector reference files, but those files and an independently verified upstream source are absent. Do not claim they were read. Apply the inline checks below and report unsupported action-version details as unverified; recover external materials only from a verified source with a confirmed license.
Agentic Actions Auditor
Static security analysis guidance for GitHub Actions workflows that invoke AI coding agents. This skill teaches you how to discover workflow files locally or from remote GitHub repositories, identify AI action steps, follow cross-file references to composite actions and reusable workflows that may contain hidden AI agents, capture security-relevant configuration, and detect attack vectors where attacker-controlled input reaches an AI agent running in a CI/CD pipeline.
When to Use
- Auditing a repository's GitHub Actions workflows for AI agent security
- Reviewing CI/CD configurations that invoke Claude Code Action, Gemini CLI, or OpenAI Codex
- Checking whether attacker-controlled input can reach AI agent prompts
- Evaluating agentic action configurations (sandbox settings, tool permissions, user allowlists)
- Assessing trigger events that expose workflows to external input (
pull_request_target,issue_comment, etc.) - Investigating data flow from GitHub event context through
env:blocks to AI prompt fields
When NOT to Use
- Analyzing workflows that do NOT use any AI agent actions (use general Actions security tools instead)
- Reviewing standalone composite actions or reusable workflows outside of a caller workflow context (use this skill when analyzing a workflow that references them via
uses:) - Performing runtime prompt injection testing (this is static analysis guidance, not exploitation)
- Auditing non-GitHub CI/CD systems (Jenkins, GitLab CI, CircleCI)
- Auto-fixing or modifying workflow files (this skill reports findings, does not modify files)
Rationalizations to Reject
When auditing agentic actions, reject these common rationalizations. Each represents a reasoning shortcut that leads to missed findings.
1. "It only runs on PRs from maintainers"
Wrong because it ignores pull_request_target, issue_comment, and other trigger events that expose actions to external input. Attackers do not need write access to trigger these workflows. A pull_request_target event runs in the context of the base branch, not the PR branch, meaning any external contributor can trigger it by opening a PR.
2. "We use allowed_tools to restrict what it can do"
Wrong because tool restrictions can still be weaponized. Even restricted tools like echo can be abused for data exfiltration via subshell expansion (echo $(env)). A tool allowlist reduces attack surface but does not eliminate it. Limited tools != safe tools.
3. "There's no ${{ }} in the prompt, so it's safe"
Wrong because this is the classic env var intermediary miss. Data flows through env: blocks to the prompt field with zero visible expressions in the prompt itself. The YAML looks clean but the AI agent still receives attacker-controlled input. This is the most commonly missed vector because reviewers only look for direct expression injection.
4. "The sandbox prevents any real damage"
Wrong because sandbox misconfigurations (danger-full-access, Bash(*), --yolo) disable protections entirely. Even properly configured sandboxes leak secrets if the AI agent can read environment variables or mounted files. The sandbox boundary is only as strong as its configuration.
Audit Methodology
Follow these steps in order. Each step builds on the previous one.
Step 0: Determine Analysis Mode
If the user provides a GitHub repository URL or owner/repo identifier, use remote analysis mode. Otherwise, use local analysis mode (proceed to Step 1).
URL Parsing
Extract owner/repo and optional ref from the user's input:
| Input Format | Extract |
|---|---|
owner/repo |
owner, repo; ref = default branch |
owner/repo@ref |
owner, repo, ref (branch, tag, or SHA) |
https://github.com/owner/repo |
owner, repo; ref = default branch |
https://github.com/owner/repo/tree/main/... |
owner, repo; strip extra path segments |
…
常见问题
什么是“GitHub Actions 工作流”?
这是在 GitHub 上自动执行任务的脚本,比如测试你的代码或发布代码。
什么是“提示词注入”(Prompt Injection)?
指攻击者通过发送恶意数据作为输入,试图让 AI 执行它不该执行的命令,或泄露不该泄露的信息。
这个工具会自动修复问题吗?
不会,它只负责找出安全问题并报告给你。
详情
作者的原始描述
Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Inference. Detects attack vectors where attacker-controlled input reaches AI agents running in CI/CD pipelines.
热度
- GitHub 星标
- 48k
- 排名
- #3686
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。