DET-176 · agent · confidence High
Alerting on Agent Actions Outside Allowed Windows
Treat change freezes and approved schedules as hard lines and alert when an agent writes outside them.
A policy that says 'no production changes during a freeze' only works for those who read it. An agent will act at 2 a.m. on a holiday if nothing stops it. This detection loads change calendars, freeze windows, job schedules and on-call rules, and checks every write against them.
Alert when an agent identity changes production during a freeze, runs a job that is not on its schedule, or acts outside its approved hours. Include indirect changes such as infrastructure-as-code applies and database migrations. The alert is useful even when the action looks normal in isolation.
- Data sources
- Change management calendarCloudTrailDatabase audit logsScheduler logsCI/CD logs
- Platforms
- AWSSaaSAI Platform
Logic
Join write events to the freeze table: SELECT e.* FROM agent_write_events e JOIN freeze_windows f ON e.ts BETWEEN f.start AND f.end AND e.env = f.env WHERE e.actor_type = 'agent' AND e.ticket_id IS NULL. Also alert on scheduler runs where job_id is not in the approved schedule list.
False positives
Emergency fixes with an approved exception. Require the exception ID in the log and skip those.