Control who can alter AI assets and pipelines
Imagine a distributor that supplies independent pharmacies across a wide rural region. When demand rises, its forecasting system recommends where limited deliveries should go first. A contractor who helped build that system leaves at the end of a project. Human resources closes the contract, and the contractor's normal account is disabled. Three weeks later, an audit team discovers that an automated deployment identity created for the project can still replace the production forecasting model. The identity does not belong to the former contractor on the ordinary employee list. It belongs, according to the inventory, to a software job whose owner field is blank.
Nothing in that discovery proves the model was changed improperly. The distributor may have an unneeded permission that nobody has abused. But the possible consequence is substantial. A replacement model could change which pharmacies receive scarce inventory, even if every visible screen and every employee access report looks normal. The audit problem is to establish what authority exists, who can exercise it, and whether a suspicious change could be prevented or reconstructed. That requires following people and machines through the systems that actually control AI decisions.
The most useful place to begin is with the action rather than the account. At this distributor, there are several consequential actions. Someone can download sensitive sales and demand records. Someone can register a new forecasting model. Someone can promote that model from testing into production. Someone can change the rule that converts a forecast into a delivery priority. The auditor first learns which actions could affect inventory allocation or protected information. Only then is it useful to ask which identities have those permissions. Otherwise the review can become an impressive inventory of users that misses the single automated identity with the greatest power.
Bare Metal Cyber's AAIA study guide is a useful companion after listening because it connects identity controls to model development, data governance, and deployment evidence. In this lesson the connection is specific: a permission to alter a training artifact is different from permission to approve a live change. Keep those two authorities separate as the distributor's access paths unfold.
An identity is a recognized actor that a system can authenticate. It might be a data scientist, an operations engineer, a vendor technician, or a program that runs a scheduled task. A service identity may never enter a password or receive an interactive login prompt. It can still ask an application to read data, create models, change settings, and call another service. An audit limited to employees and contractors therefore overlooks some of the most powerful actors in an AI operation. Machine identities need an owner, a permitted purpose, a lifecycle, and evidence of use just as human accounts do.
Now place those identities inside the distributor's workflow. A researcher builds experimental forecasts with historical sales data in a test environment. A release service takes a specific approved artifact and deploys it. A separate operations service reads the resulting forecast and recommends delivery routes. Ideally, the researcher can create experiments without unilaterally changing production. The release service can publish approved artifacts without modifying the approval rules. The route service can consume forecasts without rewriting them. This division reduces the damage a mistake, a stolen credential, or an insider could cause.
The difficult cases begin when actual rights differ from the tidy diagram. Cloud roles can be inherited through groups. A repository may accept one set of permissions while its deployment platform accepts another. Storage permissions may permit a user to replace the model file even though the model registry says the user cannot promote a release. A vendor may hold support access through its own organization. The auditor needs effective access, meaning the actions an identity can actually perform after all overlapping permissions and alternate routes are considered. Reading only a role name does not establish that fact.
Least privilege is easiest to understand as a practical constraint on those actions. If a service needs to read an approved forecasting artifact, it should not automatically receive permission to replace the artifact or export every source dataset. If an engineer needs to diagnose a failed training job, temporary access to the relevant environment may be sufficient. Permanent permission to alter production approvals would be a different request. Time limits, environment boundaries, resource-specific rights, and clear approval reduce unnecessary standing power. The objective is enough access to do the work without granting unrelated authority simply because a broad role is convenient.
The distributor discovers that the old deployment identity carries permissions for both its test registry and production registry. It can also alter a configuration that decides which model version production should load. This is a more serious observation than finding that the identity can view a report. The organization might say the account is harmless because its scheduled job has been turned off. That does not settle the question. If the credential remains valid, another process or person with access to it could call the same service. A disabled schedule and a revoked authorization are different controls.
Credential handling determines whether that distinction is enforceable. Long-lived keys copied into scripts, notebooks, or build logs may survive the project that created them. One key shared by several jobs makes attribution difficult: a log may show that the key was used without revealing which job or operator initiated the activity. A workload identity with short-lived, scoped credentials can improve control when the environment supports it. But a short-lived credential with unrestricted administrator privileges can still do enormous damage during its valid period. The auditor evaluates the rights and how credentials are obtained, used, and retired together.
Another concern is whether the same actor can change both the decision logic and the evidence that certifies it. Suppose the pipeline requires testing before release. That sounds reassuring until the audit shows that anyone who edits the model can also modify the required tests or change the pipeline to skip them. Approval becomes a decoration. A more credible design protects the release rules separately, requires independent review for material changes, and records the identity of the artifact that passed those checks. Smaller organizations may use carefully documented compensating review instead of a large separate team, but they still need a meaningful barrier to unilateral change.
An approved model is often packaged as an artifact and stored in a registry. Different registry operations carry different consequences. Reading an artifact may expose intellectual property. Replacing it could change decisions. Promoting it could bypass required testing. Deleting it could destroy material needed for a later investigation. The auditor should not accept a blanket statement that registry access is controlled. A useful test asks which role can perform each action against the production artifact, what approval is required, and whether an alternate storage or deployment path reaches the same outcome without that approval.
Bare Metal Cyber's Cyber Wiki article on Privileged Access Management offers a useful second pass on this case. It covers service identities, temporary elevation, credential custody, emergency accounts, and activity review. As you connect those ideas, treat the deployment job as a privileged actor even though it is not a human administrator. Its ability to affect live delivery priorities is what makes the permission consequential.
The people who review access need to understand those consequences. A manager presented with hundreds of cryptic permissions may approve them all because nobody has explained what the roles can do. A better review translates a high-impact entitlement into an intelligible decision: this identity can replace the model serving every pharmacy, or this vendor role can export the training records. The responsible owner can then say whether that authority is still needed. Completion of an access-review campaign is a process metric; correct removal of unnecessary permissions is stronger evidence of an effective control.
Access lifecycle controls also have to follow real work. A contractor may move to a different project without leaving the company. A research environment may become a production service. A temporary emergency credential may be retained because the team fears being locked out later. The distributor should have a defined process to approve access when someone joins, reconsider it when responsibilities change, and remove it when the purpose ends. This includes outside platforms, stored tokens, repositories, shared secrets, and permissions granted to automation. Disabling one directory login does not necessarily remove those other paths.
Emergency access deserves a thoughtful exception rather than silent permanence. During a serious outage, an authorized engineer may need temporary production rights to restore service. That does not justify giving every engineer standing release authority. The organization can designate who can declare an emergency, what access becomes available, how the activity is recorded, and who reviews it afterward. The original event record should show emergency authorization honestly; an approval signed later should not be presented as if it preceded the action. If emergency access is used routinely, it may indicate that ordinary operational roles are incorrectly designed.
Consider an additional wrinkle. The distributor begins using an AI assistant to investigate inventory discrepancies. The assistant can search order records and recommend a correction. Its interface says that it acts on behalf of an employee. But behind the scenes, its tool connection uses a service identity with broader rights than the employee possesses. A worker authorized to view only their region could inadvertently obtain records for the entire network. Even worse, an instruction embedded in retrieved material might steer the assistant toward an unauthorized tool action. The effective permission has to be enforced at the tool and data boundary, not merely described in a prompt.
Good authorization for such an assistant limits the available actions to the approved task and checks the requesting person's rights when those rights should govern the action. High-impact actions may require separate approval before execution. The model's confidence or verbal assurance is not a security boundary. A message saying that the assistant must never change deliveries is not a substitute for preventing its tool identity from making those changes. This is where familiar access-control principles apply to unfamiliar AI interfaces: the enforcement point must be outside the part of the system that generates suggestions.
Logs are helpful only when they can answer the investigation's questions. A sign-in record might show that a deployment service authenticated successfully. The auditor also needs to know which artifact it promoted, which approval it referenced, what permissions were active, whether a production configuration changed, and when those events occurred. Correlating that evidence is harder when multiple jobs share an identity or when systems record inconsistent times. Logs should be retained and protected according to the organization's requirements, with privileged access to alter or erase them restricted. No amount of logging makes an unauthorized promotion acceptable, but sound records make detection and reconstruction possible.
An audit can now move from documents to a controlled test. With the organization's authorization, select a production-critical action, such as promoting a model. Trace the entitlements of the identities that should be allowed and those that should be denied. Verify actual effective rights, including inherited cloud permissions and direct access to underlying storage. Examine a sample of recent promotions and connect each to the release approval, actor, artifact identity, and relevant log entry. Then test a revoked contractor or retired service identity through a safe method that does not disturb production. The question is whether the control works, not whether somebody can produce a policy document.
The opposite sample is important too. Begin with identities that appear low risk: a reporting service, an old vendor integration, or a research notebook that no longer has an owner. Determine whether any has an unintended route to the model, source data, secrets, or production configuration. Privilege escalation does not always require an explicitly named administrator role. The ability to change a build process, impersonate a more powerful service, or alter approval conditions can create an indirect path. This is why an access review should include the systems surrounding an AI model rather than the model endpoint alone.
If investigators find suspicious activity, the immediate response is broader than changing a password. They need to establish what the affected identity could access, what it actually did, whether related credentials exist, whether approved artifacts or evaluation records were altered, and whether production decisions may have been affected. Revoking a token is a containment action. Reconstructing trustworthy deployment state and checking downstream outcomes are separate tasks. Those distinctions should shape incident response and the evidence retained for future audits.
Return to the distributor's orphaned deployment identity. The organization disables the identity, reviews its historical activity, confirms the production model and approval chain, and transfers its legitimate duties to a narrower release service with a named owner. It also adds a review for expiring contractor projects that includes machine identities. If it had merely removed the old job from a schedule, it would have left the essential authorization problem unresolved. That is the difference between cleaning up a visible symptom and governing the ability to change AI behavior.
The strongest audit conclusion is grounded in what was tested. You might find that role design is sound but service accounts are not retired. You might find that human approvals exist but an unrestricted build identity can bypass them. Or you might confirm that effective privileges, release separation, access reviews, and logs form a reliable chain. Whichever conclusion the evidence supports, the governing question remains the same: who can actually change a consequential AI decision, and what stops that power from being exercised without proper authority?