twistcli Flashcards

1
Q

Where are the twistcli binaries located in Prisma Cloud Console for download?

A

Runtime Security > Manage > System > Utilities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can twistcli be downloaded in case of automated workflows?

A

from the API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What has to be installed on the executing machine for image scanning?

A

Docker Engine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the variable COMPUTE_CONSOLE represent?

A

the address for the Console

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do most twistcli functions require?

A

connectivity to Console

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the twistcli command for scanning container images for vulnerabilities and compliance issues?

A

twistcli images scan [OPTIONS] [IMAGE]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Where does the image need to reside when performing a scan?

A

On the system where twistcli runs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the twistcli images scan function do?

A

Collects information about the packages and binaries in the container image, and then sends it to Console for analysis.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the data collected by twistcli include? (3)

A
  1. Packages in the image
  2. Files installed by each package
  3. Hashes for each file in the image
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does twistcli do after Console analyzes the image for vulnerabilities? (2)

A
  1. Outputs a summary report.
  2. Exits with a pass or fail return value.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Scan results can be retrieved in which format from the Console using API calls?

A

JSON

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is used to specify an image to scan?

A

Either the image ID, or repository name and tag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

If a repository is specified with a tag, twistcli looks for an image tagged with which tag?

A

latest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the return value if twistcli finds no vulnerabilities or compliance issues?

A

0, otherwise the code is 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe the --address URI option. Is it required?

A
  • Complete URI for Console, including the protocol and port
  • Only the HTTPS protocol is supported
  • By default, Console listens to HTTPS on port 8083, although your administrator can configure Console to listen on a different port.
  • Required

–address https://console.example.com:8083

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Describe the -u option. Is it required?

A
  • Username to access Console.
  • Required
17
Q

Describe the -p option. Is it required?

A
  • Password for the user specified with -u, –user
  • If not specified on the command-line, you are prompted for the user’s password before the scan runs
  • Not Required
18
Q

Describe the --details option.

A

Prints an itemized list of each vulnerability found by the scanner.

19
Q

Describe the --containerized option.

A

Run the scan from inside the container.

20
Q

Describe the --docker-tlscacert PATH option.

A

Path to Docker client CA certificate.

21
Q

Describe the --docker-tlscert PATH option.

A

Path to Docker client Client certificate.

22
Q

Describe the --docker-tlskey PATH option.

A

Path to Docker client Client private key.

23
Q

Describe the --tlscacert PATH option.

A

Path to Prisma Cloud CA certificate file. If no CA certificate is specified, the connection to Console is insecure.

24
Q

If building and deploying images on OpenShift Container Platform (OCP), and utilizing their Jenkins infrastructure, what command should be invoked to scan immages?

A

twistcli hosts scan command, not the twistcli images scan command

25
Q

What are the shortcomings of scanning from inside a container?

A
  1. Automating the scan in your continuous integration pipeline is more difficult
  2. Image metadata, such as registry, repository, and tag aren’t available in the scan report. When twistcli is run from outside the container, this information is retrieved from the Docker API
  3. The image ID isn’t available in the scan report because it cannot be determined when the scan is run from inside a container
  4. The scan report won’t show a layer-by-layer analysis of the image