Technology
8 min read

AI Agents Are Becoming Employees. Your IAM Stack Isn’t Ready.

Most teams are shipping “agents” with hard-coded API keys and vague permissions. Treat agents like identities—before audit, breach, or bill shock forces you to.

AI Agents Are Becoming Employees. Your IAM Stack Isn’t Ready.

Teams keep shipping “AI agents” like they’re just chatbots with better marketing. Then the agent gets an API key, a database role, and a Slack token—and suddenly you’ve created a new kind of employee: one that never sleeps, never gets bored, and will happily try the same destructive action a thousand times if you phrase the prompt wrong.

The industry mistake: treating agent access as an application concern instead of an identity concern. If you wouldn’t give an intern a long-lived AWS key and production database credentials on day one, stop doing it for a tool-using LLM wrapper.

In 2026, “agent security” isn’t a niche. It’s the next boring enterprise migration you either do deliberately or get dragged into by customers, regulators, and incident response.

Key Takeaway

If an agent can take actions, it needs an identity lifecycle: provisioning, least privilege, rotation, logging, review, and revocation. Prompts don’t replace controls.

Agents broke the old mental model of apps and users

Classic SaaS had two actors: humans and services. Humans authenticate, click buttons, and occasionally do something dumb. Services authenticate with machine credentials, usually scoped to a narrow job. Security and ops tooling grew up around that split: SSO for humans, secrets managers and IAM for services.

Agents scramble the categories. An agent is “service-shaped” (it runs unattended) but “human-shaped” in behavior (it does general problem-solving across systems). It reads email threads, updates tickets, runs queries, posts in channels, creates cloud resources, and calls third-party APIs. That’s not a microservice. That’s a staff member with an unlimited speed multiplier.

The near-term reality is messy: many agent stacks are assembled from an LLM API (OpenAI, Anthropic, Google Gemini), a tool orchestration layer (LangChain, LlamaIndex, Microsoft’s Semantic Kernel), and an execution environment (a container, a serverless function, a CI runner). The weakest link is nearly always identity: developers glue tools together with environment variables, shared tokens, and “we’ll lock it down later.” Later arrives as an audit questionnaire from a customer asking how your “automated system” accesses their data.

Prompts are not policy. They’re inputs to a system that still needs permissions, boundaries, and traceability.
server racks and network hardware representing identity and access infrastructure
Agents turn infrastructure access into a daily, automated event—so IAM stops being background plumbing.

The real risk isn’t “the model went rogue.” It’s credential sprawl.

The scary demos people share—prompt injection, tool misuse, data exfiltration—are real, but they’re not the main operational risk. The main risk is boring: credentials. Long-lived tokens. Overbroad roles. Shared accounts. No review process. No inventory. Logs that can’t answer, “Which agent did this, on whose behalf, with what approval?”

And agents amplify that risk because they’re integrations magnets. The moment you give an agent the ability to do useful work, you connect it to:

  • Your cloud (AWS, Azure, GCP) to create resources or read logs
  • Your data plane (Snowflake, BigQuery, Postgres) to answer questions
  • Your comms (Slack, Microsoft Teams, Gmail, Outlook) to coordinate actions
  • Your systems of record (Salesforce, Jira, ServiceNow) to update state
  • Your code pipeline (GitHub, GitLab) to open PRs or run CI

Each integration asks for scopes. Most developers pick the easiest option: “all the scopes.” Most vendors encourage it with one-click OAuth screens that are intentionally frictionless.

Here’s the contrarian stance: agent security is not primarily an LLM problem. It’s IAM and change management catching up to a new class of actor. If you’re looking for a magic “agent firewall” product to buy, you’re already losing.

Where the blast radius comes from

Three patterns show up repeatedly in real engineering orgs:

  • Shared tokens across environments. A “dev agent” quietly has access to prod because it’s convenient.
  • Human impersonation without constraints. An agent uses a user’s OAuth grant but can act outside the user’s intent because there’s no transaction-level approval.
  • No credible audit trail. Logs exist, but they’re not tied to a stable agent identity, tool call, and authorization decision.
laptop with code editor showing automation and integration work
Most agent stacks start life as glue code and OAuth scopes. That’s fine—until it touches production.

Stop giving agents keys. Start issuing them identities.

The fix is not exotic. It’s discipline: treat agents like identities you can manage. The industry already has the primitives; teams just don’t apply them to agents.

At minimum, an “agent identity” needs:

  • A distinct principal (service account, workload identity, or equivalent) per agent role
  • Short-lived credentials where possible (OIDC-based federation instead of static secrets)
  • Least privilege scopes per tool, per environment
  • Delegation model for acting “on behalf of” a user without inheriting everything
  • Revocation and review like offboarding an employee

Vendors are already pointing you there. GitHub Actions supports OIDC to cloud providers so you can avoid storing long-lived cloud keys in CI. Cloud IAM systems support workload identity patterns (AWS IAM Roles Anywhere, IAM roles for service accounts on EKS; Google Workload Identity; Azure workload identity). The agent world should be copying CI’s migration: away from static secrets, toward ephemeral, attestable identity.

Table 1: Common agent authentication patterns (and why some fail under audit)

PatternWhat it looks likeOperational realityBest use
Static API keys in env vars.env, container env, secrets fileFast to ship; painful to rotate; easy to over-scopePrototypes only
OAuth user tokensAgent uses a human’s Slack/Gmail/Salesforce grantGood UX; messy consent; hard to bound actions per taskUser-initiated assistants with tight UI approvals
Service accounts per agentDedicated principals in cloud + SaaSClear ownership; supports least privilege; needs lifecycle managementProduction agents with stable duties
OIDC/workload identityEphemeral tokens minted at runtime from trusted workloadStrong default; reduces secret sprawl; requires setup and disciplineCloud-native agents and CI-like execution
Brokered tool accessAgent never holds tokens; calls a gateway that enforces policyBest control plane; adds latency and engineering effortHigh-risk actions (payments, infra changes, data exports)

The “agent gateway” is the new internal platform project

If you run a serious product, you already learned that “every team rolling their own auth” ends badly. Agents are repeating the mistake. The internal platform answer is an agent gateway: a thin service that sits between agent tool calls and your real systems.

Not a monolith. A policy choke point. It can enforce things prompts can’t:

  • Only allow tools from an approved registry
  • Require just-in-time approval for high-impact actions (deleting data, changing prod, issuing refunds)
  • Inject row-level constraints into queries (or deny them)
  • Attach immutable metadata to every action: agent id, user id, ticket id, change request id
engineer working on automation and industrial systems representing controlled execution
High-trust automation needs low-trust execution: guardrails, approvals, and traceable actions.

Audit questions are getting sharper (and they’re not “AI questions”)

Most buyer security reviews don’t care whether you’re using GPT-4-class models or open weights. They care about access control, change control, data handling, and incident response. Agents touch all four.

Expect the security questionnaire to mutate. If your product includes autonomous actions, customers will ask questions that look a lot like what they ask for human admin access and CI/CD pipelines:

  • How do you restrict agent actions by environment (dev/staging/prod)?
  • Can you prove least privilege for the agent’s cloud and SaaS access?
  • How are secrets stored, rotated, and revoked?
  • What’s the approval workflow for high-risk actions?
  • Can you produce an audit trail for a specific agent action?

Regulators are also circling automated decisioning and operational resilience, even when the system isn’t “doing AI” in a classic sense. The EU AI Act is the headline in this area, but for most startups the practical pressure comes from enterprise procurement and internal risk committees, not Brussels. The compliance surface is still the same old stuff: access, logging, retention, and accountability.

A practical logging standard: tie everything to a durable “action record”

