Audit identities behind models, pipelines, and tools
A regional seed-testing cooperative has introduced an AI system that reads photographs of damaged seedlings and recommends which samples need urgent laboratory examination. The project is working. Results arrive sooner, scientists spend less time sorting images, and growers receive answers while there is still time to protect a crop. During an access review, however, the security team discovers three identities connected to the service that nobody can confidently explain. One belongs to a former research assistant. Another belongs to the outside company that supplied the image-processing software. The third is an automated identity that uploads new model versions. It has no named owner. The cooperative can describe what the AI model predicts, but it cannot reliably describe who can reach, influence, or replace it.
That is a problem with identity and access management, often shortened to IAM. The scope goes well beyond passwords and employee logins. Every meaningful request to the AI environment comes from someone or something claiming an identity. A laboratory scientist reads results. An application retrieves sample records. A training process loads approved images. A deployment service publishes a model. A supplier connects to troubleshoot a failure. The organization must know which identity is making each request, how that identity is established, what it is allowed to do, and who remains responsible for the permission. Without that chain, even an accurate model can become an unreliable business service.
Start by imagining the environment as several connected rooms, each with a different purpose. The public-facing portal accepts a grower's submission. A private data store holds photographs and laboratory observations. Researchers work in a development environment. A model registry holds versions awaiting review. The production service issues recommendations. A single inventory row labeled seedling AI does not tell you whether access to one room also opens all the others. An audit begins by identifying the assets and the important actions available in each place, then connecting those actions to identities. The list must include people, contractors, automated processes, vendor connections, and emergency accounts.
Bare Metal Cyber's AAIA study guide can help you revisit how identity, authorization, and lifecycle controls relate after this lesson. The useful exercise is to take one system you know and describe separately who uses it, who changes it, and which automated processes keep it running. That distinction is easier to test when it is tied to an actual business decision.
The first evidence challenge is often completeness. Human resources maintains employees, procurement maintains suppliers, developers maintain application credentials, and cloud administrators maintain workload identities. None of those groups necessarily owns a complete list. A service may authenticate with a short-lived credential issued automatically. A vendor integration may use a long-lived key. A data pipeline may inherit permission from the computing environment in which it runs. Those identities will not appear in a normal staff directory. An auditor should compare the central access inventory with actual cloud roles, application connections, secrets, workload assignments, and recent authentication events. A missing entry in the inventory is more useful than a reassuring count of reviewed employee accounts.
In the cooperative's case, the former assistant's interactive account was disabled when the research appointment ended. But a personal token issued during an experiment still had permission to read the image dataset. The exit checklist covered the directory account and missed an application credential. The practical consequence is unauthorized access after a person has left, even if the person's original login no longer works. Effective offboarding traces every access path associated with the person across the systems they used. It also asks whether any shared credential was known to that person and whether replacement or rotation is required.
Identity and authorization are different decisions. Authentication establishes, to an appropriate level of confidence, who or what is making a request. Authorization determines whether that identity can perform a specific action on a specific resource under the current conditions. A scientist may be authenticated correctly and still have no legitimate reason to download the entire historical sample database. A model serving process may be authenticated correctly and still lack authority to publish a replacement model. Strong multifactor authentication for human administrators cannot repair excessive permissions granted to a machine account that never uses an interactive login.
The organization should define roles around actual duties. Researchers may need to test candidate models in a separate environment. Laboratory reviewers may need to accept or correct a recommendation. An independent approver may authorize promotion of a tested model. Operations personnel may need to restore service without editing its training data. These roles can overlap in small organizations, but that creates a decision to manage, not an excuse to pretend there is no conflict. When one person or automation can produce evaluation evidence, approve its own work, and deploy it, apparent separation of duties may be only a diagram. The auditor follows effective permissions, including inherited groups and indirect service capabilities, to see whether the separation holds.
Nonhuman identities need a deliberate lifecycle as well. Consider the unnamed deployment identity. It may have been created during an urgent trial when nobody wanted the pipeline to stop. It continues running long after the researcher who created it has moved on. A useful identity record links that workload to a specific business purpose, owning team, approved systems, permitted actions, authentication method, and review date. The identity should be retired when the workload is retired. Otherwise the cooperative accumulates capable accounts that no current employee can explain. Ownership is a practical control because somebody must answer when a permission request looks unusual or an access review finds a mismatch.
The vendor connection introduces another boundary. A supplier may reasonably need temporary access to service diagnostics, but that does not automatically require access to growers' photographs or the authority to change production settings. The cooperative should decide what support tasks the supplier may perform, how access is requested and approved, how its use is recorded, and how quickly the access can be withdrawn. Contract terms and support arrangements can reinforce those boundaries, but the actual identity permissions have to agree with them. An audit should not accept a contract's confidentiality promise as evidence that a vendor account has been restricted technically.
One useful audit technique is to choose a recent incident or personnel change and reconstruct the identity lifecycle. Who requested the access? What business need justified it? Which person approved it? What identity and roles were created? When did the work end? Was access removed, and can the organization demonstrate that removal at the systems where it mattered? This is more revealing than reviewing an account list in isolation. It tests whether the request, grant, use, review, change, and termination processes connect to each other.
The Bare Metal Cyber Cyber Wiki article on service account management is a useful follow-up for this part of the lesson. It explains the ownership and retirement challenges of accounts used by automation, which can remain active long after the work that created them has disappeared. A listener can use that material later to compare a person leaving a company with a pipeline being shut down; both events should cause a deliberate access decision.
Periodic access reviews are only as reliable as the questions sent to reviewers. Suppose a manager receives a spreadsheet that says service identity sixteen has contributor access. The manager may approve it because the name looks familiar. A meaningful review explains which process uses the identity, what contributor allows it to change, which environment is affected, and whether recent use matches the purpose. An access review should help the owner remove privileges that are no longer justified, not simply certify that an unknown permission still exists. Evidence should include the reviewer's decision and the resulting change. A completed sign-off by itself proves little.
Consider a different type of access failure: a training service can obtain images from a restricted agricultural study because its cloud role includes a broad storage permission. Nobody intends to use that study in the seedling model. The application has no obvious menu that exposes those images. Still, the effective access exists, so a compromised or misconfigured pipeline could retrieve them. The difference between what a team plans to do and what an identity can do is central to audit judgment. Test authorization at the underlying data and tool boundaries as well as in the normal user interface.
Some systems let an AI assistant call tools on behalf of a logged-in employee. This creates a delegation problem. The application may know which employee asked a question, but the tool that retrieves a document or creates a case may run under the application's powerful shared identity. If all actions inherit the application's broad rights, the employee's narrower permission can be lost. The correct approach depends on the architecture, but the control objective is stable: tool actions must be constrained by independently enforced authority for the requesting user and the approved application purpose. A model's statement that it needs an action is not itself authorization.
Credential handling also deserves attention. Machine identities may use certificates, service credentials, issued tokens, or managed workload identity rather than passwords. Short-lived credentials can reduce the exposure from a stolen secret, provided the system also verifies who may obtain them and what permissions they carry. Rotating a credential is not equivalent to reducing the permission attached to it. A newly issued token that can still overwrite every model in the registry preserves the original access risk. Conversely, poorly planned rotation can interrupt critical training or production services. The auditor needs evidence that lifecycle controls are implemented and tested without creating uncontrolled outages.
There is a subtle reason to examine emergency access separately. The cooperative might need to restore the recommendation service during a severe crop disease outbreak. A designated emergency account could be justified when normal identity services are unavailable. That account should be protected, clearly owned, usable under defined conditions, and subject to retrospective review. If the emergency identity quietly becomes the easiest way to deploy models every week, the exceptional path has replaced ordinary authorization. Look for evidence of each activation, the reason given, the actions performed, and whether normal procedures were restored afterward.
Logging supports the entire program, but it is not enough to show that a person logged in. The important event may be an approval of new permission, a new service credential, a bulk data export, a model replacement, or a vendor's attempt to use an unapproved tool. Records should link the event to an attributable identity, the targeted resource, the result, and the relevant time. Where a shared workload identity acts for several requests, the application may also need a reliable record connecting the request to the user or initiating process. Logs themselves must be protected from alteration by the identities whose behavior they are meant to document.
The auditor should also test exceptions. A scientist working late may request temporary access to a different study dataset. A deployment team may need a repair permission that its normal role excludes. The question is not whether exceptions can ever be granted. The question is whether they are authorized, proportionate, time-bounded where appropriate, visible to reviewers, and removed when the need ends. Persistent exceptions gradually rewrite the access policy without formally changing it. They are especially easy to miss when a project moves quickly from experiment to production.
How would you evaluate this program without becoming the cooperative's identity administrator? Begin with the inventory and its reconciliation to actual assets. Select a few identities with different characteristics: a scientist, a newly departed worker, a vendor support account, a training pipeline, and the model deployment service. For each, trace the authorized purpose to the granted capability and then to observed use. Examine a role change, an access review, an emergency event, and at least one revocation. Where technical testing is authorized, have the responsible team demonstrate that an identity cannot perform a prohibited action. The strongest evidence shows controls preventing and correcting access, not merely policy statements describing them.
A finding needs to state the specific weakness and its consequence. Saying that IAM is immature gives management little to repair. Saying that two deployment services retain production publishing rights after their owners left, and that existing reviews exclude machine identities, identifies both the immediate exposure and the failed process. Management can then assign ownership, restrict access, review similar identities, and validate that the changes persist. The audit should distinguish evidence of actual misuse from evidence that unauthorized capability remains possible. Both can justify action, but they are different claims.
The seed-testing cooperative's original problem can now be resolved in a disciplined way. It identifies the former assistant's surviving token, restricts the vendor's access to approved diagnostic functions, and assigns ownership to the deployment identity before reviewing whether it still needs production publishing rights. It also changes the ongoing inventory and exit processes so the next project does not recreate the same gap. The lasting lesson is that identities are part of the AI system's operating design. You can trust the model's measured behavior and still have a serious control failure if you cannot show who can access its data, change its components, and act through its tools.