Skip to navigation

Threat reportSupply ChainTL-2026-4258

CI/CD Runner Memory-Dump Credential Theft (CVE-2025-8217 technique): Runtime Security for AWS CodeBuild-Hosted GitHub Actions Runners

highMONITORING

CVE-2025-8217 (AWS-2025-016) let a malicious pull request run in AWS CodeBuild and dump build-environment memory to steal source-repository access tokens; a threat actor used it against AWS Toolkit for Visual Studio Code and AWS SDK for .NET. The same /proc memory-read technique was used in the tj-actions/changed-files compromise and in the Team PCP campaign, and StepSecurity now offers runtime monitoring (Harden-Runner) for CodeBuild-hosted GitHub Actions runners. First disclosed .

Key facts

IdentifiersTL-2026-4258, CVE-2025-8217, CVE-2025-30066
Also known asCodeBreach, AWS-2025-016, Team PCP CI/CD secrets campaign
SeverityHIGH
First disclosed
Exploitation statusLinked CVE exploited in the wild; Listed in CISA KEV: CVE-2025-30066 (added )
EPSSCVE-2025-30066: 72.0% (99.4th percentile); CVE-2025-8217: 0.2% (9.7th percentile)
Affected productsAmazon Web Services AWS CodeBuild (PR webhook builds); tj-actions tj-actions/changed-files GitHub Action; StepSecurity Harden-Runner (defensive control for CodeBuild-hosted runners)
MalwareChainDrop
MITRE ATT&CK techniquesT1003.007 Proc Filesystem, T1005 Data from Local System, T1027 Obfuscated Files or Information, T1059.006 Python, T1078 Valid Accounts, T1140 Deobfuscate/Decode Files or Information, T1195.002 Compromise Software Supply Chain, T1528 Steal Application Access Token, T1567 Exfiltration Over Web Service, T1583.001 Domains
MotivationUNKNOWN
Target sectorstechnology, software-development, cloud-services, finance
Target regionsGlobal
Detection rules9 (1 shown free)
Sources8 cited sources

Detection coverage

As of 2026-10-23, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4258 across Splunk SPL, Microsoft KQL and Sigma, covering 16 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: CI/CD Runner Memory Dump via /proc/PID/mem (CVE-2025-8217 / memdump.py) — Exploitation

Behavioural detection of the CI/CD runner memory-dump credential theft technique (CVE-2025-8217 CodeBuild PR attack, CVE-2025-30066 tj-actions memdump.py): a script interpreter or memory utility reading /proc/PID/mem or /proc/PID/maps, or references to Runner.Worker memory, on Linux build hosts. Maps to T1003.007 Proc Filesystem credential dumping.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1003.007, T1059.006, T1005, T1528
  • Data sources: sysmon_for_linux, defender_for_endpoint_linux, linux_process_creation
  • Severity: high
  • Confidence: high

Splunk SPL

index=linux sourcetype="sysmon:linux" EventCode=1
| eval cmd=lower(CommandLine), img=lower(Image)
| eval known_script=if(match(cmd,"memdump[.]py"),1,0)
| eval proc_read=if(match(cmd,"/proc/([0-9]+|self|[*])/(mem|maps)"),1,0)
| eval reader=if(match(img,"/(python[0-9.]*|perl|ruby|dd|gdb|gcore|strings|cat|xxd|od)$"),1,0)
| eval runner_target=if(match(cmd,"runner[.]worker") AND match(cmd,"/proc/"),1,0)
| where known_script=1 OR (proc_read=1 AND reader=1) OR (runner_target=1 AND reader=1)
| stats count min(_time) as first_seen max(_time) as last_seen values(CommandLine) as command_lines values(ParentImage) as parent_images by host, User, Image
| convert ctime(first_seen) ctime(last_seen)

Microsoft KQL