If you can’t answer “who did what” for an agent, you’re going to struggle with incident response. Build an action record that is stable across retries and tool calls. Store it. Index it. Make it queryable.

{
  "action_id": "act_...",
  "agent_id": "agent_support_refunds_prod",
  "requested_by": {"type": "user", "id": "u_123"},
  "model_provider": "OpenAI",
  "model": "gpt-4.1",
  "tool": "stripe.refund",
  "resource": "pi_...",
  "policy_decision": "approved",
  "approval": {"type": "ticket", "id": "JIRA-1842"},
  "timestamp": "...",
  "result": "success"
}

That payload isn’t exotic. It’s the same spirit as payment event logs, CI job logs, and admin audit logs. The key is to treat agent actions as first-class events, not as console spam.

Table 2: A minimal “agent identity” control checklist mapped to existing enterprise primitives

ControlWhat “good” looks likeTools/primitivesOwner
Agent inventoryList of agents, owners, environments, permissionsCMDB-style doc; Terraform/IaC source of truthPlatform/Security
AuthenticationShort-lived tokens; no shared secretsOIDC federation; cloud workload identityPlatform
AuthorizationLeast privilege per tool + per environmentAWS IAM / Azure RBAC / GCP IAM; SaaS scopesSecurity + App teams
Approvals for risky actionsExplicit gates on deletes, refunds, prod changesTicketing (Jira/ServiceNow); policy engine; agent gatewayOps/Finance/SRE
Audit loggingQueryable action records; correlation IDsSIEM; data warehouse; vendor audit logsSecurity
OffboardingOne switch to disable an agent everywhereCentral secrets/identity revocation; kill switch in gatewayPlatform/Security
team collaborating in an office representing governance and operational review
The hard part isn’t building agents. It’s agreeing on who is allowed to make what change, and how you prove it later.

What to do next week (not next quarter)

If you already have agents in production—or anything that can call tools and mutate state—do this in order. Not as a “security initiative.” As basic operational hygiene.

  1. Write down every tool your agents can call. Include cloud, SaaS, internal APIs, database roles, and Slack/Teams.
  2. Split identities by environment. Prod agents must have prod-only identities. No “one token to rule them all.”
  3. Replace static secrets on the hottest path. Start with cloud credentials: move to OIDC/workload identity where your runtime supports it.
  4. Create a high-risk action list. Deletes, exports, refunds, permission changes, deployments, infra modifications. Gate them.
  5. Ship an action record. If you can’t reconstruct an incident from logs, you don’t have logs.
  6. Assign an owner per agent. Not a team. A person. Agents without owners become permanent liabilities.

Here’s the prediction worth sitting with: by the time “agent platforms” feel standardized, the winners won’t be the teams with the fanciest reasoning loops. They’ll be the teams that treated agents as identities from day one—because enterprise buyers, and eventually your own finance and security teams, will force that architecture anyway.

So pick one existing agent this week and answer a simple question: if it gets compromised at 2 a.m., what can it do, and how fast can you stop it? If the honest answer is “we’re not sure,” you’ve found the work.

Michael Chang

Written by

Michael Chang

Editor-at-Large

Michael is ICMD's editor-at-large, covering the intersection of technology, business, and culture. A former technology journalist with 18 years of experience, he has covered the tech industry for publications including Wired, The Verge, and TechCrunch. He brings a journalist's eye for clarity and narrative to complex technology and business topics, making them accessible to founders and operators at every level.

Technology Journalism Developer Relations Industry Analysis Narrative Writing
View all articles by Michael Chang →

Agent Identity & Access Control Checklist (A-IAM)

A practical checklist to inventory agents, issue proper identities, reduce secret sprawl, and add audit-grade logging and approvals.

Download Free Resource

Format: .txt | Direct download

More in Technology

View all →
Read ICMD on Google

Get more ICMD in your Google Search results

Add ICMD as a preferred source and our latest articles, guides, and analysis show up higher when you search on Google.

ICMD. Add as a preferred source on Google