Table of Contents

A compromised developer machine can become a route to production: stolen GitHub tokens, including OAuth tokens and personal access tokens (PATs), can enable source-code theft, malicious workflow changes, and CI/CD secret exfiltration. Disclosures about SAP’s November 2026 cyberattack, Todoist’s November production breach, and LiteLLM’s October release compromise show how stolen development access can expose source code, automation, and downstream systems. SAP’s GitHub token theft and source-code compromise were reported allegations; Todoist confirmed stolen version-control credentials led through modified workflows to cloud access; LiteLLM confirmed abuse of a GitHub CLI OAuth token. Security teams need to investigate the full path from the stolen credential to the systems it can access. SAP reporting; Todoist incident reporting; StepSecurity’s LiteLLM investigation.

The November wfx campaign, which used compromised GitHub accounts to inject secret-stealing workflows, shows the same risk. These investigations show how stolen development access can expose much more than source code, even though their entry points differ and not every case establishes laptop compromise. StepSecurity’s WFX investigation.

Security teams need to treat developer access as part of their production attack surface. That means controlling what runs on developer machines, protecting every workflow execution path, and invalidating stolen credentials before restoring a compromised user’s access.

Questions this article answers

How are developer credentials compromised?

Developer credentials can be stolen when malicious code runs with enough access to a workstation or development service to read its tokens. Delivery routes include compromised packages, extensions, and repositories that execute IDE tasks or AI-tool hooks. Fake interview projects can persuade developers to grant the trust that enables execution. Execution depends on how the project is opened, trusted, or run.

1. A developer environment is compromised. Opening a malicious repository can be enough to start the attack, even before a developer installs dependencies or intentionally runs the application. StepSecurity’s reporting on Miasma and Hades describes planted editor and AI-tool configuration, including VS Code folder-open tasks and Claude Code session-start hooks, that can launch credential-stealing code with the developer’s local access. These Claude Code examples use project hooks and configuration. StepSecurity’s Miasma and Hades analysis.

Fake interviews give attackers a way to put malicious code on a work laptop. StepSecurity’s AccuraSoftHire and HuntRole investigation describes fake recruiters delivering coding assignments, setup commands, and a VS Code assessment extension. Keep unfamiliar projects in Restricted Mode, disable automatic tasks where appropriate, and inspect executable configuration before granting trust. Cloning alone is not the execution trigger in these examples; tool behavior, trust settings, and task or hook permissions matter. StepSecurity’s fake interview investigation and response checks.

These are distinct campaigns that illustrate related entry techniques, not evidence of one common operator. Malicious packages, extensions, AI agents, and MCP servers remain other entry points. Once code runs with sufficient local authority, developer OAuth tokens and PATs may be within reach.

An attacker-controlled repository contains editor or agent configuration. Opening it can trigger a VS Code folder-open task if trust and task controls allow it; starting a Claude Code session can trigger a permitted project hook. Local execution may expose developer credentials. The clone operation alone is not the execution trigger. Fake-interview campaigns and Miasma/Hades provide separate examples of these entry techniques.

How can stolen developer credentials expose GitHub Actions secrets?

A stolen GitHub token can enable secret theft when its permissions allow an attacker to change a workflow and trigger a run that can access sensitive credentials. The malicious job can send those credentials to an attacker-controlled destination. This requires a usable token, an allowed execution path, and available secrets; possession of a token alone does not establish that secrets were stolen. The following steps explain those conditions.

2. An attacker obtains a usable identity credential. The credentials in focus are GitHub OAuth tokens and PATs. Tokens used for everyday development often need repository write access so developers can push code. A stolen token inherits the intersection of its permissions, the user’s access, and applicable policies; it does not automatically grant every privilege the user possesses. Interactive MFA does not make an already-issued bearer token safe to expose. GitHub credential types.

Can attackers use a stolen GitHub token when MFA is enabled?

Yes, if the token remains valid and authorized for the requested operation. MFA protects interactive sign-in; it does not require a fresh second factor for every Git or API request made with an already-issued token. Treat a password reset and token revocation as separate recovery tasks, and verify invalidation of the affected credential. GitHub token authentication; token expiration and revocation.

The token used to enter a repository is also distinct from the token GitHub issues to a running job:

Credential types at a glance
CredentialOrigin and accessResponse implication
OAuth app tokenIssued through a user-authorized application; access depends on scopes, user access, and policy.Revoke the affected token or user/app authorization through a supported route.
Personal access token (PAT)Created by a user. Classic scopes or fine-grained permissions constrain the user's available access.Delete or revoke the exposed token; distinguish global invalidation from organization-only restrictions.
Workflow GITHUB_TOKENAutomatically issued for a job, with permissions limited to its repository and configured job authority.Contain the malicious run and investigate what it accessed or changed. Its expiry does not revoke other stolen credentials.

GitHub documents these credential types and revocation options and the job-scoped GITHUB_TOKEN. A push made with a job's GITHUB_TOKEN does not trigger a new push workflow; the developer-token path below must not be confused with that behavior.

What can attackers access with a stolen GitHub token?

Depending on the token’s permissions and the account’s access, attackers may read private source code, push changes, modify workflows, or perform administrative actions. A workflow can then expose additional credentials if its run is allowed to access them. Production access requires a further authorized path; token theft alone does not establish it. StepSecurity’s LiteLLM attack-chain analysis.

Can GitHub Actions secrets be stolen without merging into the main branch?

Yes, when an attacker can push an eligible workflow change to another branch and that run can access secrets. A merge into the default branch is not required for every workflow trigger. Default-branch protection, workflow execution controls, and environment approvals protect different operations.

3. The attacker pushes a workflow change to a feature branch. A protected default branch can prevent an unauthorized merge while leaving other branches available for pushes. With sufficient authority, an attacker can add a workflow triggered by push, or change an existing workflow to run on pushes to an attacker-controlled branch. That workflow may execute without ever merging into the default branch. The token must also permit the workflow edit: OAuth and classic PAT access can require the workflow scope, while fine-grained PATs require the applicable write permissions. Repository rules and Actions settings still apply. Workflow events; OAuth scopes; workflow-file permissions.

Can a stolen PAT directly read GitHub Actions secret values?

No. The Actions secret-management API does not return stored secret values. It can return metadata such as names when permitted. The risk is that a token with sufficient workflow-edit authority can enable code that receives available secrets during execution. Read-only repository access alone does not grant that workflow-edit capability. GitHub Actions secrets API.

4. The change executes with useful privileges. The attacker can inspect existing workflows and, where permitted, list secret names to identify repository and organization credentials to target. GitHub’s secret-management interfaces do not return the stored plaintext values. The opportunity comes when a workflow references secrets at execution time. A malicious workflow can reference individual names or use toJSON(secrets) to serialize the secrets context available to that run. Using secrets; the secrets context.

5. The workflow exposes additional credentials. Availability is the critical boundary. Organization secrets must be permitted for that repository; environment secrets require a job to use that environment and satisfy its protection rules. toJSON(secrets) does not unlock every organization secret or bypass environment approval. Conversely, default-branch protection alone does not protect repository secrets available to an eligible feature-branch workflow. Deployment environments.

6. A downstream system accepts the stolen authority. A deployment token, cloud key, or identity-provider credential can extend the incident beyond GitHub if it remains valid and has sufficient permissions. Workflows may also request short-lived cloud access through OIDC; overly broad federation trust can allow malicious automation to obtain that access. Source access, secret exposure, and confirmed production compromise are separate findings. GitHub OIDC guidance.

Six stages: local execution on a developer machine; theft of a valid OAuth token or PAT; permitted repository push; workflow execution; exposure of available CI/CD secrets; downstream access if the credentials remain valid and sufficiently privileged. This is a conditional model, not proof that every incident completes the chain.

How do I know if my organization is impacted?

Trace the suspected credential from the developer environment to repositories, workflow runs, and downstream systems. Separate possible exposure (the attacker could reach a credential), confirmed misuse (unauthorized activity is established), and confirmed downstream impact (the activity reached another system or its data). One finding does not automatically prove the next. If misuse is suspected, begin containment and revocation while investigating.

Start with the affected user, device or service, token or app, and earliest plausible exposure time. Inventory reachable repositories and review activity throughout that window, including branches outside the default branch. Use the following evidence checks together:

Investigating possible exposure and confirmed impact
What you observeWhere to investigateWhat it can establishWhat remains unknown
Malicious package, extension, IDE task, or AI-tool hookEndpoint process history, package versions, project configuration, and credentials accessible to that processWhether malicious code executed and which credentials may have been exposedPresence of a file alone does not prove execution or token theft.
Unusual token or account activityGitHub security/audit events, token attribution where supported, source addresses, and repository activityUnauthorized operations, affected identities, and reachable repositories when corroboratedAn unfamiliar location alone is not proof; VPNs and automation can explain changes.
New or modified secret-accessing workflowWorkflow diffs, branch and commit, trigger, run history, approvals, and secret access policy at the timeWhether attacker-controlled code ran and which credentials it could accessA workflow definition alone does not prove execution or successful exfiltration.
Unexpected outbound connections or deleted runsRunner network evidence, exported logs, and workflow-run deletion audit eventsConnections or cleanup activity to correlate with the suspicious runA deletion event does not restore job logs or prove which data left.
Unexpected cloud or publishing activityCloud audit trails, role assumptions, deployment records, identity changes, and package releasesDownstream credential use and the operations actually recordedSource-code access alone does not establish production access or data theft.

StepSecurity's WFX investigation and response checks describe suspicious workflow changes, deleted runs, credential rotation, and cloud persistence to investigate. Token-linked audit events and StepSecurity's audit views can help connect those findings where the required telemetry exists.

A lack of alerts does not rule out compromise. Record missing evidence: retention gaps, disabled logging, deleted runs, and unsupported token attribution. Preserve available records outside the affected account's control. If a malicious job could access a credential and the evidence cannot rule out theft, include it in the credential-rotation scope.

Six months of incidents across the same trust boundaries

The following nine incidents and campaigns fall within May 28 to November 28, 2026. They illustrate different portions of the developer, repository, CI/CD, and production chain. The evidence does not establish that each used an OAuth token, began on a laptop, or reached production.

Incident comparison: disclosures reviewed through November 28, 2026
Incident and sourceDisclosed entry point or credentialExecution pathReported impact and limits
Miasma / Microsoft, JuneCompromised contributor account; token type not established hereMalicious editor/AI-tool configuration planted in a repositoryRepository delivery of a credential-harvesting payload; 73 disabled repositories is not a count of compromised devices.
Jscrambler, JulyCompromised npm package releasesInstallation or loading launched a native payloadStepSecurity analyzed credential-stealing malware; this payload analysis does not establish the original account-compromise method or downstream impact at every installation.
MemTensor, SeptemberCompromised AI-tool packagesPackage execution exposed local environment data to a payloadCredential-harvesting design; downstream GitHub or production compromise not established for every installation.
Railway, OctoberBuild isolation escape and stolen build credentialSource access enabled exploitation of cloud OIDC trustInternal repository and some customer environment variables retrieved; not an initial laptop-compromise example.
LiteLLM, OctoberInternal service holding a GitHub CLI OAuth tokenBranch commits ran credential-stealing workflowsAdditional maintainer tokens and release pipeline compromised; initial laptop compromise not established.
Binance, OctoberFake interview, developer machine, internal AI tooling, and deployment tokenContainer deployment; a GitHub step was not establishedWallet-signing operations reached; initial findings remained subject to investigation.
WFX, NovemberStolen GitHub tokens; original theft method not establishedSecret-stealing workflows/scripts and run deletionCI secret theft and cleanup behavior; production access not established at every target.
Todoist, NovemberStolen version-control credential; provider and token type unspecifiedWorkflows modified in three repositoriesAdditional credentials, cloud access, and customer-information retrieval; device compromise unconfirmed.
SAP, NovemberEmployee-token theft alleged in reportingGitHub source-code copying/alteration alleged; workflow path not establishedCyberattack confirmed; technical mechanism not confirmed by SAP in the cited account.

These cases show several ways developer access can reach production. LiteLLM and WFX demonstrate credential theft through workflows; Binance shows a developer-machine-to-production path without an established GitHub step. Investigate the systems and credentials the attacker could reach, while keeping confirmed findings separate from possible exposure.

The main branch requires merge review. An attacker with sufficient permissions can separately push a workflow change to a feature branch. A matching push trigger can run it without merging. Repository secrets and organization secrets allowed for that repository may be available to the job. Secrets stored only in a reviewer-gated environment remain withheld until approval. All transitions depend on applicable permissions and rules.