let reader_re = @"(?i)^(python[0-9.]*|perl|ruby|dd|gdb|gcore|strings|cat|xxd|od)$";
DeviceProcessEvents
| where Timestamp > ago(24h)
| where ProcessCommandLine contains "memdump.py"
    or (FileName matches regex reader_re and ProcessCommandLine matches regex @"(?i)/proc/([0-9]+|self|\*)/(mem|maps)")
    or (FileName matches regex reader_re and ProcessCommandLine contains "Runner.Worker" and ProcessCommandLine contains "/proc/")
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine

Sigma

title: CI Runner Process Memory Read via /proc/PID/mem (Runner.Worker Credential Dump)
id: 4b2d7e19-3a85-4c60-9f1d-e8a7b5c20d34
status: experimental
description: Detects scripts or utilities reading /proc/PID/mem or /proc/PID/maps, or running memdump.py, as used to dump Runner.Worker memory and steal CI/CD secrets in the CVE-2025-8217 CodeBuild incident and the tj-actions/changed-files compromise (CVE-2025-30066).
references:
  - https://aws.amazon.com/security/security-bulletins/aws-2025-016
  - https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised
  - https://www.wiz.io/blog/wiz-research-codebreach-vulnerability-aws-codebuild
author: Threadlinqs Team
date: 2026/10/23
tags:
  - attack.credential-access
  - attack.t1003.007
  - attack.execution
  - attack.t1059.006
  - attack.collection
  - attack.t1005
  - cve.2025-8217
  - cve.2025-30066
logsource:
  category: process_creation
  product: linux
detection:
  selection_known:
    CommandLine|contains: 'memdump.py'
  selection_proc:
    Image|re: '/(python[0-9.]*|perl|ruby|dd|gdb|gcore|strings|cat|xxd|od)$'
    CommandLine|re: '/proc/([0-9]+|self|\*)/(mem|maps)'
  condition: 1 of selection_*
falsepositives:
  - Legitimate debugging or forensics by administrators using gdb, gcore or dd on a build host
  - Developer troubleshooting scripts that inspect /proc/self/maps
level: high

Known false positives:

  • Administrators legitimately using gdb, gcore or dd against a process on a build host
  • Developer or profiling scripts that read /proc/self/maps

Tuning notes: Scope to CI runner hosts (host or tag lookup). Allowlist approved forensics tooling by parent image and user. Requires process-creation telemetry with full command lines (Sysmon for Linux EventCode 1 or MDE for Linux); in-process reads by a script that is not named memdump.py are only visible with auditd/eBPF file telemetry such as Falco or Harden-Runner. Adjust the sourcetype and field names to match your Sysmon for Linux add-on.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • AWS CodeBuild Webhook Unanchored ACTOR_ACCOUNT_ID Filter (CodeBreach) — Exploitation · unlock with TL Creds
  • Double Base64 Encoding of Secrets on CI Runner — Post-Exploitation · unlock with TL Creds
  • Gist-Hosted Script Fetch from CI Runner ([indicator] Delivery) — C2 / Payload Retrieval · unlock with TL Creds
  • [indicator] Loader and [indicator] Gist Indicators — Exploitation · unlock with TL Creds
  • Non-Runner Process Targeting GitHub Actions Runner.Worker — Post-Exploitation · unlock with TL Creds
  • Proxy Requests to Team PCP Exfiltration Host or [indicator] Gist — C2 / Exfiltration · unlock with TL Creds
  • Inline Base64 Decode-and-Execute Loader on CI Runner — Post-Exploitation · unlock with TL Creds
  • Team PCP Typosquatted Exfiltration Domain [indicator] — C2 / Exfiltration · unlock with TL Creds

Indicators of compromise

As of 2026-10-23, Threadlinqs Intelligence tracks 16 indicators of compromise for TL-2026-4258.

Sample indicators (3 of 16)

  • Domain: scan[.]aquasecurtiy[.]org
  • File hash: 0e58ed8671d6b60d0890c21b07f8835ace038e67
  • Domain: gist[.]githubusercontent[.]com

Defanged, TLP:CLEAR. Full set of 16 indicators: unlock with TL Creds.

