SV-253534r1043177_rule
V-253534
SRG-APP-000142-CTR-000330
CNTR-PC-000500
CAT II
10
For Kubernetes deployment:
Edit the deployment.apps/twistlock-console.
Find the - name: TargetPorts below 1024.
Change to port number above 1024.
Save and exit the editing session. The Console will restart automatically.
For Docker deployment:
Modify the twistlock.cfg located in the extracted release tar directory.
Change any port assignment below 1024 to above 1024:
MANAGEMENT_PORT_HTTP=
MANAGEMENT_PORT_HTTPS=8083
COMMUNICATION_PORT=8084
Redeploy the Console using the twistlock.sh script in the extracted release tar directory:
$ sudo ./twisltock.sh -sy onebox
For Kubernetes deployment:
Query the ports used by the twistlock-console service:
$ kubectl describe svc twistlock-console -n twistlock
If any port number is below 1024, this is a finding.
For Docker deployment:
Determine the name of the Console container:
docker ps|grep console
For example, the Console container is: ad8b41a2fec9
ad8b41a2fec9
twistlock/private:console_22_01_840
Inspect the container's PortBindings:
docker inspect ad8b41a2fec9|grep PortBindings -A 20
If the port is below 1024, this is a finding.
V-253534
False
CNTR-PC-000500
For Kubernetes deployment:
Query the ports used by the twistlock-console service:
$ kubectl describe svc twistlock-console -n twistlock
If any port number is below 1024, this is a finding.
For Docker deployment:
Determine the name of the Console container:
docker ps|grep console
For example, the Console container is: ad8b41a2fec9
ad8b41a2fec9
twistlock/private:console_22_01_840
Inspect the container's PortBindings:
docker inspect ad8b41a2fec9|grep PortBindings -A 20
If the port is below 1024, this is a finding.
M
5473