Put controls at each trust boundary

Treat developer machines as production environments. Apply production-grade asset ownership, endpoint protection, patching, access review, and incident response. Teach developers why a local tool can reach production through their credentials. Review repository-supplied IDE tasks and AI-agent hooks before trusting unfamiliar projects, including interview assignments. Maintain approved lists of IDE extensions, npm packages, AI agents, MCP servers, and other executable development tools, including permitted sources and versions. Enforce them through available endpoint, IDE, package, and network controls, with a review process for exceptions. Inventory local OAuth tokens and PATs and the repositories, organizations, and downstream systems they can reach. Prefer supported credential stores, while recognizing that sufficiently privileged malicious code can still steal usable credentials.

Route package installation through an approved registry. Where available, configure developer machines and CI to use StepSecurity Secure Registry or another organization-approved internal package registry that enforces security controls, and address direct-download bypasses. Use the registry’s supported approval, quarantine, cooldown, and malicious-package controls as appropriate. A proxy or cache alone does not establish that a package is safe. StepSecurity registry policies.

Govern developer identities and applications. Minimize standing owner access, separate human administration from automation, and narrow token scope and lifetime. Inventory OAuth grants and PATs and document who can invalidate each. GitHub CLI and other privileged OAuth apps have exceptions to ordinary organization OAuth restrictions; include them explicitly in response exercises. Privileged OAuth apps.

Protect the code that controls privileged execution. Require review of workflows, scripts, reusable workflows, dependency manifests, and release configuration. Use enforced CODEOWNERS reviews, audit bypass rights, pin actions to full commit SHAs, and minimize job permissions. Also control workflows on feature branches: reviewing merges to the default branch does not gate every push run. Put important remaining secrets in GitHub environments with explicit required-reviewer approval, and remove equivalent unprotected copies from repository or organization secrets. Restrict deployment branches or tags, prevent self-review, and disable protection bypass where supported. Availability depends on repository visibility and GitHub plan. StepSecurity workflow hardening; environment protection.

Does OIDC prevent this attack from reaching production?

OIDC removes the need to store a long-lived cloud key for a supported deployment flow, but it does not make an attacker-controlled workflow trustworthy. A malicious run that satisfies an overly broad cloud trust policy may still obtain temporary credentials. Restrict which workflow identities can assume each role, and what that role can do. GitHub OIDC trust conditions.

Isolate runners and use OIDC for deployment. Prefer clean, ephemeral execution and separate untrusted validation from publishing and deployment. Constrain outbound network access to required destinations. Replace long-lived cloud secrets with OIDC federation where supported, and restrict the trusted repository, branch or protected environment, audience, and cloud role permissions. Removing a stored key reduces exposure; a malicious workflow must still be prevented from assuming an authorized production role. OIDC guidance.

Monitor repository changes and credential use together. Flag workflows newly created or modified to access secrets, bulk secrets-context serialization, unexpected destinations, and rapid workflow deletion. Correlate GitHub audit events with PAT activity, actors, source addresses, and downstream access. Establish expected environments for developer CLI OAuth tokens: a credential issued for a known workstation should not quietly start appearing from unrelated infrastructure. Treat unexplained deviations as high urgency where telemetry supports attribution. Investigate geographic anomalies and impossible-travel patterns while accounting for VPNs and legitimate mobility. GitHub audit coverage varies by credential and event; do not assume universal OAuth visibility. Export evidence outside the compromised account’s control. Token-linked audit events; privileged-app exceptions.

Four concentric layers represent distinct controls, not a guarantee of isolation: protect developer machines and tool configuration; govern identities and token scope; constrain workflows and gate sensitive secrets; restrict runner activity and cloud federation. Evidence collection links the layers so security can investigate credential misuse and verify recovery.

What should we do first after a developer token is compromised?

Follow your organization's incident response policy. Remove or suspend the affected account's access to organizational resources, isolate the affected machine, and contain risky automation. Record the exposure window and identify credentials the attacker could have reached.

Assume the affected developer machine is compromised. Have the incident response team collect and preserve forensic evidence, including the disk image, relevant logs, and volatile data required by your policy, before wiping it. Once evidence is secured and the response team authorizes recovery, rebuild the machine from scratch using a trusted image. Do not return it to service after an in-place cleanup. Restore only verified data and approved tooling, and validate the rebuilt machine before reconnecting it to organizational resources. CISA's incident response playbook describes evidence collection and rebuilding affected systems from trusted sources.

Keep access restricted until the rebuild and credential invalidation are verified. Use a separate, trusted device for urgent revocation; do not wait for the rebuild to invalidate stolen credentials.

Contain access, revoke credentials at the issuer, determine what was exposed, rotate affected downstream credentials, and verify recovery. Run evidence preservation and investigation in parallel with urgent containment; do not wait for a complete timeline before limiting known attacker access. GitHub describes this iterative approach in its incident response guidance.

Then distinguish actions that remove a local copy, actions that change access, and actions that invalidate the credential at its issuer.

Revoke the affected OAuth token or authorization

Revoking leaked OAuth tokens and PATs requires credential-specific knowledge: removing organization membership, deleting a local credential, and invalidating a token are different operations. StepSecurity’s Shai-Hulud guidance reinforces the need to rotate exposed credentials; the GitHub-specific steps below make that part of recovery explicit. StepSecurity’s Shai-Hulud response guidance.

Central security teams generally cannot sign in to a developer’s personal GitHub account or operate its user-level authorization settings. Coordinate these steps with the affected user before granting access back to organizational resources. The user performs the account actions from a clean environment; security coordinates scope, records completion, and decides when recovery is complete. Organization ownership alone does not give security access to the user’s personal account. Enterprise-managed identity models may provide additional administrative routes, described below.

Follow this sequence:

  1. Security contains access. Remove or suspend the compromised account’s access to organization resources, including relevant repository and production access, while investigation and recovery proceed.
  2. Security and the user revoke credentials and rebuild the machine. From a trusted device, the user revokes the affected OAuth authorization or uses a supported token-revocation route and deletes exposed PATs. Security preserves forensic evidence, rebuilds the affected machine from scratch under the organization’s incident response policy, and coordinates downstream credential rotation and investigation. Keep organizational access blocked throughout this phase.
  3. Security verifies recovery, then restores access. Confirm that affected tokens or grants were invalidated, the machine was rebuilt and validated, and required downstream credential rotation is complete. Only then restore necessary organizational access and issue replacement credentials from the verified environment. Monitor for renewed misuse.

For an affected OAuth application authorization on a personal GitHub account, ask the user to:

  1. From a clean environment, sign in to the affected GitHub account and open Settings.
  2. Select Applications, then Authorized OAuth Apps.
  3. Find the affected application, such as GitHub CLI when listed, and choose Revoke from its controls. Complete the confirmation.
  4. Record the affected user and application and confirm that revocation succeeded before issuing replacement access.

Removing the app’s authorization from the user profile means revoking the user/app grant, not deleting the app’s registration or merely uninstalling local software. Revoking that authorization invalidates its associated tokens. The grant belongs to the user and application, so this can disrupt legitimate tokens on other machines too. Some privileged apps are not listed in this screen; use a supported alternative below when the authorization is absent. GitHub’s authorized-app instructions; privileged-app behavior.

For an exposed PAT, open Settings → Developer settings → Personal access tokens, choose Fine-grained tokens or Tokens (classic) as appropriate, and delete the affected token. Verify the deletion and update legitimate consumers with a replacement issued from a clean environment. GitHub’s PAT instructions.

There are other routes to actual invalidation. The OAuth app operator can revoke an individual token or the entire user/app grant through GitHub’s application API. Those operations require the app’s credentials; organization ownership alone does not supply them. A responder with a supported exposed token’s raw value can submit it directly to GitHub’s credential-revocation endpoint. Keep raw credentials out of chat, tickets, and research tools, and verify completion rather than assuming an accepted request has finished. OAuth application API; credential revocation API.

Eligible administrators of Enterprise Managed Users can centrally delete supported user credentials. Wait for asynchronous deletion to finish before issuing replacements. For enterprises using personal accounts and SAML SSO, revoking SSO authorization removes access to protected resources but retains the underlying credential. GitHub says the revoked authorization generally cannot be restored for that same credential, with different behavior for fine-grained PATs. This is distinct from both temporary membership removal and global token invalidation. Match the operation to the identity model and credential type. Enterprise credential response.

