By NHI Mgmt Group Editorial TeamBased on Pillar Security: “Introducing: Pillar for Agentic CI/CD” (May 3, 2026)

TL;DR: AI agents embedded in CI/CD can read repositories, run shell commands, push commits, and reach external services through runner tokens, according to Pillar Security. The governance gap is that static pipeline controls assume text, not runtime agency, so privilege and intent can change after the workflow is parsed.


At a glance

What this is: This is Pillar Security's analysis of how agentic CI/CD changes the runner threat model by letting AI agents act with privileges that traditional static pipeline controls do not accurately represent.

Why it matters: It matters because IAM, AppSec, and platform teams now need to govern build-time authority, runner tokens, and trigger conditions as identity controls, not just pipeline configuration.


Context

Agentic CI/CD is the point where pipeline automation stops behaving like fixed text and starts behaving like a decision-making identity. In this model, the runner is no longer just executing scripted steps. It is reading prompts, interpreting comments, and choosing actions with access that can reach repositories, shells, branches, and external services.

The governance gap is that most CI/CD security assumes the workflow definition is the control plane. Once an AI agent can act inside that workflow, privilege is no longer fully determined at parse time. The relevant identity question becomes what the agent can do at runtime, which credentials it can reach, and who can trigger those decisions.

For IAM and NHI teams, the important shift is that runner authority now behaves like a governed non-human identity with dynamic execution paths. That makes discovery, entitlement review, and runtime enforcement part of the same control problem rather than separate tooling categories.


Key questions

Q: What breaks when AI agents are allowed to act inside privileged CI/CD workflows?

A: What breaks is the assumption that repository inputs are still untrusted once a workflow starts running. If branch names, filenames, or pull request content can reach privileged shell steps, an AI-driven attacker can turn normal collaboration paths into code execution and publishing paths. That converts workflow automation into a control-plane exposure.

Q: Why do build servers and CI runners increase supply chain risk?

A: Build servers and CI runners often contain reusable secrets, access to artifact repositories, and permissions that ordinary endpoints do not need. That makes them high-value identity targets. When package code runs there, attackers can pivot from software compromise into credential theft, signing abuse, or downstream pipeline manipulation.

Q: What are the signs that agentic pipeline controls are failing?

A: Look for agents reaching for secrets outside declared scope, unexpected outbound calls, pushes to protected branches, and shell commands that cross policy boundaries. Those signals show the runtime behaviour is exceeding the authority the workflow design intended, even if the static configuration passed review.

Q: How should teams govern agentic CI/CD compared with normal build automation?

A: They should govern it as a live identity problem, not only as build automation. That means separating untrusted triggers from privileged jobs, scoping runner tokens to the smallest task, and pairing discovery of embedded agents with runtime controls that can block out-of-policy actions before they complete.


How it works in practice

Why static CI/CD controls fail when the runner becomes an actor

Traditional CI/CD controls assume the pipeline is deterministic: a defined file runs a defined set of steps with a known blast radius. Agentic CI/CD breaks that assumption because the agent can decide which shell commands to run, which files to read, and which external services to touch after it has already been triggered. Static scanners can inspect the workflow definition, but they cannot fully predict the agent's runtime choices because prompt content, repository content, and tool availability all influence execution. That means policy-as-code and SAST remain necessary but incomplete when the system itself is making execution choices inside the pipeline.

Practical implication: treat runtime telemetry as mandatory for agentic runners, not optional hardening.

Why runner tokens turn prompt injection into supply chain reach

In agentic CI/CD, the attack surface is not just the agent model but the credentials attached to the runner. If an agent can be induced to execute by a PR comment or issue text, then untrusted input can become instruction. The danger rises when the runner's tokens grant repo write access, protected branch access, or external service reach. The agent may not need to steal anything new if the surrounding workflow already hands it credentialed access. In practice, this is a non-human identity problem because the effective authority sits in service and runner credentials, not in a person at the keyboard.

Practical implication: scope runner tokens by task and isolate high-trust workflows from user-controlled triggers.

How discovery and runtime guardrails split the control problem

Agentic CI/CD creates two distinct governance questions. First, what agents exist in the pipeline, what authority do they have, and where were they introduced? Second, what is each agent actually doing right now, and does that action fit policy? Discovery and posture management answer the inventory problem, while runtime guardrails answer the behavior problem. This split matters because a pipeline can look acceptable on paper while still allowing a model to reach for secrets, call an external tool, or push a commit in ways no static rule anticipated.

Practical implication: govern agentic runners with both inventory controls and execution-time enforcement.


NHI Mgmt Group analysis

Agentic CI/CD exposes an identity governance gap, not just a CI/CD security gap. The central problem is that the pipeline no longer behaves like static text once an AI agent can interpret prompts and select actions at runtime. That means the governed subject is a non-human executor with changing intent, not just a build definition. The practical conclusion is that runner authority must be treated as a live identity surface, not a configuration artifact.

Static pipeline controls were designed for deterministic execution, and that assumption breaks under agentic behaviour. A workflow review can confirm steps on paper, but it cannot guarantee which command the agent will choose after reading comments, repo content, or external context. This is a classic assumption collapse: the control model assumes the executor follows predefined steps, yet the executor now decides steps mid-session. The implication is that security teams must rethink where authorization actually happens.

Runner tokens create identity blast radius when they are broader than the task. The article shows an agent reaching for repo, shell, and external service access with whatever authority the runner already holds. That is not a model problem in isolation. It is over-scoped non-human identity authority applied to a dynamic executor. Practitioners should view any token that can cross repository, branch, and external API boundaries as a potential supply-chain pivot point.

Discovery and runtime enforcement are now one governance pattern. Knowing which agents exist in pipelines is necessary, but it does not answer whether those agents are reaching for secrets, pushing commits, or invoking unapproved tools. The field needs inventories tied to live behavioural controls because agentic CI/CD creates a gap between declared policy and actual execution. Security teams should align governance, detection, and blocking around the same runner identity.

Prompt-driven build authority: CI/CD is becoming a place where untrusted input can influence privileged action without a human approval loop. That changes how teams should think about branch protection, trigger design, and credential scope. The practitioner takeaway is that the trust boundary now sits around the prompt as much as around the pipeline file.

From our research library:

What this signals

Prompt-driven build authority: Agentic CI/CD collapses the old assumption that a pipeline file fully defines the action path. Once a runner can interpret prompts and choose tools at runtime, governance has to move from configuration review to execution-time control.

The immediate programme impact is that AppSec, platform engineering, and IAM now share responsibility for the same control surface. Discovery tells you where agentic workflows exist, while runtime guardrails tell you whether those workflows are attempting secret access, branch writes, or external calls that exceed their intended scope. According to the State of Secrets Sprawl 2026, 59% of compromised machines in a major 2025 supply chain attack were CI/CD runners rather than personal workstations.

Teams that still treat runner credentials as ordinary build artefacts will miss the real control point, which is authority at execution time. The programme question is no longer whether a pipeline exists, but whether its non-human identity can make decisions that outlive the static policy written for it.


For practitioners

  • Map agentic runners as governed non-human identities Inventory every pipeline that can invoke an AI agent, record what authority the runner token carries, and classify whether the workflow can read secrets, push code, or reach external services.
  • Restrict user-controlled triggers on privileged workflows Separate comment-driven or issue-driven agent triggers from jobs that can access protected branches, production credentials, or external service tokens.
  • Apply runtime enforcement to runner actions Block or alert on secret access, outbound network calls, shell execution, and branch pushes that exceed the declared workflow scope.
  • Review credential scope on CI/CD runners Remove broad environment secrets from jobs that do not need them and prefer task-scoped credentials for each build path.
  • Correlate discovery with behavioural evidence Use pipeline inventory to identify where agentic workflows exist, then compare that inventory against runtime logs for unusual directory traversal, secret access, or gateway-bypassing calls.

Key takeaways

  • Agentic CI/CD changes the build runner from a deterministic executor into a governed non-human identity with runtime decision power.
  • The core risk is not just prompt injection, but the combination of untrusted input, runner tokens, and privileged workflow authority.
  • Practical governance now requires both discovery of embedded agents and enforcement against out-of-policy runtime behaviour.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, OWASP Non-Human Identity Top 10 and MITRE ATT&CK define the specific risk controls and attack patterns relevant to this term.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI02 — Tool MisuseAgentic runners can choose commands and external tools at runtime, matching tool misuse risk.
ASI03 — Identity & Privilege AbuseThe article centers on agent authority extending beyond intended workflow scope.
Recommendation — Map agentic runner policies to ASI02 and block unapproved tool use at execution time. Apply ASI03 to constrain agent privileges to the minimum runtime authority needed for each job.
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIRunner tokens and pipeline credentials can exceed the task scope in agentic CI/CD.
NHI-02 — Secret LeakageThe article highlights secret exposure risk through runners and external-service access.
Recommendation — Audit CI/CD runners for overprivileged NHI credentials and remove any access not needed by the job. Scan runner environments for exposed secrets and limit credential availability to the exact workflow step.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementThe threat pattern includes secret access and movement from the runner into broader repository or service reach.
Recommendation — Map runner abuse to credential access and lateral movement, then hunt for secret use and cross-boundary actions.

Key terms

  • Agentic CI/CD: A delivery pipeline that embeds AI agents directly into build or deployment workflows. The agent can interpret text, select tools, and act inside the runner, which makes runtime authority part of the security model rather than just the workflow definition.
  • Runner Token: The credential or access token attached to a CI/CD runner or job environment. In agentic pipelines, this token can become the practical authority boundary, because the agent may use it to reach repositories, shells, or external services during execution.
  • Runtime Guardrail: A control applied while an AI agent is operating, not just during configuration or review. Guardrails can block dangerous tool calls, require approval for sensitive actions, or stop data leakage before it reaches systems or users.
  • Command injection in CI/CD: Command injection in CI/CD happens when untrusted text is interpreted as executable workflow syntax or shell input. In GitHub Actions, that can allow titles, comments, or branch names to alter environment variables, command paths, or job behaviour without a separate malware payload.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on June 9, 2026.
Updated on October 10, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org