# yaml-language-server: $schema=../../schemas/dsomm-schema-test-and-verification.json --- Test and Verification: Static depth for infrastructure: Test for image lifetime: uuid: ddfe7c3c-b7a4-4cba-9041-b044d4a34e5b risk: Old container images in production indicate that patch management is not performed and therefore vulnerabilities might exists. measure: Check the image age of containers in production. difficultyOfImplementation: knowledge: 2 time: 1 resources: 1 usefulness: 2 level: 2 implementation: - $ref: src/assets/YAML/default/implementations.yaml#/implementations/clusterscanner references: samm2: - V-ST-A-1 iso27001-2017: - 12.6.1 - 14.2.5 iso27001-2022: - 8.8 - 8.27 comments: "" Software Composition Analysis: uuid: 26e1c6d5-5632-4ec7-80d2-e564b98732ad risk: Known vulnerabilities in infrastructure components like container images might get exploited. measure: Check for known vulnerabilities difficultyOfImplementation: knowledge: 2 time: 1 resources: 1 usefulness: 4 level: 4 description: Subscribing to Github projects and reading release notes might help. Software Composition Analysis for infrastructure might help, but is often too fine-granular. implementation: - $ref: src/assets/YAML/default/implementations.yaml#/implementations/trivy - $ref: src/assets/YAML/default/implementations.yaml#/implementations/registries-like-quay - $ref: src/assets/YAML/default/implementations.yaml#/implementations/dependencyTrack references: samm2: - V-ST-A-2 iso27001-2017: - 12.6.1 iso27001-2022: - 8.8 tags: ["scanning", "sca"] comments: "" Test for malware: uuid: 837f8f90-adc2-4e6b-9ebb-60c2ee29494d risk: Third party might include malware. Ether due to the maintainer (e.g. typo squatting of an image name and using the wrong image) or by an attacker on behalf of the maintainer with stolen credentials. measure: Check for malware in components (e.g. container images, VM baseline images, libraries). difficultyOfImplementation: knowledge: 2 time: 2 resources: 2 usefulness: 3 level: 3 implementation: - $ref: src/assets/YAML/default/implementations.yaml#/implementations/clusterscanner references: samm2: - V-ST-A-2 iso27001-2017: - 12.2.1 iso27001-2022: - 8.7 comments: "" Test for new image version: uuid: cb6321aa-0fbf-4996-9e08-05ab26ef4c1e risk: When a new version of an image is available, it might fix security vulnerabilities. measure: Check for new images of containers in production. difficultyOfImplementation: knowledge: 3 time: 3 resources: 1 usefulness: 2 level: 3 implementation: [] references: samm2: - V-ST-A-2 iso27001-2017: - 12.6.1 - 14.2.5 - 12.2.1 iso27001-2022: - 8.8 - 8.7 - 8.27 comments: "" Correlate known vulnerabilities in infrastructure with new image versions: uuid: 7de0ae33-6538-45cd-8222-a1475647ba58 risk: TODO. measure: TODO difficultyOfImplementation: knowledge: 2 time: 5 resources: 4 usefulness: 1 level: 4 dependsOn: - 485a3383-7f2e-4dba-bb84-479377070904 # Usage of a maximum lifetime for images implementation: - $ref: src/assets/YAML/default/implementations.yaml#/implementations/anchore-io - $ref: src/assets/YAML/default/implementations.yaml#/implementations/clair - $ref: src/assets/YAML/default/implementations.yaml#/implementations/openscap - $ref: src/assets/YAML/default/implementations.yaml#/implementations/vuls references: samm2: - V-ST-A-1 iso27001-2017: - 12.6.1 - 14.2.1 iso27001-2022: - 8.8 - 8.25 comments: "" Test for stored secrets in code: uuid: c6e3c812-56e2-41b0-ae01-b7afc41a004c risk: Stored secrets in git history or directly in code shouldn't exists because they might be exposed to unauthorized parties. measure: Test for secrets in code and git history difficultyOfImplementation: knowledge: 2 time: 1 resources: 2 usefulness: 2 level: 1 implementation: - $ref: src/assets/YAML/default/implementations.yaml#/implementations/trufflehog - $ref: src/assets/YAML/default/implementations.yaml#/implementations/go-pillage-registrie references: samm2: - V-ST-A-1 iso27001-2017: - vcs usage is not explicitly covered by ISO 27001 - too specific - 9.4.3 - 10.1.2 iso27001-2022: - vcs usage is not explicitly covered by ISO 27001 - too specific - 5.17 - 8.24 comments: "" Test for stored secrets in build artifacts: uuid: d5e6303c-d5c6-4d59-b258-a3b9de38a07f risk: Stored secrets in container images or other build artifacts shouldn't exists because they might be exposed to unauthorized parties. measure: Test for secrets in container images and other artifacts difficultyOfImplementation: knowledge: 2 time: 1 resources: 2 usefulness: 2 level: 1 implementation: - $ref: src/assets/YAML/default/implementations.yaml#/implementations/trufflehog - $ref: src/assets/YAML/default/implementations.yaml#/implementations/go-pillage-registrie references: samm2: - V-ST-A-1 iso27001-2017: - vcs usage is not explicitly covered by ISO 27001 - too specific - 9.4.3 - 10.1.2 iso27001-2022: - vcs usage is not explicitly covered by ISO 27001 - too specific - 5.17 - 8.24 comments: "" Test cluster deployment resources: uuid: 621fb6a5-5c0a-4408-826a-068868bb031b risk: The deployment configuration (e.g. kubernetes deployment resources) might contain unsecured configurations. measure: Test the deployment configuration for virtualized environments for unsecured configurations. difficultyOfImplementation: knowledge: 2 time: 1 resources: 2 usefulness: 3 level: 2 implementation: - $ref: src/assets/YAML/default/implementations.yaml#/implementations/kubesec references: samm2: - V-ST-A-1 iso27001-2017: - System hardening is not explicitly covered by ISO 27001 - too specific - 12.6.1 - 14.2.3 - 14.2.8 iso27001-2022: - System hardening is not explicitly covered by ISO 27001 - too specific - 8.8 - 8.32 - 8.29 comments: "" Test of infrastructure components for known vulnerabilities: uuid: 13367d8f-e37f-4197-a610-9ffca4fde261 risk: Infrastructure components might have vulnerabilities. measure: Test for known vulnerabilities in infrastructure components. Often, the only way to respond to known vulnerabilities in operating system packages is to accept the risk and wait for a patch. As the patch needs to be applied fast when it is available, this activity depends on 'Usage of a maximum life for images'. difficultyOfImplementation: knowledge: 2 time: 5 resources: 2 usefulness: 1 level: 4 dependsOn: - 485a3383-7f2e-4dba-bb84-479377070904 # Usage of a maximum lifetime for images implementation: - $ref: src/assets/YAML/default/implementations.yaml#/implementations/anchore-io - $ref: src/assets/YAML/default/implementations.yaml#/implementations/clair - $ref: src/assets/YAML/default/implementations.yaml#/implementations/openscap - $ref: src/assets/YAML/default/implementations.yaml#/implementations/vuls references: samm2: - V-ST-A-1 iso27001-2017: - 12.6.1 - 14.2.1 iso27001-2022: - 8.8 - 8.25 comments: "" Test of virtualized environments: uuid: 58825d22-1ce6-4748-af81-0ec9956e4129 risk: Virtualized environments (e.g. via Container Images) might contains unsecure configurations. measure: Test virtualized environments for unsecured configurations. difficultyOfImplementation: knowledge: 2 time: 1 resources: 2 usefulness: 3 level: 2 implementation: - $ref: src/assets/YAML/default/implementations.yaml#/implementations/dive-to-inspect-a-co - $ref: src/assets/YAML/default/implementations.yaml#/implementations/clusterscanner references: samm2: - V-ST-A-1 iso27001-2017: - ISO 27001:2017 mapping is missing iso27001-2022: - ISO 27001:2022 mapping is missing comments: "" Test the cloud configuration: uuid: 46d6a2a8-f9dc-4c15-9fc8-1723cfecbddc risk: Standard hardening practices for cloud environments are not performed leading to vulnerabilities. measure: With the help of tools, the configuration of virtual environments are tested. difficultyOfImplementation: knowledge: 2 time: 2 resources: 1 usefulness: 4 level: 2 implementation: - $ref: src/assets/YAML/default/implementations.yaml#/implementations/kube-bench references: samm2: - V-ST-A-1 iso27001-2017: - System hardening is not explicitly covered by ISO 27001 - too specific - 12.6.1 - 14.2.3 - 14.2.8 iso27001-2022: - System hardening is not explicitly covered by ISO 27001 - too specific - 8.8 - 8.32 - 8.29 comments: "" Test the definition of virtualized environments: uuid: 8fc3de67-7b8d-420b-8d24-f35928cfed6e description: For containier (images), test that the images are following best practices like distroless or non-root. risk: The definition of virtualized environments (e.g. via Dockerfile) might contain unsecure configurations. measure: Test the definition of virtualized environments for unsecured configurations. difficultyOfImplementation: knowledge: 2 time: 1 resources: 2 usefulness: 3 level: 2 implementation: - $ref: src/assets/YAML/default/implementations.yaml#/implementations/dockerfile-with-hado - $ref: src/assets/YAML/default/implementations.yaml#/implementations/deployment-with-kube - $ref: src/assets/YAML/default/implementations.yaml#/implementations/dockerfilelint references: samm2: - V-ST-A-1 iso27001-2017: - System hardening, virtual environments are not explicitly covered by ISO 27001 - too specific - 12.6.1 - 14.2.3 - 14.2.8 - 14.2.1 iso27001-2022: - System hardening, virtual environments are not explicitly covered by ISO 27001 - too specific - 8.8 - 8.32 - 8.29 - 8.25