Hex: verify package origin and account recovery
Hex reported command execution on servers supporting its service. An enterprise response needs to follow both accounts and the path that delivers dependencies to builds.
Czytaj po portugalskuBy Pentesty
Separate account access from confidence in a package
The SecurityWeek report led to the official Hex notice, published on November 24, 2026. The service reports unauthorized command execution on November 23 and deployment of a fix within about twenty minutes. Its investigation found no evidence of unauthorized package changes, but acknowledges limits on ruling out database and private content reads. Those conclusions describe the environment Hex investigated.
For a company using Elixir or Erlang, propose two owners: one follows identities and the other follows dependency retrieval. Map organizations, accounts, automation, build agents and caches to the registry they consult. A recovered account does not, by itself, show which artifact reached an earlier execution. Similarly, identifying a package does not establish that the account publishing it remains protected. Retain both evidence trails and identify who can explain each one.
Tie each decision to the credential involved
The notice asks users to change their password and set up their two-factor authenticator again, keeping the new recovery codes. For organizations requiring 2FA, it describes setting up a new authenticator app without relying on disabling the requirement. Turn that guidance into tasks assigned to account holders and administrators. Record completion and ownership while keeping secrets out of the report. Also verify how automation resumed authentication after the relevant changes.
Avoid treating every credential as equivalent. Hex distinguishes API key hashes from secrets its servers could read. The authors see no need to rotate API keys solely because their hashes may have been exposed. Other evidence needs its own assessment. The discussion of trust in package execution helps define which permissions a process actually used, without assuming that two incidents share the same mechanism or require identical recovery decisions.
Show where the dependency came from
In the notice consulted, Hex recommends fetching packages only from repo.hex.pm while it prepares a new registry signing system supporting key rotation. Check current guidance and availability before making changes. Ask the team to locate repository configuration, proxies and fallback paths in every environment. A correct configuration on a reviewer's laptop does not establish the path used by the agent running a build. Assign someone to verify that actual execution path.
In an authorized assessment, use a test project and approved dependencies to record the effective request destination, artifact identifiers and the outcome of available validation. Include what happens when the approved destination is unavailable: execution can stop or follow a fallback that has been explicitly authorized. Compare expected and observed outcomes. A checksum records a file's identity; its origin and the reference used to accept it need evidence as well.
Accept recovery with explicit limits
Organize evidence around the question it answers. For access, retain confirmation of changes and results from agreed tests. For dependencies, connect execution, configuration, origin and artifact. For historical investigation, record which reads and changes the systems could observe. An absent event supports only conclusions consistent with that coverage. Preserve relevant records and copies before making changes that could remove information needed for the investigation. State any collection gaps alongside the findings.
Close the assessment with agreed criteria for each trail and assigned follow-up work. The analysis of boundaries when opening and building repositories provides complementary context for checking what a workflow can execute. Tests using synthetic data demonstrate selected behavior without eliminating every hypothesis about the past. The decision to resume should state what was demonstrated and what remains unknown, with an owner for reviewing each unresolved question.
Frequently asked questions
Does the incident prove packages were modified?
Hex says it found no evidence of unauthorized changes to the packages examined. Read that finding alongside the investigation's limits, especially around possible data reads.
Must every API key be rotated?
The authors do not recommend rotation solely because key hashes may have been exposed. Assess each permission and other evidence, distinguishing hashes from secrets accessible to a server.
Can a mirror remain in the build path?
The notice recommends only repo.hex.pm while registry signing changes are prepared. Check current guidance and verify the paths agents actually use, including fallbacks.
What demonstrates acceptance of recovery?
Criteria agreed before testing, observed results and assigned follow-up work. Keep evidence about accounts, package retrieval and historical logging coverage distinct.
Sources and references
- SecurityWeek: Hex incident reporting, November 27, 2026
- Hex: official notice and investigation limits, published November 24, 2026
Original Pentesty analysis, published November 27, 2026. The proposed scenarios are editorial guidance, with scope and validation to be defined for each environment.