Join our Newsletter — 33% off our NHI Course

Why do unexpected processes in GitHub Actions matter for identity security?

Unexpected processes matter because CI/CD jobs often run with secrets, tokens, and deployment permissions that behave like non-human identities. If the runtime launches software outside the approved path, those credentials may be used in a context the team did not authorise. That creates a trust gap between identity policy and actual execution.

Why This Matters for Security Teams

Unexpected processes in GitHub Actions matter because CI/CD runners frequently hold high-value secrets, deployment tokens, signing material, and cloud credentials that can operate with the same practical power as a non-human identity. If a job starts launching binaries, scripts, or interpreters outside the expected workflow, the identity context has already shifted from a controlled automation path to an untrusted execution path. That is a control failure, not just a logging curiosity.

Security teams often underestimate how quickly workflow trust can be broken by dependency execution, post-install hooks, injected shell steps, or compromised build artifacts. The right question is not only whether the workflow is authenticated, but whether the runtime behaviour still matches the identity and privilege boundaries that were approved. NIST guidance on access control and system integrity, including NIST SP 800-53 Rev 5 Security and Privacy Controls, maps well to this problem because execution assurance and least privilege must be enforced together.

In practice, many security teams encounter the risk only after a compromised dependency or build step has already used the runner’s credentials to reach internal systems or publish artefacts.

How It Works in Practice

GitHub Actions jobs inherit the permissions, secrets, and network reach defined for the workflow, but the actual risk emerges at runtime. A clean configuration can still become unsafe if a process tree expands unexpectedly. For example, a supposedly routine build step may spawn a package manager, which then runs a script from a dependency, which then calls out to an external service or accesses files the workflow never intended to touch. From an identity security perspective, that chain matters because the original job identity is being used outside its intended execution path.

Practitioners should treat process monitoring as part of identity governance for automation. The goal is to verify that the running process set matches the approved workflow design, the allowed toolchain, and the minimum permissions required for the job. This is especially important when runners are self-hosted, when secrets are injected broadly, or when reusable workflows and composite actions hide the real execution sequence. MITRE guidance on attack techniques helps here because abuse of legitimate execution paths often looks like normal automation until the process lineage is inspected.

  • Baseline the expected process tree for each critical workflow.
  • Restrict secrets to the smallest possible job scope.
  • Use pinned action versions and review third-party dependencies.
  • Alert on shells, downloaders, interpreters, or network tools that are not part of the approved job.
  • Correlate runner telemetry with workflow identity, repository trust level, and deployment target.

Operationally, this is where NIST AI and cloud-era control thinking overlaps with identity security: a workflow can be authenticated and still be unsafe if it can execute arbitrary code while holding privileged credentials. Teams should also align detection logic with kill-chain style behaviours, not just known-bad filenames or hashes. These controls tend to break down in self-hosted runners with shared admin access and permissive egress, because the environment makes process drift easy to miss and containment hard once a token is exposed.

Common Variations and Edge Cases

Tighter process restrictions often increase pipeline friction, requiring organisations to balance build flexibility against the need for execution assurance. That tradeoff is real: some teams need dynamic tooling for testing or packaging, while others can lock the runtime down aggressively. Best practice is evolving, and there is no universal standard for how much process deviation should be allowed in CI/CD, especially for multi-language repositories and reusable workflows.

Edge cases appear when a legitimate toolchain launches helper processes that look suspicious at first glance. Language runtimes, package managers, code generation tools, and security scanners can all create noisy process trees. The key is to define approved patterns per workflow class rather than relying on a single global allowlist. GitHub-hosted runners and self-hosted runners also need different assumptions: the former reduce persistence risk, while the latter often require stronger host hardening, tighter egress control, and more detailed telemetry. For control mapping, NIST SP 800-53 Rev 5 Security and Privacy Controls remains the clearest anchor for least privilege, auditability, and integrity requirements.

Identity teams should also be careful not to overstate what process monitoring can prove. It can confirm that execution deviated from expectation, but it cannot by itself tell you whether the job was malicious, simply misconfigured, or reacting to a broken dependency. That distinction usually needs workflow context, source control review, and incident response triage. The strongest programmes combine process telemetry with secret scoping, artifact integrity checks, and approval gates so that unexpected execution is detected before it can reuse privileged identity context.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and MITRE ATLAS address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 PR.AA-01 Unexpected process execution affects asset and identity assurance in workflows.
OWASP Non-Human Identity Top 10 CI/CD secrets and tokens act like NHI credentials when used by automated jobs.
MITRE ATLAS Abuse of legitimate execution paths mirrors adversarial behaviour in automation.
NIST AI RMF AI-driven or code-generating workflow steps need governance over runtime behaviour.

Apply governance and monitoring to any automated step that can alter execution or permissions.