report (rpt)

說明

Report 會產生指定類型的AppScan® Source報告,包括發現項目報告和AppScan® Source報告。使用這個指令需要有效的 AppScan® Source for Automation 授權。

可用的報告輸出格式為 HTML、PDF 和 zip。

語法

report "<report type>" <output format> <output location>
[<assessment id>] [-includeHowToFix] [-includeSrcBefore:<n>] [-includeSrcAfter:<n>]
[-includeTrace:<definitive|suspect|coverage>]
[-classification:<definitive|suspect|coverage>] [-severity:<high|medium|low|info>] 
  • report type:要產生的報告名稱,以雙引號括住。指定下列其中一項:
    • 發現項目報告:
      • 發現項目
      • 依修正群組分類的發現項目
      • 發現項目(依類型)
      • 發現項目(依分類)
      • 發現項目(依檔案)
      • 發現項目(依 API)
      • 發現項目(依組合)
      • 依 CWE 分類的發現項目
    • AppScan® Source 報告:
      • 2024 CWE 前 25 大最危險的軟體弱點
      • 2025 CWE 前 25 大最危險的軟體弱點
      • DISA Application Security and Development STIG V5R3
      • DISA Application Security and Development STIG V6R3
      • OWASP API 安全性十大 2023
      • OWASP 前 10 大 API 安全性 2019
      • OWASP Mobile Top 10
      • 2021 年 OWASP 前 10 位
      • OWASP 2025 年前十大
      • PCI Data Security Standard V4.0
      • Software Security Profile
    • 自訂報告(如果有的話)。

    在輸入報告類型時(以雙引號括住),請輸入與上述清單完全相同的字串。例如「依分類的發現項目」或「軟體安全設定檔」。

  • output format:為此報告指定下列其中一種格式:
    • html:以 HTML 格式產生報告並在線上顯示。
    • zip:建立包含所有 HTML 報告元件的 ZIP 檔案
    • 如果是 PDF 格式的報告,您可以指定詳細程度:
      • pdf-summary:包含每個自訂報告群組的計數
      • pdf-detailed:包含每個 API 中每個漏洞內容的計數
      • pdf-comprehensive:包含每個 API 的所有發現項目的表格
      • pdf-annotated:包含所有發現項目、發現項目中附帶的所有附註,以及指定的程式碼片段
      • output location:寫入報告的檔案路徑。
  • output location:指定您要儲存報告的絕對路徑和檔案名稱。
  • assessment id:選用。評估 ID,可從listassess (la)指令取得。如果您省略評量 ID,則會從最新掃描產生報告。
  • -includeHowToFix:選用。包括有關如何處理和修正發現項目的建議資訊。
  • -includeSrcBefore:<n>:選用。報告中每個發現項目前要包含的原始碼行數。
  • -includeSrcAfter:<n>:選用。報告中每個發現項目後要包含的原始碼行數。
  • -includeTrace:<definitive|suspect|coverage>:選用。在明確、可疑或掃描涵蓋面發現項目的報告中併入追蹤資訊(請參閱 分類 以瞭解發現項目分類)。
  • -classification:<definitive|suspect|coverage>:選用。依分類篩選。
  • -severity:<high|medium|low|info>:選用。依嚴重性篩選。
Note: -includeTrace-classification-severity 選項可以指定多次。

範例

  • 要求一份 HTML 格式的發現項目(依 API)報告。在報告中,併入明確發現項目的追蹤資訊:
    AllApplications>> report "Findings by API" html 
    C:\reports\findings.html -includeTrace:definitive
  • 使用現有評估 542,要求產生 OWASP Top 10 AppScan® Source 報告並以包含完整詳細資訊的 PDF 格式寫入:
    AllApplications>> report "OWASP Top 10 2021" pdf-comprehensive
    /reports/webgoat_OWASP_21_comp.pdf 542