Prisma Cloud Rules Guide - Docker
Table of Contents
Expand all | Collapse all
-
- Getting started
- System Requirements
- Cluster Context
-
- Prisma Cloud Container Images
- Kubernetes
- Deploy the Prisma Cloud Console on Amazon ECS
- Console on Fargate
- Onebox
- Alibaba Cloud Container Service for Kubernetes (ACK)
- Azure Container Service (ACS) with Kubernetes
- Azure Kubernetes Service (AKS)
- Amazon Elastic Kubernetes Service (EKS)
- IBM Kubernetes Service (IKS)
- OpenShift v4
-
- Defender Types
- Manage your Defenders
- Redeploy Defenders
- Uninstall Defenders
-
- Deploy Orchestrator Defenders on Amazon ECS
- Automatically Install Container Defender in a Cluster
- Deploy Prisma Cloud Defender from the GCP Marketplace
- Deploy Defenders as DaemonSets
- VMware Tanzu Application Service (TAS) Defender
- Deploy Defender on Google Kubernetes Engine (GKE)
- Google Kubernetes Engine (GKE) Autopilot
- Deploy Defender on OpenShift v4
-
- Agentless Scanning Modes
-
- Onboard AWS Accounts for Agentless Scanning
- Onboard Azure Accounts for Agentless Scanning
- Configure Agentless Scanning for Azure
- Onboard GCP Accounts for Agentless Scanning
- Configure Agentless Scanning for GCP
- Onboard Oracle Cloud Infrastructure (OCI) Accounts for Agentless Scanning
- Configure Agentless Scanning for Oracle Cloud Infrastructure (OCI)
- Agentless Scanning Results
-
- Rule ordering and pattern matching
- Backup and Restore
- Custom feeds
- Configuring Prisma Cloud proxy settings
- Prisma Cloud Compute certificates
- Configure scanning
- User certificate validity period
- Enable HTTP access to Console
- Set different paths for Defender and Console (with DaemonSets)
- Authenticate to Console with Certificates
- Configure custom certs from a predefined directory
- Customize terminal output
- Collections
- Tags
- Logon settings
- Reconfigure Prisma Cloud
- Subject Alternative Names
- WildFire Settings
- Log Scrubbing
- Clustered-DB
- Permissions by feature
-
- Logging into Prisma Cloud
- Integrating with an IdP
- Integrate with Active Directory
- Integrate with OpenLDAP
- Integrate Prisma Cloud with Open ID Connect
- Integrate with Okta via SAML 2.0 federation
- Integrate Google G Suite via SAML 2.0 federation
- Integrate with Azure Active Directory via SAML 2.0 federation
- Integrate with PingFederate via SAML 2.0 federation
- Integrate with Windows Server 2016 & 2012r2 Active Directory Federation Services (ADFS) via SAML 2.0 federation
- Integrate Prisma Cloud with GitHub
- Integrate Prisma Cloud with OpenShift
- Non-default UPN suffixes
- Compute user roles
- Assign roles
-
- Prisma Cloud Vulnerability Feed
- Scanning Procedure
- Vulnerability Management Policies
- Vulnerability Scan Reports
- Scan Images for Custom Vulnerabilities
- Base images
- Vulnerability Explorer
- CVSS scoring
- CVE Viewer
-
- Configure Registry Scans
- Scan Images in Alibaba Cloud Container Registry
- Scan Images in Amazon Elastic Container Registry (ECR)
- Scan images in Azure Container Registry (ACR)
- Scan Images in Docker Registry v2 (including Docker Hub)
- Scan Images in GitLab Container Registry
- Scan images in Google Artifact Registry
- Scan Images in Google Container Registry (GCR)
- Scan Images in Harbor Registry
- Scan Images in IBM Cloud Container Registry
- Scan Images in JFrog Artifactory Docker Registry
- Scan Images in Sonatype Nexus Registry
- Scan images in OpenShift integrated Docker registry
- Scan Images in CoreOS Quay Registry
- Trigger Registry Scans with Webhooks
- Configure VM image scanning
- Configure code repository scanning
- Malware scanning
- Windows container image scanning
- Serverless Functions Scanning
- VMware Tanzu Blobstore Scanning
- Scan App-Embedded workloads
- Troubleshoot Vulnerability Detection
-
- Compliance Explorer
- Enforce compliance checks
- CIS Benchmarks
- Prisma Cloud Labs compliance checks
- Serverless functions compliance checks
- Windows compliance checks
- DISA STIG compliance checks
- Custom compliance checks
- Trusted images
- Host scanning
- VM image scanning
- App-Embedded scanning
- Detect secrets
- OSS license management
-
- Alert Mechanism
- AWS Security Hub
- Cortex XDR alerts
- Cortex XSOAR alerts
- Email alerts
- Google Cloud Pub/Sub
- Google Cloud Security Command Center
- IBM Cloud Security Advisor
- JIRA Alerts
- PagerDuty alerts
- ServiceNow alerts for Security Incident Response
- ServiceNow alerts for Vulnerability Response
- Slack Alerts
- Splunk Alerts
- Webhook alerts
- API
Prisma Cloud Rules Guide - Docker
This article provides a list of all rules and their intended behavior in Prisma Cloud Console UI.
The purpose of this article is to help users better understand the intention of each rule in the Console and it’s corresponding effect on the host environment.
Running Docker commands through Defender
To access Docker daemon through Defender, you must explicitly specify Defender’s host and port.
For example:
$ docker -H <DEFENDER_HOST_ADDRESS>:9998 run alpine
It is possible to make the management traffic between the Docker client and the Docker daemon flow through Defender by default via two environment variables.
Those can be configured on a remote machine that accesses Docker daemon on some host (such as dev laptop), or the host itself for users who do not have root privileges (which should be the majority of users).
$ export DOCKER_HOST=tcp://<defender host address>:9998
$ export DOCKER_TLS_VERIFY=1
Once set, default calls to Docker flow through Defender (e.g., docker ps, docker run alpine).
Throughout this guide however, in this guide, we have followed the default command without setting environment variables.
Containers
For more information about the Docker API for containers, see https://docs.docker.com/engine/api/v1.30/#tag/Container.
container_list - List containers
Affects docker ps command on host which is used to list all running containers.
Command:
docker -H 10.0.0.1:9998 --tlsverify ps
Response:
[Prisma Cloud] The command container_list denied for user admin by rule Deny
container_create - Create a container
Affects docker create command used to create a new container.
Command:
docker -H 10.0.0.1:9998 --tlsverify create morello/docker-whale
Response:
[Prisma Cloud] The command container_create denied for user admin by rule Deny
container_inspect - Inspect a container
Affects docker inspect command used for returning information about the container.
Command:
docker -H 10.0.0.1 --tlsverify inspect ubuntu_bash2
Response:
[Prisma Cloud] The command container_inspect denied for user admin by rule inspect
container_top - List processes running inside a container
Affects docker top command used to display the running processes of a container
Command:
docker -H 10.0.0.1:9998 --tlsverify top ubuntu_bash
Response:
[Prisma Cloud] The command container_top denied for user admin by rule Deny
container_logs - Get container logs
Affects docker logs command used for returning logs from the container present at the time of execution.
Command:
docker -H 10.0.0.1 --tlsverify logs ubuntu_bash2
Response:
[Prisma Cloud] The command container_logs denied for user admin by rule logs
container_changes - Inspect changes on a container’s filesystem
Affect docker commit command and restricts any changes to the container.
Command:
docker -H 10.0.0.1 --tlsverify commit --change "ENV DEBUG true" cc2d57988b aqsa/testimage:version3
Response:
[Prisma Cloud] The command container_commit denied for user admin by rule commit
container_export - Export a container
Affects docker export command that exports a container’s filesystem as a tar archive
Command:
docker -H 10.0.0.1:9998 --tlsverify export twistlock_console -o saved.tar
Response:
[Prisma Cloud] The command container_export denied for user admin by rule export
container_stats - Get container stats based on resource usage
Affects docker stats command on host which returns live data stream for running containers.
Command:
docker -H 10.0.0.1 --tlsverify stats silly_stallman
Response:
[Prisma Cloud] The command container_stats denied for user admin by rule status
container_resize - Resize a container
Affects docker logs command used for returning logs from the container present at the time of execution. This related to the size of the window of how output is returned from the container. It is called TTY.
Command:
Response:
container_start - Start a container
Affects docker start command used to start one or more stopped containers
Command:
docker -H 10.0.0.1:9998 --tlsverify start ubuntu_bash
Response:
[Prisma Cloud] The command container_start denied for user admin by rule Deny all
container_stop - Stop a container
Affects docker stop command used to stop running container
Command:
docker -H 10.0.0.1:9998 --tlsverify stop ubuntu_bash
Response:
[Prisma Cloud] The command container_stop denied for user admin by rule Deny
container_restart - Restart a container
Affects docker restart command on host, used to restart a container.
Command:
docker -H 10.0.0.1:9998 --tlsverify restart ubuntu_bash
Response:
[Prisma Cloud] The command container_restart denied for user admin by rule Deny
container_kill - Kill a container
Affects docker kill command used to kill a running container.
Command:
docker -H 10.0.0.1:9998 --tlsverify kill ubuntu_bash
Response:
[Prisma Cloud] The command container_kill denied for user admin by rule Deny
container_rename - Rename a container
Affects docker rename command on host that is used to rename a container.
Command:
docker -H 10.0.0.1:9998 --tlsverify rename ubuntu_bash unbuntu
Response:
[Prisma Cloud] The command container_rename denied for user admin by rule Deny Error: failed to rename container named ubuntu_bash
container_pause - Pause a container
Affects docker pause command on host which is used to pause all processes within one or more containers.
Command:
docker -H 10.0.0.1 --tlsverify pause focused_cori
Response:
[Prisma Cloud] The command container_pause denied for user admin by rule Deny
container_unpause - Unpause a container
Affects docker unpause command on host which is used to un-suspend all processes in a container.
Command:
docker -H 10.0.0.1 --tlsverify unpause silly_stallman
Response:
[Prisma Cloud] The command container_unpause denied for user admin by rule unpause
container_attach - Attach to a container
Affects docker attach command on host where defender is deployed.
Command:
docker -H 10.0.0.1 --tlsverify attach mycontainer
Response:
[Prisma Cloud] The command container_attach denied for user admin by rule attach persistent connection closed
container_attachws - Attach to a container (websocket)
Affects docker attach command on host where defender is deployed. Attach to the container id via websocket. Implements websocket protocol handshake according to RFC 6455
Command:
docker -H 10.0.0.1 --tlsverify attach mycontainer
Response:
[Prisma Cloud] The command container_attach denied for user admin by rule attach persistent connection closed
container_wait - Wait a container
Affects docker wait command used to block until a container stops, then print its exit code.
Command:
docker -H 10.0.0.1:9998 --tlsverify wait ubuntu_bash
Response:
[Prisma Cloud] The command container_wait denied for user admin by rule Deny
container_delete - Remove a container
Affects docker rm command used for deleting a container.
Command:
docker -H 10.0.0.1:9998 --tlsverify rm <container>
Response:
[Prisma Cloud] The command container_delete denied for user admin by rule delete
container_archive - Gets an archive of filesystem resource in a container
Get a tar archive of a resource in the filesystem of container id. Affects docker cp command
Command:
docker -H 10.0.0.1:9998 --tlsverify cp <container> > latest.tar
Response:
[Prisma Cloud] The command container_copy denied for user admin by rule delete
container_extract - Extract an archive of files or folders to a directory in a container
Affects docker export command. Uploads a tar archive to be extracted to a path in the filesystem of container id
Command:
docker -H 10.0.0.1:9998 --tlsverify cp <container> > latest.tar
Response:
[Prisma Cloud] The command container_exec_start denied for user admin by rule exec
Images
For more information about the Docker API for images, see https://docs.docker.com/engine/api/v1.30/#tag/Image.
image_list - List images
Affects docker images command used to list all images
Command:
docker -H 10.0.0.1:9998 --tlsverify images
Response:
[Prisma Cloud] The command image_list denied for user admin by rule Deny
image_build - Build image from a Dockerfile
Affects docker build command that is used to build an image from a Dockerfile.
Command:
docker -H 172.18.0.1:9998 --tlsverify build -t aqsa/testimage:v2 .
Response:
[Prisma Cloud] The command image_build denied for user admin by rule Default - deny all
image_create - Create an image
Affects docker pull command which is used to pull an image
Command:
docker -H 10.0.0.1:9998 --tlsverify pull ubuntu:latest
Response:
[Prisma Cloud] The command image_create denied for user admin by rule Deny
image_inspect - Inspect an image
Description
Affects docker inspect command used for returning information about the container.
Command:
docker -H 10.0.0.1:9998 --tlsverify inspect 28e7d49f8e6d
Response:
[Prisma Cloud] The command image_inspect denied for user admin by rule images
image_history - Get the history of an image
Affects docker history <image> command.
Command:
docker -H 172.18.0.1:9998 --tlsverify history twistlock
Response:
[Prisma Cloud] The command image_history denied for user admin by rule Default - deny all
image_push - Push an image on the registry
Affects command docker push for pushing an image to repository
Command:
docker -H 10.0.0.1:9998 --tlsverify push ubuntu:latest
Response:
[Prisma Cloud] The command image_push denied for user admin by rule Deny
image_tag - Tag an image into a repository
Affects docker tag command used to tag an image in the repository
Command:
docker -H 10.0.0.1:9998 --tlsverify tag ubuntu:latest aqsa:tag
Response:
[Prisma Cloud] The command image_tag denied for user admin by rule Deny
image_delete - Remove an image
Affects docker rmi command used to delete an image
Command:
docker -H 10.0.0.1:9998 --tlsverify rmi aqsa/testimage:version3
Response:
[Prisma Cloud] The command image_delete denied for user admin by rule Deny
images_search - Search images
Affects docker search command which gives a list of available images matching the search item.
Command:
docker -H 10.0.0.1:9998 --tlsverify search twistlock
Response:
[Prisma Cloud] The command images_search denied for user admin by rule deny
MISC
Misc other docker commands.
docker_check_auth - Check auth configuration
Validates credentials for a registry and get identity token, if available, for accessing the registry without password. Affects docker login on the host.
Command:
docker -H 172.18.0.1:9998 --tlsverify login
Response:
[Prisma Cloud] The command docker_info denied for user admin by rule Default - deny all
docker_info - Display system-wide information
Affects docker info command used to display system-wide information
Command:
docker -H 10.0.0.1:9998 --tlsverify info
Response:
[Prisma Cloud] The command docker_info denied for user admin by rule Deny
docker_version - Show the docker version information
Affects docker version command on host which is used to find docker version.
Command:
docker -H 10.0.0.1 --tlsverify version
Response:
[Prisma Cloud] The command docker_version denied for user admin by rule version
docker_ping - Ping the docker server
The goal of this api is to ping the Docker server and make sure it is up and running.
Command:
It is intended to be called by an external monitoring system. It does not have a direct docker CLI command.
container_commit - Create a new image from a container’s changes
Affects docker commit command used for committing container’s file changes etc into a new image.
Command:
docker -H 10.0.0.1 --tlsverify commit --change "ENV DEBUG true" cc2d57988b aqsa/testimage:version3
Response:
[Prisma Cloud] The command container_commit denied for user admin by rule commit
docker_events - Monitor docker’s events
Affects docker events command on host which is used to return real time events from the server.
Command:
docker -H 10.0.0.1 --tlsverify events
Response:
[Prisma Cloud] The command docker_events denied for user admin by rule events
images_archive - Get a tarball containing all images
Affects docker save command to save images to a tar archive
Command:
docker -H 172.17.0.1:9998 --tlsverify save $(docker images -q) -o home/aqsa/mydockersimages.tar
Response:
[Prisma Cloud] The command images_archive denied for user admin by rule Default - deny all
images_load - Load a tarball with a set of images and tags into docker
Affects docker load command to load an image from a tar archive or STDIN
Command:
docker -H 172.17.0.1:9998 --tlsverify load -i /home/aqsa/twistlock_1_6_81.tar.gz
Response:
[Prisma Cloud] The command images_load denied for user admin by rule Default - deny all
container_exec_create - Exec Create
Affects docker_exec command to create any new container.
Command:
docker -H 10.0.0.1 --tlsverify exec -d ubuntu_bash2 touch /tmp/execWorks
Response:
[Prisma Cloud] The command container_exec_start denied for user admin by rule exec
container_exec_start - Exec Start
Affects docker exec command used for running a command in a running container.
Command:
docker -H 10.0.0.1 --tlsverify exec -d ubuntu_bash2 touch /tmp/execWorks
Response:
[Prisma Cloud] The command container_exec_start denied for user admin by rule exec
container_exec_inspect - Exec Inspect
Affects docker exec command used for running a command in a running container.
Command:
docker -H 10.0.0.1 --tlsverify exec -d ubuntu_bash2 touch /tmp/execWorks
Response:
[Prisma Cloud] The command container_exec_start denied for user admin by rule exec
container_archive_head
Command:
docker -H 10.0.0.1 --tlsverify unpause silly_stallman
Response:
[Prisma Cloud] The command container_unpause denied for user admin by rule unpause
container_copyfiles
Affects docker cp command used to copy files from and to containers and local file system on host.
Command:
docker -H 10.0.0.1 --tlsverify cp file mycontainer:~
Response:
[Prisma Cloud] The command container_copyfiles denied for user admin by rule unpause
Volumes
For more information about the Docker API for volumes, see https://docs.docker.com/engine/api/v1.30/#tag/Volume.
volume_list - List volumes
Affects docker volume ls command to list all volumes
Command:
docker -H 10.0.0.1:9998 --tlsverify volume ls
Response:
[Prisma Cloud] The command volume_list denied for user admin by rule Deny
volume_create - Create a volume
Affects docker volume create command to create a volume
Command:
docker -H 10.0.0.1:9998 --tlsverify volume create
Response:
[Prisma Cloud] The command volume_create denied for user admin by rule Deny
volume_inspect - Inspect a volume
Affects docker volume inspect command to display detailed information on one or more volumes
Command:
docker -H 10.0.0.1:9998 --tlsverify volume inspect f1c7
Response:
[Prisma Cloud] The command volume_inspect denied for user admin by rule Deny
volume_remove - Remove a volume
Affects docker volume rm command to remove one or more volumes
Command:
docker -H 10.0.0.1:9998 --tlsverify volume rm f671
Response:
[Prisma Cloud] The command volume_remove denied for user admin by rule Deny
Networks
For information about the Docker API for networks, see https://docs.docker.com/engine/api/v1.30/#tag/Network.
network_list - list networks
Affects docker network ls to list networks
Command:
docker -H 172.17.0.1:9998 --tlsverify network ls
Response:
[Prisma Cloud] The command network_list denied for user admin by rule Default - deny all
network_inspect - Inspect network
Affects docker network inspect to display detailed information on one or more networks
Command:
docker -H 172.17.0.1:9998 --tlsverify network inspect 82b1c
Response:
[Prisma Cloud] The command network_inspect denied for user admin by rule Default - deny all
network_create - Create a network
Affects docker network create to create a network
Command:
docker -H 172.17.0.1:9998 --tlsverify network create new-network
Response:
[Prisma Cloud] The command network_create denied for user admin by rule Default - deny all
network_connect - Connect a container to a network
Affects docker network connect to connect a container to a network
Command:
docker -H 172.17.0.1:9998 --tlsverify network connect new-network container1
Response:
[Prisma Cloud] The command network_connect denied for user admin by rule Default - deny all
network_disconnect - Disconnect a container from a network
Affects docker network disconnect to disconnect a container from a network
Command:
docker -H 172.17.0.1:9998 --tlsverify network disconnect new-network container1
Response:
[Prisma Cloud] The command network_disconnect denied for user admin by rule Default - deny all
network_remove - Remove a network
Affects docker network rm to remove one or more networks
Command:
docker -H 172.17.0.1:9998 --tlsverify network rm new-network
Response:
[Prisma Cloud] The command network_remove denied for user admin by rule Default - deny all
Secrets
Secrets are added in Prisma Cloud 2.0 in accordance with Docker Engine API v1.26.
For more information about the Docker API for secrets, see https://docs.docker.com/engine/api/v1.30/#tag/Secret.
secret_list - List secrets
Affects docker secret ls command used to list secrets.
Command:
docker -H 10.0.0.1:9998 --tlsverify secret ls
Response:
[Prisma Cloud] The command secret_ls denied for user admin by rule Default - deny all
secret_create - Create secrets
Affects docker secret create command used to create secrets.
Command:
docker -H 10.0.0.1:9998 --tlsverify secret create my-secret ./aqsa.json
Response:
[Prisma Cloud] The command secret_create denied for user admin by rule Default - deny all
secret_inspect - Inspect secrets
Affects docker secret inspect command used to inspect secrets.
Command:
docker -H 10.0.0.1:9998 --tlsverify secret inspect <id>
Response:
[Prisma Cloud] The command secret_inspect denied for user admin by rule Default - deny all
secret_remove - Delete secrets
Affects docker secret rm command used to remove one or more secrets.
Command:
docker -H 10.0.0.1:9998 --tlsverify secret rm aqsa.json
Response:
[Prisma Cloud] The command secret_rm denied for user admin by rule Default - deny all
secret_update - Update a secret
Affects POST /secrets/{id}/update command used to remove one or more secrets.
Command:
Response: