Packages Path column is excluded from Vulnerabilities CSV reports in Prisma Cloud Compute

Packages Path column is excluded from Vulnerabilities CSV reports in Prisma Cloud Compute

7476
Created On 01/20/22 16:59 PM - Last Modified 01/19/23 22:06 PM


Symptom


In the Vulnerabilities CSV file for Images and Hosts, there are many columns to get more detailed information about your image or host.

Environment


  • Prisma Cloud Compute SaaS version.
  • Prisma Cloud Compute Self-Hosted version 20.12 and above.


Cause


Downloading a CSV file or generating one using APIs is very useful for getting a detailed report of your image/host vulnerabilities as well as the packages included in it. In the console, if you click on any image, you will be able to see your packages and their path (if exists).
In Prisma Cloud Compute console:
  1. Go to: 
    Monitor > Vulnerabilities > Images
  2.  Click on any image and go to Package info tab.
  3. A list of your image packages will show on the screen.
  4. One of the columns that you will be able to see is the path for each package as shown below:
KBB.png


​​​​​​​However, this particular column is excluded in the CSV report because paths can sometimes exceed the char column limit which might affect the CSV file.
 


Resolution


  1. If the path for the package is necessary, one can generate a JSON file using the following API:
curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X GET \
"https://<CONSOLE>/api/v1/images?id=<IMAGE_ID>" \
> images.json
  1. This will generate the packages in the image as well as the path for each package as shown below:
Screen Shot 2022-01-20 at 10.52.35 AM.png
 
 


Additional Information


 



    Actions
    • Print
    • Copy Link

      https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u0000004MuKCAU&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

    Choose Language