Runner.Worker memory scraping is the extraction of data from the memory of the GitHub Actions runner process while jobs are executing. It targets secrets, tokens and other transient values held in process memory, so compromise of a self-hosted runner can expose credentials used by the workflow.
What this attack pattern means
Runner.Worker memory scraping is a process-memory attack, not a file-based one. The attacker is trying to pull transient workflow material, especially secrets and tokens, out of the runner while jobs are active, which makes the compromise window short but highly valuable if the runner is exposed or can be tampered with.
That matters because GitHub Actions runners often hold credentials only long enough to complete the job, so memory becomes a live target for anyone who gains code execution, debugging access, or kernel-level visibility on the host. In practice, the attacker is chasing whatever the workflow is currently using, rather than waiting for static secrets at rest.
Why runner memory is a high-value target
Memory scraping is dangerous because it can bypass the protections that people assume come from ephemeral credentials. If the workflow has already retrieved cloud tokens, API keys, deployment credentials, or signing material into process memory, a successful scrape can expose them before they are rotated or discarded.
The risk is greatest on self-hosted runners, where the organisation owns the host, the OS, the isolation model, and any co-located workloads. Once the runner boundary is weak, memory scraping becomes a direct path from job execution into the secrets that the job was trusted to use.
How organisations should think about exposure
Exposure starts with inventory: which workflows run on self-hosted runners, which repositories can schedule jobs there, and which jobs ever touch high-value credentials. It then extends to host visibility, because the same runner that is acceptable for low-risk CI may be too exposed for privileged deployment or release workflows.
Discovery should also include the runner’s surrounding trust boundaries, including network reachability, administrative access, and whether other tenants or untrusted workloads can share the same machine. A runner that is internet-reachable, broadly administered, or reused across projects has a much larger attack surface than one with tight segmentation and minimal privilege.
Detection and containment after suspected scraping
Because memory scraping is often opportunistic, defenders usually look for compromise of the runner itself, unexpected process inspection, abnormal job behaviour, or signs that workflow secrets were used outside the expected execution path. When a runner is suspicious, assume the attacker may have seen transient material that never appeared in logs or secrets stores.
T1003 OS Credential Dumping is a useful adjacent detection model because the defender concern is similar, local memory or credential material being extracted from a live system. tj-actions/changed-files compromise 2025 shows why CI/CD secret exposure can become operationally severe when workflow trust is abused, and it reinforces the need to review runner integrity after any suspected exposure.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1003 — OS Credential Dumping | Models live credential extraction from memory on compromised hosts. |
| Recommendation — Map runner-memory theft to credential-dumping detections and hunt for process-access anomalies on the runner. | ||
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Covers exposure of secrets and tokens used by machine-run workflows. |
| NHI-07 — Long-Lived Secrets | Addresses the danger of credentials that remain usable after workflow execution. | |
| Recommendation — Reduce secret exposure by limiting secret lifetime and removing unnecessary credentials from runner workflows. Replace durable workflow credentials with short-lived, tightly scoped alternatives wherever possible. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Applies because workflow tokens and keys on runners require lifecycle control and rotation discipline. |
| AC-6 — Least Privilege | Limits the impact when a runner process or host is compromised and secrets are exposed. | |
| Recommendation — Enforce issuance, rotation, and revocation rules for runner-used authenticators and tokens. Constrain runner permissions so captured credentials cannot be used beyond the minimum required scope. | ||
Practitioner Guidance
Why practitioners should care: Treat runner memory as a sensitive data plane, not just an execution detail. If a job can touch secrets in memory, then host compromise can turn a short-lived credential into a usable theft opportunity.
What to watch for: Focus on runner hardening, workload separation, and the decision to place sensitive jobs on self-hosted infrastructure at all. OWASP Non-Human Identity Top 10 helps frame the broader secret and credential lifecycle risks that often make these jobs worth attacking in the first place.
Practitioner takeaway: If a runner can execute privileged workflows, assume its memory is a target and design as though transient secrets may be recoverable during execution.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org