An attacker ran operating system commands on Monday on six production servers of Hex.pm, the package registry that Elixir and Erlang developers fetch their dependencies from.
The flaw used in the attack had been in the registry's code since February 2016, and the team that maintains the service had every server on a patched build within about 15 minutes of the first malicious request.
Checks since then found no sign that any package was changed. Whether the attacker read account data such as email addresses, password hashes, and two-factor authentication secrets could not be ruled out, the team said.
Everyone with a hex.pm account has been logged out because the maintainers replaced the keys that sign sessions and access tokens. They advise account holders to take these steps:
API keys do not need to be replaced, according to the team: they are random 128-bit values stored only as HMAC-SHA256 hashes, which it says cannot realistically be brute-forced. Passwords are hashed with bcrypt, which slows guessing but does not stop it for weak passwords, so changing them still matters.
Developers who never created a hex.pm account and only fetch public packages have nothing to reset, Peter Ullrich, one of the report's authors, said in a maintainer clarification on the Elixir Forum. Those who signed up with GitHub should still log back in to their clients, and reset two-factor authentication if they enabled it.
pm and to avoid third-party mirrors. The registry signing key has not yet been replaced, and it was among the credentials the attacker could have read.
Source link







