ExamGecko
Question list
Search
Search

List of questions

Search

Question 209 - PCCSE discussion

Report
Export

Given the following information, which twistcli command should be run if an administrator were to exec into a running container and scan it from within using an access token for authentication?

* Console is located at https://prisma-console.mydomain.local

* Token is: TOKEN_VALUE

* Report ID is: REPORTJD

* Container image running is: myimage:latest

A.
twistcli images scan --address https://prisma-console.mydomain.local ---token TOKENVALUE ---containerized ---details myimage:latest
Answers
A.
twistcli images scan --address https://prisma-console.mydomain.local ---token TOKENVALUE ---containerized ---details myimage:latest
B.
twistcli images scan ---console-address https://prisma-console.mydomain.local ---auth-token MY_TOKEN ---local-scan ---details myimage:latest
Answers
B.
twistcli images scan ---console-address https://prisma-console.mydomain.local ---auth-token MY_TOKEN ---local-scan ---details myimage:latest
C.
twistcli images scan ---address https://prisma-console.mydomain.local ---token TOKEN_VALUE ---containerized --details REPORT_ID
Answers
C.
twistcli images scan ---address https://prisma-console.mydomain.local ---token TOKEN_VALUE ---containerized --details REPORT_ID
D.
twistcli images scan --console-address https://prisma-console.mydomain.local --auth-token TOKEN_VALUE ---containerized ---vulnerability-details REPORT_ID
Answers
D.
twistcli images scan --console-address https://prisma-console.mydomain.local --auth-token TOKEN_VALUE ---containerized ---vulnerability-details REPORT_ID
Suggested answer: C

Explanation:

The response from Jihe would be correct if this wasn't be run from within the container. In the question, we are running from inside the container, and therefor there is no need to specify an image/tarball. https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin-compute/tools/twistcli_scan_image Further down in the documentation linked by Jihe, there is a section that shows the proper syntax when running twistcli from within a container. The example there is almost a perfect copy of this question. Spippolo has the correct response.

$ docker run \

-v /PATH/TO/TWISTCLI_DIR:/tools \

-e TW_TOKEN=<API_TOKEN> \

-e TW_CONSOLE=<COMPUTE_CONSOLE> \

--entrypoint='' \

<IMAGE_NAME> \

/tools/twistcli images scan \

--containerized \

--details \

--address $TW_CONSOLE \

--token $TW_TOKEN \

<REPORT_ID>

https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin-compute/tools/twistcli_scan_images

asked 23/09/2024
Thanh Phan
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first