檢視軟體清單

適用於雲端的 Microsoft Defender 中的 Defender for Servers 方案使用 Microsoft Defender 弱點管理提供弱點掃描。 適用於端點的 Microsoft Defender 和 Defender 弱點管理 已原生整合至 適用於雲端的 Defender。

Defender 弱點管理所提供的軟體清查功能會顯示您組織中的已知軟體清單,其中包含探索到應用程式的安全性資訊。

  • 適用於雲端的 Defender 會在 Inventory 頁面上顯示整合式軟體清查,摘要說明在連線至適用於雲端的 Defender 的資源上執行的軟體。
  • 若要大規模查詢與檢索庫存資料,請使用 Azure Resource Graph (ARG)。 想要深入的自訂洞察,可以使用 Kusto 查詢語言(KQL)。

本文說明如何檢閱軟體清查。

Prerequisites

要查看軟體庫存,請啟用這些付費方案之一。

備註

如果庫存中出現不支援的軟體,則只能提供有限的資料。

檢視軟體清單

  1. 在 適用於雲端的 Defender 中,選取 [清查]。

  2. 如果必要條件就緒,[ 已安裝的應用程式 ] 篩選器會顯示環境中部署的軟體清單。

  3. 「值」中,篩選出特定應用程式。

    連接到 適用於雲端的 Defender 並執行這些應用程式的資源會被顯示出來。 空白選項會顯示無法使用 Defender for Servers/Defender for Endpoint 的電腦。

查詢軟體清單

除了預先定義的篩選條件之外,您還可以在 Azure Resource Graph Explorer 中探索軟體清查資料。

  1. 選取 Azure Resource Graph 瀏覽器

    顯示 Azure 入口網站中已開啟的 Azure Resource Graph Explorer 的螢幕擷取畫面。

  2. 選取下列訂閱範圍:securityresources/softwareinventories

  3. 使用以下查詢範例之一、自訂一個,或是自己撰寫。

  4. 請選擇執行查詢

查詢範例

若要產生已安裝軟體的基本清單:

securityresources
| where type == "microsoft.security/softwareinventories"
| project id, Vendor=properties.vendor, Software=properties.softwareName, Version=properties.version

若要依版本號碼篩選:

securityresources
| where type == "microsoft.security/softwareinventories"
| project id, Vendor=properties.vendor, Software=properties.softwareName, Version=tostring(properties.version)
| where Software=="windows_server_2019" and parse_version(Version)<=parse_version("10.0.17763.1999")

若要尋找具有軟體產品組合的機器:

securityresources
| where type == "microsoft.security/softwareinventories"
| extend vmId = properties.azureVmId
| where properties.softwareName == "apache_http_server" or properties.softwareName == "mysql"
| summarize count() by tostring(vmId)
| where count_ > 1

若要將軟體產品與其他安全性建議結合:

(例如安裝了 MySQL 並暴露管理埠的機器)

securityresources
| where type == "microsoft.security/softwareinventories"
| extend vmId = tolower(properties.azureVmId)
| where properties.softwareName == "mysql"
| join (
    securityresources
| where type == "microsoft.security/assessments"
| where properties.displayName == "Management ports should be closed on your virtual machines" and properties.status.code == "Unhealthy"
| extend vmId = tolower(properties.resourceDetails.Id)
) on vmId

匯出庫存

  1. 若要以 CSV 格式儲存篩選的清查,請選取 [ 下載 CSV 報告]。
  2. 若要在 Resource Graph 總管中儲存查詢,請選取 [ 開啟查詢]。 當你準備好儲存查詢時,選擇 另存為 ,並在 儲存查詢中指定查詢名稱和描述,以及查詢是私人還是共享。

後續步驟