DET-126 · human · confidence Medium

Runner Egress to New Destinations

Baseline where CI runners connect and alert on new hosts, especially from jobs holding secrets.

Build runners talk to a small, stable set of hosts: the code host, package registries and cloud APIs. Exfiltration from a pipeline needs a new destination. Capturing DNS and connection logs from runners, whether through a hardened runner agent, VPC flow logs or a proxy, makes that destination stand out.

Keep the baseline per repository, not globally, so a rare destination in a sensitive repo is not hidden by noise elsewhere. Self-hosted runners and jobs that ran on branches without review deserve the closest look.

Data sources
Runner DNS logsVPC flow logsEgress proxy logsHardened runner agent telemetry
Platforms
LinuxNetworkAWSAzureGCP

Logic

SELECT job_id, repo, dest_domain, COUNT(*) AS hits
FROM runner_dns
WHERE ts > now() - interval '1 day'
  AND dest_domain NOT IN (SELECT domain FROM runner_dns_baseline_30d)
GROUP BY job_id, repo, dest_domain
-- alert higher if job had secrets injected or ran on a self-hosted runner

False positives

New dependencies pulled from a new registry, and tool vendors changing CDN hosts.

Catches 2 techniques