Transparency log & first stage of organizations

Transparency log  & first stage of organizations

With funding from the Sovereign Tech Agency's Sovereign Tech Fund, through the PHP Foundation, we built a public transparency log for Packagist. It records the security-relevant history of every package and maintainer account. We also made stable versions immutable and laid the foundation for organizations, which make it possible to manage package maintainers through members and teams instead of using shared accounts and per-package lists. The STA funding started in 2025 and ended in September 2026.

In November 2025, shortly after the funding started, we announced the transparency log. Since then, a wave of supply chain attacks on the PHP ecosystem put the log to the test much earlier than we expected, and led us to change the priorities across both projects.

Where we started

When a package is compromised, Packagist staff need to know who was able to change it, what changed and when, to find out how the attack happened. Everyone who depends on the package needs the same information to check whether their projects installed malicious code. The first signs of a takeover often appear earlier, for example when a maintainer is added or removed, or when a maintainer's email address or password changes. Packagist has long kept an internal record of some package events, such as a changed repository URL or a deleted version, but it was meant for staff and did not include maintainer accounts or changes to a package's maintainers. The transparency log makes this history public and extends it.

Package ownership has a related problem. Packages can only belong to individual user accounts, so many companies and projects share one account between several people. They all use the same password, 2FA is hard to use on a shared account, and the history does not show which person made a change. When one person leaves, the password has to be changed for everyone else.

The two projects the Sovereign Tech Agency funded, a transparency log and organizational package ownership, address these two problems. The goal is the same for both: supply chain attacks through Packagist packages should be harder to carry out and easier to investigate.

Events recorded in the transparency log

A transparency log is an append-only log of events. New entries are added at the end, and existing entries never change. The Packagist log now covers:

  • Package ownership: maintainers added or removed, packages transferred.
  • Packages: abandoned and no longer abandoned, deleted (with a public reason), frozen and unfrozen.
  • Versions: created with the exact source reference (the git commit), blocked reference changes, deletions, hiding and recovery.
  • Maintainer accounts: account created or deleted, email address verified, password reset requested or completed, password, username or email address changed, 2FA turned on or off, GitHub account linked or disconnected.
  • Security data: changes to security advisories and to the malware list.

For some of these events, we first had to change how Packagist works. Transferring a package used to mean adding the new maintainer and then removing the old one, and moving every package of a vendor required a manual database change that was not logged. A transfer is now a single action with a single log entry, available to maintainers in the web interface and to staff as a command for one package or a whole vendor.

To keep the log complete as Packagist evolves, we decide for every new event type whether it belongs in the public log and which of its data can be published.

You can browse the log at packagist.org/transparency-log once you are logged in to Packagist. You can filter it by event type, actor, user, vendor, package and date. Package pages, vendor pages and user profiles link to their part of the log, for example the history of symfony/console.

2FA changes are already recorded. They will become publicly visible in the next few weeks, we’ll announce an exact date in advance.

Audit log and transparency log

To be able to investigate abuse, IP addresses, email addresses and internal notes are recorded in addition to the event data. This is personal or confidential data that must not be publicly available. So we had to make sure that none of it ends up in the public log, because published entries cannot be changed or removed. That is why Packagist keeps two logs.

The internal audit log holds the complete event data, while the public transparency log is centered on packages and records each package's history. Shortly after an event is recorded in the audit log, Packagist copies it into the transparency log with only the fields on an approved list for that event type. Every public entry belongs to exactly one package.

For example, if a maintainer changes their email address, an entry appears in the history of every package they maintain. The entry shows that the email address changed, but not the new email address. A user who maintains no packages never shows up in the public log.

Search by username and search by person

Users can change their username. A search for a username finds the entries recorded under that username at the time of the event, even if the account has a different username today. Every entry shows which account it belongs to and its current username. A user's public profile links to the full history of that account, including entries from before a username change.

The April and May 2026 attacks

In April and May 2026, attackers used taken-over GitHub accounts and stolen access tokens to push malicious code into packages they had no legitimate access to. On April 30th, 2026, the attacker behind the intercom/intercom-php compromise force-pushed a malicious commit behind the existing 5.0.2 tag. On May 22nd, 2026, laravel-lang packages followed. Because the version number never changed, even projects that required exactly intercom/intercom-php 5.0.2 received the malicious code on their next update.

The Aikido malware feed, which Packagist has imported since March 2026, flagged the malicious versions, and we removed them within minutes. After that, we had to find out which versions the attackers had changed and when. The transparency log had recorded every tag change with the old reference, the new reference and the time. We could reconstruct each attack precisely, and security researchers used the public log to check the timelines they had pieced together from their own sources.