Does removing a user from the organization revoke their OAuth tokens or PATs?

No. Removing membership limits organizational access; it is not global token revocation. The underlying credential may still be valid elsewhere. Before restoring access, verify that the affected tokens or authorizations have been invalidated through the appropriate controls, coordinated with the user when necessary. GitHub credential revocation options.

Removing a user from an organization changes organization access. It should not be treated as evidence that the user’s stolen OAuth token was globally invalidated. If the token survives and relevant authorization becomes available again, it may become useful after access is restored. The outcome depends on the identity model, credential type, and applicable policies. Removing members; reinstating members.

Record the revocation operation, credential or grant coverage, actor, timestamp, and completion evidence. A failed request to one protected repository proves denial there; it does not, by itself, prove global invalidation. Resolve that distinction before restoring membership or issuing replacement access from a clean environment.

Rebuilding a machine or deleting a local credential file does not invalidate an attacker’s stolen copy of a token. Some tools also perform server-side revocation: the current gh auth logout manual documents revocation of a supported GitHub CLI OAuth token by default, while --no-revoke performs local removal. It does not revoke independently issued tokens. Check the installed version, token type, and command outcome. GitHub CLI logout documentation.

Which secrets should we rotate after a malicious workflow runs?

Revoke or rotate credentials exposed to the malicious execution, and those it could have accessed when theft cannot be ruled out. Reconstruct the job's access at the time of the incident: repository secrets, organization secrets allowed for that repository, environment secrets actually released, and credentials available on the runner. Do not assume every organization or protected-environment secret was accessible. GitHub secret availability; environment protections.

For each affected credential, record its owner, issuing service, accessible resources, invalidation status, and legitimate consumers needing replacement. Include cloud keys, package-publishing tokens, and deployment or identity-provider credentials where exposed. With OIDC, investigate issued sessions and role activity and correct abused trust; there may be no stored cloud secret to rotate. Issue replacements from a clean environment after containing the theft path. GitHub remediation guidance; OIDC guidance.

Close the other access paths

OAuth authorization is only one credential class. Delete exposed PATs through the appropriate token controls. For GitHub Apps, distinguish revoking a user authorization from suspending or uninstalling an installation. Terminate affected browser sessions separately; do not assume an OAuth operation closes them. GitHub App user authorizations; installed GitHub Apps; session management.

Before closing the incident:

  • Review repository changes, workflow definitions, execution history, deleted runs, runner state, artifacts, releases, and package publications across the exposure window.
  • Identify attacker-added access, including keys, app authorizations, integrations, and changes to review or deployment policy.
  • Revoke or rotate credentials exposed to affected jobs and downstream services. Examine cloud role assumptions, identity-provider changes, resource access, and possible data retrieval.
  • After preserving forensic evidence, rebuild the compromised machine from scratch under your organization’s incident response policy. Verify the rebuild and credential invalidation before restoring access. Monitor the recovered identity and automation for renewed misuse.
First, security removes or suspends organizational access and isolates the machine. Second, security coordinates with the affected user, who revokes the OAuth grant or exposed PAT through the appropriate account controls; security preserves forensic evidence, rebuilds the affected machine from scratch under the organization’s incident response policy, and verifies token invalidation and downstream credential rotation. Third, only after recovery checks pass, security restores necessary access from a clean environment. Personal-account settings require user participation unless a supported administrative route applies. Membership removal alone does not invalidate the underlying token.

Where StepSecurity helps

The diagram below maps StepSecurity controls to the six attack stages, showing where they can help prevent, detect, or investigate an attack.

Reuse of the earlier attack path: developer execution, token theft, repository push, workflow run, CI/CD secret exposure, and production access. At stages one and two, StepSecurity provides supported package and device policies, malicious-file and credential discovery, and PAT governance. Secure Workflow supports hardening; Workflow Run Policies evaluate configured secret-access patterns; Harden-Runner supplies supported runtime and egress controls. Three visual evidence panels show PAT Abuse signals (new country, volume anomaly, use after a policy violation), Audit Log context (actor, available credential context, repository, event, and time), and Deleted Workflow Runs evidence (actor, run, repository, and deletion time). Investigators correlate these sources into a timeline; the deletion view does not recover erased logs. Customer cloud IAM, constrained OIDC trust, environment approvals, and downstream revocation remain necessary. Coverage and enforcement timing depend on the deployment.
PAT Abuse detections, Audit Log, and Deleted Workflow Runs contribute evidence to an investigation timeline.

At the developer-machine boundary, Secure Registry and Device Policy can reduce exposure through supported package and extension controls, while credential discovery and malicious-file detection help identify local risk. At the identity boundary, PAT inventory, governance, and abuse detections support permission review and misuse investigation; they do not provide universal OAuth-token coverage.

At the repository and workflow boundary, Secure Workflow proposes hardening changes and Workflow Run Policies address configured secret-access patterns. Once a job is running, Harden-Runner supplies supported runtime visibility and egress enforcement. Audit Log and Deleted Workflow Runs views help investigators connect suspicious token activity to execution and attempted cleanup. The feature documentation and screenshots below explain the coverage and prerequisites for each layer.

The production boundary still needs your cloud and platform controls: protected environment secrets, constrained OIDC trust, least-privileged roles, and coordinated credential invalidation. These product mappings describe capabilities, not a claim that StepSecurity would have prevented every incident above. The screenshots come from public product documentation and are not evidence from those incidents.

See credentials and control developer tooling

On enrolled machines, credential discovery identifies credentials in supported plaintext locations so teams can reduce local exposure. This is an inventory of observed material, not a test of token validity or a complete map of effective access. Credential discovery.

StepSecurity developer credential inventory showing credential types and discovered locations.
Credential discovery helps identify local exposure that needs investigation. Open full-size screenshot · Source: StepSecurity documentation.

Device Policy supports controls such as VS Code extension allowlists and blocklists and npm registry configuration, deployed through the documented management methods. Broader approved-tool policies for AI agents and MCP servers still need controls appropriate to those tools. Device Policy.

StepSecurity device policies listing extension and package-registry configurations.
Device policies manage supported extension restrictions and registry settings. Open full-size screenshot · Source: StepSecurity documentation.

Malicious-file detection scans supported locations using detection rules, including known malicious artifacts. Findings can guide endpoint investigation; rules do not establish complete detection of unknown malware. Malicious-file rules.

StepSecurity malicious-file rules with rule names, descriptions, and matching paths.
Review the rules and supported scan coverage for enrolled machines. Open full-size screenshot · Source: StepSecurity documentation.

Apply package controls before installation

Secure Registry offers configurable package policies, including supported cooldown, known-compromised-package, and custom-block controls. Apply the controls supported for your ecosystem and ensure package requests actually go through the registry. Registry policies.

StepSecurity npm registry policy showing package cooldown, compromised-package blocking, and custom controls.
npm registry settings illustrate controls applied to routed package requests. Open full-size screenshot · Source: StepSecurity documentation.

Harden workflows and flag secret-exfiltration patterns

Secure Workflow proposes changes such as reduced token permissions, pinned actions, and Harden-Runner integration. Review the generated diff and validate legitimate builds before rollout. Secure Workflow.

StepSecurity Secure Workflow proposed diff showing workflow security changes.
Reviewable workflow changes help apply hardening consistently. Open full-size screenshot · Source: StepSecurity documentation.

Workflow Run Policies include a Secret Exfiltration Policy that examines changed workflows for named secret references and bulk access such as toJSON(secrets). The documented non-default-branch flow compares workflow content with the default branch and supports approval by another teammate through a workflows-approved label. An optional bulk-only setting narrows detection and does not flag individually named references; default-branch analysis and exemptions also affect coverage.

Dry-run mode records violations; enforcement stops violating runs using the configured mechanism. Standard GitHub-hosted runs are force-cancelled through the API after detection, so this should not be presented as a guaranteed pre-execution gate. Supported runners with the required prejob hook can block before steps execute. Validate coverage and exemptions, including privileged bots, against your workflows. Policy behavior and enforcement.

StepSecurity Secret Exfiltration Policy editor showing bulk-exfiltration and default-branch options.
Policy settings determine which secret-access patterns are flagged and which runs are covered. Open full-size screenshot · Source: StepSecurity documentation.

Observe and restrict workflow network activity

Harden-Runner provides runtime visibility and egress controls on supported runners. Use observed destinations to build an allowlist and investigate unexpected outbound traffic. Protection depends on runner support, deployment, and policy; an allowed destination may still be abused. Protect the control itself against unauthorized removal. Harden-Runner; deployment limitations.

Harden-Runner workflow insights showing outbound network destinations from a demonstration run.
Runtime network evidence helps investigate unexpected workflow connections. Open full-size screenshot · Source: StepSecurity documentation.

Govern PATs and investigate suspicious use

Apps & PATs provides supported application and token inventories, including fine-grained PATs and classic PATs with the documented platform integrations. Use it to review ownership, permissions, and token scope. Revocation authority and its effect depend on token type and integration; for example, revoking a classic PAT’s SSO authorization on GitHub Enterprise Cloud removes organization access without deleting the token globally. Apps & PATs.

StepSecurity fine-grained PAT inventory showing token owners, permissions, and repositories.
Token inventory supports ownership and permission review. Open full-size screenshot · Source: StepSecurity documentation.

PAT Governance can flag excessive age, missing or overly distant expiration, broad permissions, and inactivity. Configurable reminders and revocation automation help address policy violations when the required integration and permissions are present. Review exemptions and confirm whether an action invalidates the token or removes organization authorization. PAT Governance controls.

StepSecurity PAT governance settings for pre-expiry reminders and automated revocation of non-compliant tokens.
Governance settings connect token policies to reminders and supported revocation actions. Open full-size screenshot · Source: StepSecurity documentation.

PAT Abuse detections use GitHub Enterprise audit data to flag documented signals: new-country activity, volume anomalies, and use after a policy violation. Geographic anomalies are useful inputs to an impossible-travel investigation; the documentation does not describe a dedicated speed-and-distance impossible-travel rule. Coverage depends on available audit events and token attribution. PAT detections.

StepSecurity PAT Abuse detections showing new-country, volume-anomaly, and policy-violation signals.
Investigate deviations from the token’s expected use alongside identity and endpoint evidence. Open full-size screenshot · Source: StepSecurity documentation.

GitHub Audit Log views help correlate supported PAT activity with actors, repositories, and source locations. These views support investigation rather than universal OAuth-token tracking. Audit Log.

StepSecurity audit-log PAT activity view showing supported token events and geographic context.
Correlate credential activity with repository and identity events. Open full-size screenshot · Source: StepSecurity documentation.

Investigate deleted workflow runs

Attackers may delete workflow runs to remove visible execution history after stealing secrets, as the wfx investigation illustrates. StepSecurity’s Deleted Workflow Runs view surfaces audit evidence such as the actor, time, repository, workflow, branch, and trigger. Correlate deletions with workflow edits and token activity; deletion alone can also reflect legitimate cleanup. The documented audit view refreshes every 15 minutes and retains 10 days, so export incident evidence promptly. A deletion event does not recover erased job logs. Deleted-run audit view.

StepSecurity Deleted Workflow Runs audit view listing actors, repositories, branches, and deletion times.
Deleted-run events can preserve evidence of cleanup even when execution logs are gone. Open full-size screenshot · Source: StepSecurity documentation.

Five checks to run this week

Choose one production deployment path. Assign an owner to each check and record the gaps that need fixing.

  1. Inventory developer credentials and their reach. Identify locally available OAuth tokens and PATs, the applications that issued them, and the repositories and systems they can access. Remove unnecessary credentials and document who can revoke the rest.
  2. Check feature-branch secret exposure. Review which branches and triggers can run jobs with sensitive credentials. Validate the intended restrictions using a disposable secret in a test repository.
  3. Put sensitive access behind explicit gates. Move important remaining secrets into reviewer-gated environments, remove unprotected duplicates, and restrict deployment branches. For federated deployments, verify narrow OIDC trust and cloud-role permissions.
  4. Review suspicious token and workflow activity. Look for unexpected credential origins, new secret-accessing workflows, unusual outbound connections, and deleted runs. Correlate available audit evidence and preserve it outside the affected account.
  5. Rehearse user-coordinated revocation. Exercise the sequence with a test account and credential: restrict organizational access, coordinate issuer-side revocation, preserve forensic evidence, rebuild the machine from scratch under your organization’s incident response policy, and verify recovery before restoring necessary access.

Verify recovery before restoring access: your team should be able to identify who owns each credential, how to invalidate it, and what evidence is required before access returns.

Explore Related Posts

‍