16 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

The hunt source is a StepSecurity vendor post (2026-09-01) announcing Harden-Runner support for AWS CodeBuild-hosted GitHub Actions runners. It qualifies as threat intelligence through the attack pattern it cites: theft of CI/CD credentials by reading the memory of the build/runner process.

CVE-2025-8217 (AWS bulletin AWS-2025-016, 2025-07-25): security researchers from the Institute of Information Engineering, Chinese Academy of Sciences, reported that a threat actor could submit a pull request that, when built automatically by CodeBuild, would extract the source-repository access token (GitHub, Bitbucket or GitLab) through a memory dump of the build environment. If the token had write permission, the actor could commit malicious code. AWS stated that during its investigation it found a threat actor had used this technique to extract the access token for the AWS Toolkit for Visual Studio Code and AWS SDK for .NET repositories. AWS recommended disabling or filtering PR webhook builds, restricting PR builds to trusted users, rotating write-capable tokens, and considering GitHub Actions self-hosted runners. The AWS bulletin gives no CVSS score, no CWE and no IOCs.

Related technique reuse: in the tj-actions/changed-files compromise (CVE-2025-30066, March 2025) a malicious commit (0e58ed8671d6b60d0890c21b07f8835ace038e67), pointed to by retroactively rewritten version tags, ran a base64-decoded loader that downloaded a Python script (memdump.py) from a GitHub gist. The script located the Runner.Worker process, parsed /proc/<pid>/maps, read readable regions of /proc/<pid>/mem, regex-matched secrets, and wrote them (double-base64 encoded) to the public workflow log. StepSecurity's analysis of the CodeBuild incident describes the same /proc cmdline/maps/mem approach. Wiz Research's 'CodeBreach' disclosure (public 2026-01-15) showed a second route into CodeBuild: unanchored regex in webhook ACTOR_ACCOUNT_ID filters let an attacker register a GitHub ID that contained a trusted maintainer's ID as a substring, trigger a build, and dump the memory of a build-environment process that an earlier memory-dump mitigation had overlooked. This led to credential theft for the aws-sdk-js-automation account and potential admin takeover of aws/aws-sdk-js-v3. AWS anchored the filters within 48 hours of the 2025-08-25 report, revoked tokens, protected that process from memory dumping, and added a Pull Request Comment Approval gate.

Per StepSecurity's summary of CloudSEK research, the Team PCP campaign (2026-03-19 to 2026-03-24) exfiltrated 78,330 secrets from 2,186 organizations by compromising trusted components (Trivy GitHub Action, Checkmarx KICS Action, telnyx PyPI package, LiteLLM, Axios npm package, a self-spreading npm worm called ChainDrop) and harvesting credentials from CI/CD runner memory, with exfiltration to typosquatted C2 domains such as scan.aquasecurtiy.org. Stolen credentials included 999 JWTs, 480 private-key blocks, 320 AWS keys, 308 GitLab PATs, 183 GitHub PATs and 157 OpenAI keys. The Team PCP figures are second-hand via StepSecurity and were not checked against CloudSEK's original report.

The hunt source describes Harden-Runner v2.20.1+ for CodeBuild EC2-hosted runners and v2.21.0+ for Linux containers on EC2 and custom images. Requirements are EC2 compute (not Lambda), a kernel-6 host (Amazon Linux 2023), and privileged mode. The workflow label format is runs-on: codebuild-<project-name>-${{ github.run_id }}-${{ github.run_attempt }}. No actor attribution is stated for the CVE-2025-8217 exploitation. A BeaconBeagle config search for scan.aquasecurtiy.org returned no matches.

MITRE ATT&CK techniques by tactic:

Credential Access

T1003.007 Proc Filesystem; T1528 Steal Application Access Token

Collection

T1005 Data from Local System

Defense Evasion

T1027 Obfuscated Files or Information; T1140 Deobfuscate/Decode Files or Information

Execution

T1059.006 Python

Initial Access

