Use it when securing automation execution around Service Accounts. Keep source/revision trust, triggering principal, workload identity, policy/approval, runner/control-plane state, target authorization and verified outcome as separate security proof boundaries.
Service Accounts
Service Accounts are non-human identities used by automation and must have explicit ownership, purpose, authentication method, privilege, lifecycle and auditability rather than being treated as permanent shared administrator identities.
1. Service accounts for automation: gMSA/workload identity where possible.
2. Owners and purpose.
3. Deny interactive logon.
4. Strong secrets, rotation.
5. Monitor usage.
automation → service account → target
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
automation workload → dedicated identity → owner/lifecycle metadata → authentication method → role assignment → non-interactive execution → target authorization → audit/use monitoring → credential renewal → disable/delete on retirement
Healthy evidence: accounts are dedicated, owned, non-interactive by policy where possible, minimally privileged, monitored and retired with their automation.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: shared generic svc accounts have standing admin, unknown owners, never-expiring credentials or are used interactively by humans.
Service-account evidence shows identity lifecycle and observed use, but it does not show all target permissions are appropriate unless effective authorization is separately reviewed.
Step 3 Common mistakes Narrow the fault
- Service accounts with interactive logon and no owner.
- Passwords that never rotate.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Non-human account ≠ safe account.
- Service account name ≠ known owner.
- Password never expires ≠ reliability best practice.
- No interactive login observed ≠ interactive login prevented.
Get-ADServiceAccount -Filter *— gMSAs- Service account inventory with owners — governance
- Interactive logon denied — hardening
ReferenceWhat it is1 section · depth on demand
Core model
Create a dedicated identity per meaningful automation trust boundary, disable interactive use where possible, use strong workload authentication or managed credentials, assign minimal roles, monitor anomalous use, rotate/renew credentials and disable the account when the automation is retired.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Service Accounts owns non-human automation identity lifecycle. IAM/platform branches own account implementation; Secrets & Credentials owns the underlying secret/token/key artifacts.
In depth
Service accounts are non-personal identities used by automation to authenticate to systems. They keep automation independent of individual employees and allow permissions to be designed specifically for the task.
Good practice:
| Practice | Reason |
|---|---|
| One account per automation/purpose | Precise permissions, clear audit trail |
| No interactive login | Reduces misuse |
| Managed credentials (gMSA, Vault, workload identity) | Automatic rotation |
| Owner recorded | Someone is responsible |
| Least privilege | Limit blast radius |
| Monitored use | Alert on unusual activity |
Avoid reusing a personal admin account in scripts — it breaks when the person leaves and makes logs ambiguous.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Automation Security > Service Accounts. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Service Accounts security proof-boundary map
Fast identity, handling/execution, effective-outcome and closure proof boundaries for Service Accounts.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Trust / identity | Source revision, trigger, workload identity and policy/approval are explicit and immutable | Mutable code or shared admin identity reaches privileged execution without attributable trust decisions |
| Execution / isolation | Runner/controller, dependencies, credentials and target permissions are bounded to the workflow | Persistent privileged runners, broad secrets or floating dependencies widen the execution trust boundary |
| Effective outcome | Target-side authentication/authorization or secure control outcome is independently observed | Tool/job success substitutes for target authorization, effective state or workload proof |
| Closure / next action | Rotation/revocation, denied-path tests, audit evidence and residual exceptions are explicit | Old credentials remain valid, policy bypass exists, audit gaps are unknown or broad success is inferred from one signal |