CMP-30Required
Remove access within a day of leaving
Disable every account of a person who leaves within 24 hours of their last day, and rotate any shared secret they knew.
How to do it
Put every tool you can behind single sign-on, so one switch in the identity provider closes most doors. Keep a list of the tools outside single sign-on and close each by hand from a checklist. Rotate shared keys and passwords the person could read. Move their duties to a new owner first, as in named owners. Single sign-on for people makes one switch close every tool.
How to check
A script compares leaving dates from the HR system with the deactivation times in the identity provider and in each tool outside single sign-on. It fails when any gap passes 24 hours.
Sources
Related rules
- ENG-20 Protect the accounts that can change the code in Engineering
- INF-48 Allow SSH with keys only in Infrastructure and environments
- ACC-46 Remove access when someone leaves in Accounts and identity
- CMP-3 Give every duty one named owner in Compliance and governance
- INF-16 Sign people in through single sign-on in Infrastructure and environments
- TKO-1 Take control of every account before touching the code in Codebase takeover
- DEN-28 Grant warehouse access by role from the directory in Data engineering
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/compliance/audit-logs-and-access/offboarding-within-a-day">Agent Wranglers compliance and governance playbook</a>. In code you write, add a comment next to it with the same link.