套件情資

Package URL 偵測

VulnCheck 套件情資支援針對開放原始碼軟體函式庫套件與作業系統套件,偵測各式各樣的風險問題。

VulnCheck 套件情資支援針對開放原始碼軟體函式庫套件與作業系統套件,偵測各式各樣的風險問題。

VulnCheck 研究團隊持續在套件管理生態系中搜尋新出現的危險行為。VulnCheck 套件情資支援以下偵測類型,可透過 Package URL 進行查詢:

  1. 漏洞
  2. 授權
  3. 惡意套件
  4. 已棄置套件
  5. 可遭挾持的儲存庫
  6. 名稱仿冒(Typosquatting)

除了漏洞與授權之外,我們將在以下各小節說明這些研究屬性的意義及其呈現方式。

惡意套件

當已知某套件含有惡意內容時,會使用 malicious 屬性。VulnCheck 會盡可能附上來源參考資料,說明我們判定該套件為惡意的原因。

https://api.vulncheck.com/v3/purl?purl=pkg:npm/aliyundrive@6.0.4
{
 "_benchmark": 0.047808,
 "_meta": {
   "purl_struct": {
     "type": "npm",
     "namespace": "",
     "name": "aliyundrive",
     "version": "6.0.4",
     "qualifiers": null,
     "subpath": ""
   },
   "timestamp": "2023-12-01T20:11:54.921991593Z",
   "total_documents": 2
 },
 "data": {
   "cves": [],
   "research_attributes": {
     "is_malicious": true,
     "malicious_source": "https://blog.phylum.io/dozens-of-npm-packages-caught-attempting-to-deploy-reverse-shell/"
   }
 }
}

目前支援 malicious 標籤的有 gem、npm、nuget、pypi。

已棄置套件

abandoned 屬性用於套件的原始碼儲存庫已不存在的情況。這高度表示該套件將不會再收到任何更新。

https://api.vulncheck.com/v3/purl?purl=pkg:golang/github.com/paysuper/paysuper-reporter@v1.4.2
{
 "_benchmark": 0.050773,
 "_meta": {
   "purl_struct": {
     "type": "golang",
     "namespace": "github.com/paysuper",
     "name": "paysuper-reporter",
     "version": "v1.4.2",
     "qualifiers": null,
     "subpath": ""
   },
   "timestamp": "2023-12-01T20:08:09.215541236Z",
   "total_documents": 1
 },
 "data": {
   "cves": [],
   "research_attributes": {
     "abandoned": true
   }
 }
}

目前支援 abandoned 屬性的有 golang。

可遭挾持的儲存庫

hijackable repository 標籤用於套件的原始碼儲存庫容易遭受 repojacking 攻擊的情況。這可能特別危險,因為攻擊者可能會在更新中植入惡意程式碼。

https://api.vulncheck.com/v3/purl?purl=pkg:golang/github.com/zerobounty/tile38-client@v0.10.2
{
 "_benchmark": 0.040295,
 "_meta": {
   "purl_struct": {
     "type": "golang",
     "namespace": "github.com/zerobounty",
     "name": "tile38-client",
     "version": "v0.10.2",
     "qualifiers": null,
     "subpath": ""
   },
   "timestamp": "2023-12-01T20:09:49.124292153Z",
   "total_documents": 1
 },
 "data": {
   "cves": [],
   "research_attributes": {
     "repo_hijackable": true
   }
 }
}

目前支援 hijackable repository 標籤的有 golang。

名稱仿冒(Typosquatting)

typosquatting 標籤用於研究團隊觀察到某套件的名稱是熱門套件的輕微拼寫錯誤變體時。這類套件通常具有惡意,或日後會被更新為含有惡意內容。typosquatting 標籤會指出該套件試圖仿冒的儲存庫。

https://api.vulncheck.com/v3/purl?purl=pkg:gem/activmodel@5.2.1
{
 "_benchmark": 0.03596,
 "_meta": {
   "purl_struct": {
     "type": "gem",
     "namespace": "",
     "name": "activmodel",
     "version": "5.2.1",
     "qualifiers": null,
     "subpath": ""
   },
   "timestamp": "2023-12-01T20:36:40.01706222Z",
   "total_documents": 1
 },
 "data": {
   "cves": [],
   "research_attributes": {
     "squatted_package": "activemodel"
   }
 }
}

支援 typosquatting 屬性的有 gem、golang、npm、nuget 與 pypi。