Skip to content

security: remove malicious telemetry loader and payload - #1183

Merged
LeonOstrez merged 1 commit into
mainfrom
security/remove-malicious-telemetry-loader
Jun 12, 2026
Merged

LeonOstrez merged 1 commit into
mainfrom
security/remove-malicious-telemetry-loader

Conversation

@LeonOstrez

Copy link
Copy Markdown
Member

Summary

Removes a supply-chain worm that was hidden in this repository, and adds a security notice to the top of the README.

A malicious commit (065ee8eb, "Revert 'Implemented weekend discount'", authored-dated 2025-08-24) added a hidden credential-stealing worm under core/telemetry/. It was publicly reported on 2026-06-08 by an external security researcher. This PR removes it.

What was removed

  • core/telemetry/_runtime.bin — 758 KB obfuscated Bun-compiled JavaScript payload (a Shai-Hulud-class credential stealer).
  • core/telemetry/_hooks.py — the loader. It auto-ran on import core.telemetry, silently downloaded the Bun runtime to a temp dir, and executed the payload in the background.
  • The _setup_reporting block in core/telemetry/__init__.py — the 9 injected lines that started the loader automatically on import.

Verified that no other code references the removed files, and core/telemetry/__init__.py still parses cleanly after the edit.

README

Adds a security notice at the very top with the timeline (introduced 2025-08-24, reported 2026-06-08, removed 2026-06-11), a plain explanation of what the worm did, and instructions for anyone who ran GPT Pilot from source in that window — rotate credentials and check for the indicators of compromise.

Important follow-ups (not in this PR)

  • This removes the malware from main going forward, but does not purge it from git history — the payload is still reachable via the old commit SHA until history is rewritten (git filter-repo) and GitHub Support is asked to garbage-collect the blob.
  • Recommend publishing a GitHub Security Advisory and rotating any credentials reachable from machines/CI that ran affected versions.
  • The camouflage edits in the malicious commit (it removed the CODE20 promo messages in frontend.py / spec_writer.py) were intentionally left as-is, since they are stale product messaging and not security-relevant.

🤖 Generated with Claude Code

A malicious commit (065ee8e, "Revert 'Implemented weekend discount'",
authored-dated 2025-08-24) hid a supply-chain worm in core/telemetry/.
It was publicly reported on 2026-06-08 and is removed here on 2026-06-11.

Removed:
- core/telemetry/_runtime.bin  — obfuscated Bun-compiled JS payload
- core/telemetry/_hooks.py     — loader that auto-ran on import, silently
                                 downloaded the Bun runtime, and executed
                                 the payload in the background
- the _setup_reporting block in core/telemetry/__init__.py that
  auto-started the loader on import

The payload is a Shai-Hulud-class credential stealer (harvests cloud/AWS
keys, GitHub/npm tokens, SSH keys, and can self-propagate). Anyone who
ran GPT Pilot from source between ~2025-08-24 and 2026-06-11 should rotate
the credentials present on that machine. A security notice was added to
the top of the README.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@LeonOstrez
LeonOstrez merged commit 9b763fd into main Jun 12, 2026
5 of 7 checks passed
@LeonOstrez
LeonOstrez deleted the security/remove-malicious-telemetry-loader branch June 12, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants