DET-220 · agent · confidence High
Self-Created Schedules and Jobs
Alert when agent identities create scheduled jobs, rules or background workers.
Persistence by agents shows up as scheduler calls. EventBridge PutRule, Cloud Scheduler CreateJob, Azure Logic Apps or Automation schedules, cron edits and new schedule: triggers in workflows, when made by an agent identity or an agent process, should all be reviewed.
Record the parent session for every job an agent creates so it can be traced back to a user request. Jobs created by agents with no matching request, or that outlive the project, should be disabled pending review. Pay attention to jobs that also hold credentials.
- Data sources
- AWS CloudTrailGCP Cloud Audit LogsAzure Activity LogEDR file eventsGit diffs
- Platforms
- AWSAzureGCPLinuxmacOSAI Platform
Logic
1. CloudTrail eventName IN (PutRule, PutTargets, CreateSchedule, CreateFunction) by agent roles. 2. GCP methodName = "google.cloud.scheduler.v1.CloudScheduler.CreateJob" by agent service accounts. 3. EDR: writes to `/etc/cron*`, `/var/spool/cron/*`, `~/Library/LaunchAgents/*.plist`, or `schtasks /create` by agent processes. 4. Git: agent commits adding `schedule:` or `cron:` to workflow files.
False positives
Agents asked by users to set up recurring reports.