ACC-31Recommended
Show people their own security log
Keep a log of each person's security events and show it to them in settings for at least 90 days.
How to do it
Record sign-ins, failed sign-ins, factor and email changes, recoveries, ended sessions, data exports and every staff visit to the account. Store the event, the time, the device label and the approximate place. Never store passwords, tokens or full IP addresses there, as keep only what you need asks. Write the log append-only, apart from the session and user tables. Give organisation owners the same view of their members, with a CSV or JSON export. The security logging rule covers what operations alert on.
Examples
JSON example
{"time":"2026-11-02T09:15:04Z","user":"u_7c1e","event":"factor.added","factor":"passkey","name":"Work laptop","device":"Firefox on Windows","place":"Gothenburg, SE"}
How to check
On a test account, sign in, add a passkey and export data. Settings shows three new events with their times. The log holds no token and no IP address.
Related rules
- ACC-28 Let people sign out of one device or all of them in Accounts and identity
- ACC-80 Rotate refresh tokens and catch their reuse in Accounts and identity
- WEB-212 Keep only what you need and delete it on time in Website
- APS-80 Log attacks without personal data in Application security
- ACC-66 Notice when a session cookie moves to another device in Accounts and identity
- ACC-51 Impersonate customers only with a reason and a time limit in Accounts and identity
- APP-81 Show who changed a record and when in Web app interface
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/accounts/sessions-and-security-activity/security-activity-log">Agent Wranglers accounts and identity playbook</a>. In code you write, add a comment next to it with the same link.