Docs / Changes, alerts and scheduling
Changes, alerts and scheduling
How AccessLens shows what changed between scans, polls CloudTrail LookupEvents for risky IAM events without installing anything, and schedules scans.
Updated
AccessLens watches for change in two ways, and neither installs anything in your accounts: it compares each scan with the one before, and it reads the CloudTrail event history every account already keeps.
Changes
The Changes page shows what changed between scans: principals, policies and trusts that were added, removed or modified (inventory changes), and findings that appeared or were resolved (finding changes). Changes appear after an account has been scanned at least twice.
Settings → Snapshots kept per account sets how many scans are kept for comparison. Findings are kept regardless.
CloudTrail alerts
With Poll CloudTrail for high-risk IAM events on, AccessLens calls cloudtrail:LookupEvents for each account and region, for three event sources: iam.amazonaws.com, signin.amazonaws.com and cloudtrail.amazonaws.com. That's the free 90-day management-event history every account has; no trail, EventBridge rule or stream is created.
It alerts on events such as:
- new users, access keys, console passwords and SAML or OIDC providers;
- managed policies attached, and inline policies written, on users, groups and roles; attaching an admin-equivalent policy is raised to critical;
- changed trust policies, new policy versions and changed default versions;
- removed permissions boundaries, deactivated MFA devices, and password-policy changes;
- console sign-in without MFA (for IAM users), root sign-ins and root API activity;
StopLogging,DeleteTrailand other changes to CloudTrail itself.
Failed attempts are reported at one severity lower. The full list, with each alert's default severity, is in the rule catalogue.
How polling works
- Settings sets the interval (5 minutes or more) and the regions to poll. IAM and console sign-in events are recorded in
us-east-1. - Each poll reads from the last position minus a 20-minute overlap, at about 1.6 requests per second, and drops duplicates by event ID and rule.
- It only watches while AccessLens is running, open or in the tray, and CloudTrail can take about 15 minutes to make an event available. AccessLens says so in the app, too.
Notifications and the alert center
Alerts appear in Alerts, where you can acknowledge or dismiss them, and as operating-system notifications for the severities you choose in Settings. Keep alerts for (days) sets how long alerts are kept on your computer.
Scheduled scans
Give each account an hourly, daily or weekly schedule. The scheduler checks once a minute for accounts that are due.
- Scheduled scans run while AccessLens is open or in the tray, and pause while you're signed out. If your session expires, AccessLens asks you to sign in again rather than failing quietly.
- Run scheduled scans that were missed while the app was closed runs them on the next launch.
- Launch at login starts AccessLens in the tray and restores your SSO session from the AWS CLI's cache.
- When I close the window can ask every time, keep AccessLens running in the tray, or quit. Choosing Quit from the tray menu always quits.