R305 Give a service account’s token only to unattended tasks and remote machines
Give a service account’s token only to unattended tasks and to remote machines.
Reason
On a remote machine and in an unattended task no person is present to unlock each read, so a service account is the only way they can read. On a local device a person unlocks reads (rule 304), and a token there would only be one more thing to leak.
Verification
An unattended task is one that runs with no person present to unlock its reads, such as a scheduled task or a service. Local devices and remote machines are as rule 304 defines them. Which machines are remote, which tasks are unattended, and which service account each uses (rule 302), is set in the jurisdiction. On a local device, the token goes only to the unattended tasks there (rule 306). A token on a remote machine is set up for that machine, not for a person: when it reaches the shell a person gets on logging in to that machine, it is not given to the person for their own use.
Violated when a service account’s token is set up for an agent or other task on a local device that is not an unattended task there, or for a person’s own use.