Skip to main content

Build the images

Everything can be built from the repository's source, without depending on any registry or any SeguridadSI infrastructure. The builds are not bit-for-bit reproducible (see Risk-05 in the threat model): to check what we publish, use the signed provenance below. The node's three images are built by despliegue/nodo/construir-imagenes-local.sh (the assistant only does it when the signed images cannot be used). The SSH decoy is also built from its source (modulos/trampas/cowrie/imagen/). The registration decoys are closed-source images: they are downloaded from ghcr.io.

Check that a version is signed​

despliegue/nodo/verificar-version.sh checks the signatures of ultima-community.json, the signed version nodes install, against the publication keys in this repository (despliegue/nodo/PUBLICACION_CLAVES and PUBLICACION_CLAVE_PUBLICA), the same check the updater makes. It prints which key made each signature and the image digests the version pins, and, with the GitHub CLI installed and signed in, runs the provenance check below on each image. It needs openssl 3 and python3 and changes nothing:

git pull
despliegue/nodo/verificar-version.sh

Check where the published images come from​

Signed Community versions use console, sensor and updater images that a GitHub Action of the public repository, Seguridadsi/sugardaddy, builds and publishes in ghcr.io/seguridadsi. Each one carries a signed provenance attestation that says which workflow built it and from which commit. Check it with the GitHub CLI and the image digest (in the *_IMAGEN lines of /opt/sugardaddy/versiones.env, when they point at ghcr.io; leave out the tag):

gh attestation verify oci://ghcr.io/seguridadsi/sugardaddy-consola@sha256:… \
-R Seguridadsi/sugardaddy \
--signer-workflow Seguridadsi/sugardaddy/.github/workflows/publicar-imagenes.yml \
--source-ref refs/heads/main

Do the same with sugardaddy-sensor and sugardaddy-actualizador, and with the open-source decoy images (sugardaddy-trampa-cowrie, digest in its trampa.yaml). SeguridadSI runs this check before it signs a Community version: it does not sign one if an image has no attestation, if the three node images come from different commits, or if a decoy image was built from a commit that is not part of the signed one.