You notice your GitHub Actions minutes doubled and many runs come from PRs by unknown forks. What is happening?
IntermediateScenarioIncident Response and Governance
Answer
Situation read → Likely abuse of public CI for crypto mining, or probes trying to reach secrets through PR workflows.
What I'd do →
- Check the runs: workflow files modified in the PR, unusual binaries, long run times.
- Require approval for workflow runs from outside contributors (repository Actions settings).
- Make sure untrusted PR workflows use
pull_request, notpull_request_target, and have no secrets. - Set
permissions: read-allor narrower as the defaultGITHUB_TOKENscope. - Never run public fork PRs on self-hosted runners.
Why → Public repos invite free compute abuse; approvals and least-privilege tokens remove the payoff.
Interview tip → Self-hosted runners on public repos are a well-known escalation path.
More on Incident Response and Governance
You find a ransom note in an S3 bucket and most objects have been deleted. What do you do in the first hour?AdvancedYour company has its first real security incident and people are all talking at once in Slack. How do you organise the response?BeginnerAn EC2 instance is confirmed compromised. A colleague wants to terminate it immediately. What do you do instead?IntermediateFalco reports a reverse shell from a pod in EKS. How do you contain it while keeping evidence?AdvancedAfter a security incident, leadership wants to know who to blame. How do you run the post-incident review?BeginnerYou are asked to run a security tabletop exercise for the engineering team. How do you design it?Intermediate