GitHub is finally tightening up security around npm following multiple attacks

  • GitHub will enforce 2FA and deprecate legacy tokens to improve package publishing security
  • Trusted Publishing will expand, and token-based publishing will be restricted by default
  • Shai-Hulud worm breached npm, prompting removal of over 500 compromised packages

Following a number of recent high-profile attacks and hacking attempts, GitHub has decided to make substantial changes to the security of its platform.

In a blog post, GitHub detailed changes to authentication and publishing, set to go live “in the near future”, with the aim of hardening package publication.

The announcement notes authentication and publishing options will be changed to include local publishing with required 2FA, granular tokens with a seven-day expiration date, and Trusted Publishing.

Extra authentication and protection

Furthermore, GitHub announced it would deprecate legacy classic tokens, as well as time-based one-time password (TOTP) 2FA, forcing users to migrate to FIDO-based 2FA. It will also limit granular tokens with publishing permissions to a shorter expiration, and set publishing access to disallow tokens by default (this should make users go for trusted publishers or 2FA enforced local publishing).

The option to bypass 2FA for local package publishing will be removed, while the list of eligible providers for trusted publishing will be expanded.

“We recognize that some of the security changes we are making may require updates to your workflows,” GitHub explained.

“We are going to roll these changes out gradually to ensure we minimize disruption while strengthening the security posture of npm. We’re committed to supporting you through this transition and will provide future updates with clear timelines, documentation, migration guides, and support channels.”

Open source software is crucial in the software development industry, with organizations of all sizes – from enterprises to microbusinesses – tapping into the sea of high-quality code. This also makes it ideal for cybercriminals engaging in third-party and supply-chain attacks.

One example is the recent Shai-Hulud attack, where a self-replicating worm malware infiltrated the npm ecosystem via a compromised maintainer account, and went about stealing all kinds of secrets from software developers.

The attack forced GitHub to remove more than 500 compromised packages, as well as block the upload of new packages containing whatever indicators of compromise were available at the time.

You might also like

Read more @ TechRadar

Latest posts

Netgear Orbi 373: affordable and easy-to-use mesh Wi-Fi system for larger homes

Netgear Orbi 373: One-minute reviewNetgear’s new management continues its quest to provide more affordable options for home users who want to upgrade their Wi-Fi....

Hackers are exploiting OAuth loophole for persistent access – and resetting your password won’t save you

Researchers have observed attackers weaponizing OAuth apps Attackers gain access that persists even through password changes and MFAThis isn't just a proof of concept...

Get $100 off the near-perfect OnePlus 13 with this code for a limited time

With the imminent release of the OnePlus 15, we're being treated to a super sweet discount on the phone that it'll supersede. That means...

Oracle Red Bull is securing the win with 1Password – a credential halo balancing speed and security on and off the track

Formula 1 is a notoriously high-stakes sport, but the danger doesn’t stop when the chequered flag waves at the end of the race weekend.Engineering,...

“A first step in Europe” – Proton slams Switzerland’s new surveillance bill at the United Nations Forum

Proton Mail has reiterated its opposition to Switzerland's new surveillance billThe bill will force VPN and messaging apps to identify and retain user dataProton...

Settlers, herd your sheep – Netflix reveals Catan movies and TV series, and I know just how they should start

Think you've mastered the Catan board game? Well, Netflix is about take the experience to the small screen, having secured global rights to multiple...

Smart bed owners experience AWS outage nightmare as they’re left sweating and stuck in upright position

Smart bed owners were hit by this week's big AWS outageOwners of the Eight Sleep Pod reported overheating and being stuck uprightEight Sleep tells...

Panasonic just launched a cheaper big-screen OLED TV, but still with the high-end sound and processing of its flagship Z95B

Integrated Fire TV and ATSC 3.0 supportTons of gamer-friendly features including 144Hz, G-SYNC, Freesync v2 Premium and VRR$2,499, orders live from 27 OctoberPanasonic's excellent...

NYT Connections hints and answers for Thursday, October 23 (game #865)

Looking for a different day?A new NYT Connections puzzle appears at midnight each day for your time zone – which means that some people...

NYT Strands hints and answers for Thursday, October 23 (game #599)

Looking for a different day?A new NYT Strands puzzle appears at midnight each day for your time zone – which means that some people...