Join our Newsletter — 33% off our NHI Course

Should organisations treat coding agents and workflow agents the same way?

No. Coding agents, browser copilots, workflow assistants, CI/CD runners, and autonomous remediation agents create different trust and runtime profiles. Security teams should separate them by authority model and environment, then apply different issuance, attestation, and revocation rules instead of reusing one generic policy.

Why coding agents and workflow agents should be separated

Coding agents and workflow agents may both automate work, but they operate in different trust zones. A coding agent often sits near source code, build systems, developer secrets, and commit rights, while a workflow agent is more likely to move tickets, approvals, data, or business process steps. Treating them as one class hides the fact that their blast radius, runtime context, and failure modes are not the same.

The practical difference is authority. A coding agent may be allowed to read repositories, edit files, call package managers, or trigger CI jobs; a workflow agent may only need to update records or coordinate routine tasks. If you give both the same standing access model, you either overprotect simple automation or underprotect the agent that can actually change software or infrastructure.

That separation also matters for environment design. Coding agents usually need tighter sandboxing, stronger secret handling, and closer review of tool output because code-oriented contexts are where prompt injection, dependency confusion, and unsafe command execution tend to surface. Workflow agents often need stronger business-process guardrails, better approval routing, and clearer data boundaries because their risk is usually around process integrity and unauthorized state change rather than code injection.

How authority, attestation, and revocation should differ

Security teams should issue access based on the minimum task the agent must perform, not on a generic “agent” label. For coding agents, that usually means narrow repository scope, short-lived tokens, limited write access, and isolation from personal developer credentials. For workflow agents, the more important control may be per-action authorization against business rules, with explicit constraints on which records, systems, or approvals they can touch.

Attestation should also differ by runtime. A coding agent running in an IDE, terminal, or CI runner should be attested for its execution environment, toolchain, and secret exposure surface before it is trusted to act. A workflow agent should be attested for process context, connector scope, and whether it is acting inside the intended workflow boundary. The question is not simply “is the agent trusted?”, but “trusted for what, where, and with which inputs?”

Revocation should be equally specific. If a coding agent is compromised, the right response may be to revoke repository tokens, kill active sessions, disable build credentials, and quarantine the workstation or runner. If a workflow agent is misbehaving, revocation may center on connector tokens, orchestration permissions, or the specific workflow lane rather than the whole automation estate. For a useful baseline on agent authorization design, see AI Agent Authorisation Guide.

Where the risk actually changes in practice

The biggest mistake is to assume the same policy can safely cover both because they are both “autonomous.” Coding agents are exposed to code, prompts, package ecosystems, and secrets embedded in developer contexts, so compromise can quickly become supply-chain abuse or destructive system action. Workflow agents usually have broader business reach but less technical depth, which means the main risk often shifts to bad approvals, unintended process execution, or silent propagation of bad data across systems.

That is why evidence of compromise also looks different. A coding agent warning sign may be an unexpected package install, a new commit that the developer did not inspect, or a tool call that touches secrets or deployment systems. A workflow-agent warning sign may be a high-volume state transition pattern, repeated approval bypass attempts, or actions that are valid individually but wrong in sequence. If you monitor both through one generic lens, you will miss the signals that matter most.

For incident handling, the distinction is equally important. A coding-agent incident often demands code review, credential rotation, and build integrity checks. A workflow-agent incident usually demands workflow rollback, connector review, and downstream data reconciliation. The response playbook should match the control plane the agent actually uses, not the label on the front door. The AI Agents vs Agentic AI guide is useful here because it helps separate autonomy levels from the operational controls that should follow them.

Standards & Framework Alignment

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

OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5, NIST Zero Trust (SP 800-207) and CIS Controls v8 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-05 — Overprivileged NHI Coding and workflow agents fail when their access exceeds task needs.
NHI-07 — Long-Lived Secrets Agent tokens and runner credentials should be short-lived and revocable.
NHI-06 — Insecure Cloud Deployment Configurations Agents running in CI or cloud runners depend on safe execution environments.
Recommendation — Scope each agent to the minimum privileges its job requires. Replace standing secrets with short-lived credentials and rotate them quickly. Harden the runtime and isolate agent execution from sensitive systems.
NIST SP 800-53 Rev 5 IA-9 — Identification and Authentication (Service and Application Accounts) Agents and runners authenticate as non-human service identities.
AC-6 — Least Privilege Different agent types need different access boundaries and permissions.
AU-2 — Event Logging Agent behavior must be observable to distinguish coding from workflow failures.
Recommendation — Authenticate each agent with its own service identity and separate credentials. Restrict each agent to the smallest set of actions and resources. Log agent actions, tool calls, and approvals at the control point.
NIST Zero Trust (SP 800-207) Zero Trust Architecture The answer depends on separate trust boundaries and per-action verification.
Recommendation — Verify each agent, request, and environment before allowing execution.
CIS Controls v8 5 — Account Management Agent-specific accounts and revocation paths are central to containment.
Recommendation — Use separate accounts for agents and remove access immediately when risk changes.

Practitioner Guidance

What to prioritise: Classify each agent by what it can materially affect, then set policy from that impact path. If it can change code or builds, treat the code path as the primary trust boundary; if it mainly orchestrates business steps, treat the workflow and connector path as the boundary.

What to verify: Confirm that issuance, attestation, and revocation are tied to the agent’s exact runtime, not to a shared “automation” profile. A good control set makes it obvious which token, workspace, runner, or connector must be removed when the agent is stopped.

Common mistake: Reusing the same long-lived credential pattern for both classes because it simplifies administration. That convenience usually expands blast radius and makes later containment much harder.

Practitioner takeaway: The safer model is not “one policy for all agents”, but distinct authority and environment rules that match each agent’s real control surface.