We described the incidents in more detail in An update on Composer & Packagist supply chain security on May 27th, 2026.

Immutable versions and other protections

The transparency log showed that the attackers mostly rewrote existing tags. Packagist already stored the exact reference of every version, so we were able to block the rewrite itself. Every protection we added writes its events to the transparency log:

  • Immutable stable versions (June 2026). Once a stable version is published, its commit reference is fixed. A deleted, recreated or moved tag no longer changes it, existing lock files stay valid, and maintainers get an email. dev- versions still follow their branches. You can read more about it in Immutable Versions on Packagist.
  • Soft deletion (June 2026). Deleted versions keep their record and the reason for the deletion, and Composer can't install them.
  • Freezing (July 2026). Staff can freeze an account or a package during an investigation, so that nothing changes until it is complete.
  • Publish time (June 2026). The metadata now includes the time Packagist first made each version available, a value the publisher can't set. Composer 2.11 uses it for its cooldown policy, which holds back fresh releases for a configurable period. Malicious versions are usually flagged and removed shortly after publication, so a cooldown keeps them out of most builds.

With these protections, the attack on intercom/intercom-php 5.0.2 would have been blocked, and Composer would have kept installing the original commit.

Version immutability also helps outside of attacks. Security advisories, malware scan results and allow lists all point at version numbers, and they only mean something if a version keeps pointing at the same code.

Organizations: the first stage

An organization is a shared identity for a company or a project, made up of individual Packagist users who log in with their own accounts and their own 2FA. The organization's name is deliberately separate from vendor prefixes: an organization called acme doesn't automatically get rights over packages in acme/, but it will be able to manage access permissions across a vendor prefix once control is transferred to the organization. The details on rights over vendor prefixes, and on how a prefix is assigned or transferred, are still being worked out.

The core implementation went live in July and August 2026. Staff can create organizations, and every organization has two fixed teams, owners and all members. Owners must use 2FA. They can manage the organization, add more teams, and invite people by email into one or more teams. Every change to the organization is recorded in the internal audit log, and owners can read their organization's history on its own page.

Membership policies are in the final stage of development. They will let owners require 2FA and an email address from an approved domain for everyone, owners included. Members who stop meeting a policy are suspended rather than removed, and get their access back once they meet it again. A policy that requires membership in a GitHub organization is specified. Package ownership, which will let organizations own packages, is specified but not implemented yet.

Why package ownership is not live yet

During the rise in supply chain attacks, we had to decide where our remaining project time would bring the most protection right away. Organizations reduce the risk of account takeovers in the long term, but they protect a package only once its maintainers have set one up and moved the package over. Version immutability protected every stable version on Packagist as soon as it was deployed, with no action needed from maintainers or users. So we moved part of the project time from organizations to version immutability.

Organizations benefit from this as well. Every package an organization takes over will have stable versions that a compromised member account cannot rewrite.

Limits of the transparency log

  • A compromised Packagist. The log is stored in the Packagist database. If someone gained access to it, they could change, remove or reorder entries, and for now this could not be detected from outside.
  • Malicious or compromised maintainers. Version immutability protects existing versions, but a maintainer account can still publish new ones. If a new version contains malicious code, the log only helps to investigate it afterwards.

Next steps

We continue the work on both projects after the funding period. Each one still has a few larger pieces left, and these are the ones we plan to work on next.

Transparency log

First, we will publish 2FA events in the next few weeks. We announced this change in May 2026, so that maintainers who didn't use 2FA yet could turn it on before their status becomes public.

An API will let third parties read the log without going through the web interface. Security researchers and companies can then build their own analysis and monitoring for the packages they depend on.

The largest remaining piece is making the log tamper-evident. In practice, no system can fully guarantee that stored data is never changed, deleted or reordered. A tamper-evident log makes such changes detectable, and lets anyone verify the log independently. The design is still being worked out.

Organizations

For organizations, the remaining work is:

  • finish the membership policies,
  • specify vendor prefix management, so that an organization can control who creates new packages under its prefix,
  • implement package ownership, so that maintainers can transfer their packages to an organization,
  • specify access recovery, for the case where no owner can act for an organization anymore.

Once package ownership and vendor prefix management are live, we will open organizations to companies and open source communities on a request basis, and a dedicated post will explain how they work and how to request one.

Funding and feedback

Thank you to the Sovereign Tech Agency for investing in PHP infrastructure and security, and to the PHP Foundation for making the collaboration possible.

If your business relies on Composer and Packagist, please consider supporting work like this, but also its ongoing operation and maintenance, through our sponsorship program.

If you find a problem in the transparency log or have ideas for what should come next, open an issue on GitHub.