T1078 Valid Accounts; T1195.002 Compromise Software Supply Chain

Exfiltration

T1567 Exfiltration Over Web Service

Resource Development

T1583.001 Domains

Remediation

Patches

  • AWS addressed CVE-2025-8217 service-side (AWS-2025-016); no customer patch is required, but customer-side token rotation and webhook hardening are advised
  • Update tj-actions/changed-files to v46.0.1 or later (or replace it)

Immediate actions

  • Rotate any source-provider tokens with write permission used by CodeBuild projects that built pull requests automatically
  • Disable CodeBuild webhook builds for pull requests, or filter PR events, until triggers are restricted to trusted users
  • Rotate secrets exposed to any workflow that used tj-actions/changed-files, reviewdog actions, Trivy Action or KICS Action during the compromise windows
  • Block and hunt for outbound connections to scan.aquasecurtiy.org

Workarounds

  • Anchor webhook filter regexes with ^ and $ (ACTOR_ACCOUNT_ID filters)
  • Use GitHub Actions self-hosted runners instead of PR-triggered CodeBuild builds

Longer-term hardening

  • Deploy runtime monitoring on CI runners (for example Harden-Runner on CodeBuild EC2-hosted runners, v2.20.1+; v2.21.0+ for Linux containers) to detect /proc memory reads and anomalous egress
  • Use read-only or fine-grained tokens with minimal scope and a separate automation account per CodeBuild project
  • Enable the CodeBuild Pull Request Comment Approval gate and require manual approval for untrusted PR builds
  • Pin third-party GitHub Actions to full commit SHAs

Affected and fixed versions

  • Amazon Web Services — AWS CodeBuild (PR webhook builds)
    Vulnerable versions: Pre-mitigation service behavior (before AWS fixes of July-August 2025)
    Fixed in: Service-side mitigation by AWS; customer token rotation advised
  • tj-actions — tj-actions/changed-files GitHub Action
    Vulnerable versions: 0 through 45.0.7 (tags retroactively repointed)
    Fixed in: 46.0.1
  • StepSecurity — Harden-Runner (defensive control for CodeBuild-hosted runners)
    Fixed in: 2.20.1 (CodeBuild EC2); 2.21.0 (Linux containers on EC2, custom images)

Timeline

  • tj-actions/changed-files compromised; version tags repointed to malicious commit 0e58ed86... which loads locked-ioc-7 to read Runner.Worker memory (StepSecurity detected via Harden-Runner; Sysdig reports exposure from 2025-03-12 to 2025-03-15)
  • tj-actions/changed-files repository removed then restored after the malicious commit was cleaned up; CVE-2025-30066 assigned
  • AWS publishes bulletin AWS-2025-016 (CVE-2025-8217): CodeBuild PR builds could leak the source-repository token via memory dump; a threat actor already used it against AWS Toolkit for VS Code and AWS SDK for .NET repositories
  • Wiz Research reports CodeBreach (unanchored webhook ACTOR_ACCOUNT_ID regex plus an overlooked memory-dump target) to AWS
  • AWS anchors the vulnerable regex filters, revokes exposed tokens and protects the remaining build process from memory dumping; further hardening follows in September 2025
  • Wiz publicly discloses CodeBreach; AWS adds the Pull Request Comment Approval build gate and reports no unauthorized access found in CloudTrail audit
  • Team PCP campaign begins (Trivy Action, Checkmarx KICS Action, telnyx, LiteLLM, Axios, ChainDrop worm); runner-memory secret theft with typosquatted C2
  • Five-day Team PCP window ends: per CloudSEK, 78,330 secrets stolen from 2,186 organizations
  • StepSecurity publishes Harden-Runner support for AWS CodeBuild-hosted GitHub Actions runners (v2.20.1+; v2.21.0 adds Linux containers on EC2)

Sources cited

Other reports on CVE-2025-8217

Other reports on CVE-2025-30066

Previous and next in supply chain

Further reading

Drafted by the Threadlinqs research pipeline from 8 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats