terrier: Image and Container analysis tool
Terrier
Terrier is an Image and Container analysis tool that can be used to scan OCI images and Containers to identify and verify the presence of specific files according to their hashes.
What does Terrier do?
It is a CLI tool that allows you to:
- Scan an OCI image for the presence of one or more files that match one or more provided SHA256 hashes
- Scan a running Container for the presence of one or more files that match one or more provided SHA256 hashes
What is Terrier useful for?
Scenario 1
It can be used to verify if a specific OCI image is making use of a specific binary, which use in a supply chain verification scenario. For example, we may want to check that a specific Docker image is making use of a specific version or versions of cURL. In this case, Terrier is supplied with the SHA256 hashes of the binaries that are trusted.
An example YAML file for this scenario might look like this:
Scenario 2
It can be used to verify the presence of a particular file or files in an OCI image according to a set of provided hashes. This can be useful to check if an OCI image contains a malicious file or a file that is required to be identified.
An example YAML file for this scenario might look like this:
Scenario 3
It can be used to verify the components of Containers at runtime by analyzing the contents of /var/lib/docker/overlay2/…/merged An example YAML file for this scenario might look like this:
Download & Use
Copyright 2019 Salesforce.com, Inc.