跳到正文
DEV Community· Hacks.gr·· 24 天前AI 評分60

GitHub 推出 npm 套件安裝時防火牆公開預覽版

GitHub brings new digital filter to block dangerous software packages

AI 導讀

GitHub 推出 npm 套件安裝時防火牆的公開預覽版,在下載期間檢查套件中繼資料及檔案,阻擋可疑套件、來源證明降級和惡意安裝指令碼。管理員可設定安全公告、版本風險、數碼身份、版本變更、安裝時執行程式碼及新版本等待期等規則,亦可為誤封套件提交例外申請。工具目前處於 beta,僅支援 JavaScript 生態系套件,並開放予所有 GitHub Enterprise Cloud 客戶。

正文

Cover image for GitHub brings new digital filter to block dangerous software packages

Hacks.gr

GitHub has introduced an install-time package firewall in public preview for npm packages.

Operating between endpoints and upstream repositories, it inspects metadata and downloads to block suspicious packages, attestation downgrades, and malicious install scripts.


The new tool acts as a safety valve during the code download process, checking requests and files for suspicious activity. The feature is currently in beta and supports only software packages related to the JavaScript library ecosystem, and is available to all GitHub Enterprise Cloud customers.

According to the company, the filter sits between developers' devices or internal storage systems and public software sources. The goal is to prevent attacks that exploit the automatic installation of add-ons by automated systems or artificial intelligence tools, which often download code without direct human supervision.

System administrators can configure a number of protection rules:

  • Blocking known dangerous packages based on official security warnings.
  • Filtering based on the severity of problems affecting a specific release, with the default of excluding only the most serious issues.
  • Blocking packages that do not have an official digital identity or that show changes compared to older versions.
  • Detect and block packages that automatically add executable code during installation, as such practices can be used to steal sensitive data.
  • Establish a waiting period for new package versions, preventing them from being installed immediately before a certain period of time has passed since their publication.

If a legitimate package is accidentally blocked by the system, administrators have the ability to submit an exception request to have it approved for download.

↳

READ ALSO

HACKS.GR / RELATED

Software & Open Source

New PipeWire version 1.6.11 released with audio and Bluetooth fixes

↗

The move comes as various open source platforms are adopting similar waiting policies. The introduction of these time limits adds significant difficulty to attacks where attackers release infected versions of popular packages after gaining access to developer accounts.

G

HACKS.GR / GOOGLE SEARCH

Hacks.gr on Google

Set Hacks.gr as a preferred source.

Preferred source

↗

end of article


Read the original English article on Hacks.gr

來源:DEV Community · dev.to