R305 Give a service account’s token only to unattended tasks and remote machines

On by default

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.

Provisions of the constitution it cites

Relations

Parent
R137 Secret Manager
Requires
none
Conflicts with
none

Metadata

ID
305
Revision
3
Kind
rule
Status
active
Slug
service-account-tokens-only-unattended-or-remote
Default level
user
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh