Property
Languageterraform
Severitymedium
Vulnerability Typeomission

Description#

The Dockerfile exposes port 22, which is commonly used for SSH access. This configuration can allow external users to attempt direct SSH connections to the container, increasing the attack surface.

Impact#

If exploited, attackers could attempt unauthorized SSH access to the container, leading to potential compromise of the container environment, data exposure, or use of the container as a foothold for further attacks within the infrastructure.

Resolution#

Remove ‘EXPOSE 22’ statement from the Dockerfile