{"version":3,"file":"DockerhubReport.CeeJ2P7c.mjs","names":["useRef","p"],"sources":["https:/framerusercontent.com/modules/lPZSKZne4b4Vq8YLlVry/uRkhtOSDdG15CHI20djC/DockerhubReport.js"],"sourcesContent":["// AUTO-GENERATED faithful port of the original \"dockerhub\" interactive app.\n// Original CSS + markup + scripts run verbatim inside a Shadow DOM: pixel-\n// identical, fully interactive, no iframe, no style bleed, CSP-safe (no eval).\n// Source app base: https://storage.googleapis.com/14abbdae-0edc-4841-9ed5-f628119e1afd/5db5dc0d-a8fb-4845-b3a8-82406941b52a\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const CSS=`:root,:host {\n  --paper: #f5ebe4;\n  --paper-alt: #f2e9e1;\n  --ink: #2a1610;\n  --ink-soft: #3e2f28;\n  --forest: #172e29;\n  --green: #4c934f;\n  --yellow: #ee9600;\n  --brown-dark: #2a1610;\n  --red: #b44441;\n  --orange: #e77543;\n  --gold: #c48d3f;\n  --green-mid: #39604b;\n  --brown-mid: #7c503a;\n  --panel: #42332a;\n  --font-display: \"Outfit\", system-ui, sans-serif;\n  --font-body: \"IBM Plex Sans\", system-ui, sans-serif;\n  --space-xs: 0.5rem;\n  --space-sm: 1rem;\n  --space-md: 1.75rem;\n  --space-lg: 3rem;\n  --space-xl: 5rem;\n  --content-max: 56rem;\n  --wide-max: 68rem;\n  --rule: 1px solid color-mix(in srgb, var(--forest) 14%, transparent);\n}\n\n*, *::before, *::after {\n  box-sizing: border-box;\n}\n\n:host {\n  scroll-behavior: smooth;\n}\n\n.faithful-root {\n  margin: 0;\n  font-family: var(--font-body);\n  font-size: 1.125rem;\n  line-height: 1.72;\n  color: var(--ink);\n  background:\n    radial-gradient(circle at 18% 14%, rgba(238, 150, 0, 0.11), transparent 30rem),\n    radial-gradient(circle at 82% 30%, rgba(76, 147, 79, 0.08), transparent 28rem),\n    var(--paper);\n  overflow-x: clip;\n  white-space: normal;\n  -webkit-font-smoothing: antialiased;\n}\n\n.faithful-root::before {\n  content: \"\";\n  position: fixed;\n  inset: 0;\n  z-index: -1;\n  pointer-events: none;\n  opacity: 0.18;\n  background-image:\n    repeating-radial-gradient(\n      ellipse at 20% 20%,\n      transparent 0,\n      transparent 18px,\n      rgba(23, 46, 41, 0.16) 19px,\n      transparent 21px\n    );\n  background-size: 520px 380px;\n}\n\n.read-progress {\n  position: fixed;\n  top: 0;\n  left: 0;\n  right: 0;\n  height: 3px;\n  z-index: 100;\n  background: color-mix(in srgb, var(--forest) 15%, transparent);\n  pointer-events: none;\n}\n\n.read-progress__bar {\n  display: block;\n  height: 100%;\n  width: 0%;\n  background: linear-gradient(90deg, var(--green), var(--yellow));\n  transition: width 0.15s ease-out;\n}\n\n.hero {\n  padding: var(--space-lg) var(--space-md);\n}\n\n.hero__inner {\n  max-width: 60rem;\n  margin: 0 auto;\n  padding: clamp(2.5rem, 7vw, 5rem) var(--space-md);\n  background:\n    linear-gradient(135deg, rgba(238, 150, 0, 0.13), transparent 38%),\n    var(--forest);\n  border: 1px solid color-mix(in srgb, var(--forest) 60%, black);\n  border-radius: 6px;\n  text-align: center;\n  color: var(--paper);\n  box-shadow: 0 18px 60px rgba(42, 22, 16, 0.12);\n}\n\n.hero__meta {\n  display: grid;\n  grid-template-columns: 1fr auto 1fr;\n  align-items: center;\n  gap: var(--space-sm);\n  margin-bottom: var(--space-md);\n  font-family: var(--font-display);\n  font-size: 0.78rem;\n  font-weight: 800;\n  letter-spacing: 0.16em;\n  text-transform: uppercase;\n  color: color-mix(in srgb, var(--paper) 72%, transparent);\n}\n\n.hero__author {\n  text-align: left;\n}\n\n.hero__publication {\n  text-align: center;\n  letter-spacing: 0.22em;\n  color: var(--paper);\n}\n\n.hero__date {\n  text-align: right;\n}\n\n.hero__title {\n  font-family: var(--font-display);\n  font-size: clamp(2rem, 5.8vw, 4.35rem);\n  font-weight: 800;\n  line-height: 1.02;\n  letter-spacing: -0.035em;\n  margin: 0 auto;\n  color: var(--paper);\n  max-width: 18ch;\n}\n\n.hero__title-aside {\n  display: block;\n  margin-top: 0.8rem;\n  font-size: 0.42em;\n  line-height: 1.2;\n  letter-spacing: 0;\n  color: var(--gold);\n}\n\n.article-section {\n  padding: var(--space-lg) var(--space-md);\n}\n\n.article-section--tint {\n  background: color-mix(in srgb, var(--forest) 4%, var(--paper));\n  border-top: var(--rule);\n  border-bottom: var(--rule);\n}\n\n.article-section__inner {\n  max-width: var(--content-max);\n  margin: 0 auto;\n}\n\n.article-section__title {\n  font-family: var(--font-display);\n  font-size: clamp(1.65rem, 4vw, 2.45rem);\n  font-weight: 800;\n  line-height: 1.1;\n  margin: 0 0 var(--space-sm);\n  color: var(--ink-soft);\n  letter-spacing: -0.02em;\n}\n\n.prose p {\n  margin: 0 0 var(--space-sm);\n}\n\n.prose p:last-child {\n  margin-bottom: 0;\n}\n\n.prose a {\n  color: var(--forest);\n  font-weight: 700;\n  text-underline-offset: 3px;\n  overflow-wrap: anywhere;\n}\n\n.prose code {\n  font-size: 0.9em;\n  background: color-mix(in srgb, var(--forest) 8%, transparent);\n  padding: 0.1em 0.35em;\n  border-radius: 4px;\n}\n\n.prose strong {\n  color: var(--ink);\n}\n\n.prose h3 {\n  margin: var(--space-md) 0 var(--space-xs);\n  font-family: var(--font-display);\n  font-size: 1.3rem;\n  font-weight: 800;\n  line-height: 1.2;\n  letter-spacing: -0.01em;\n  color: var(--forest);\n}\n\n.prose ul {\n  margin: 0 0 var(--space-sm);\n  padding-left: 1.4rem;\n}\n\n.prose li {\n  margin-bottom: 0.55rem;\n}\n\n.stat-inline {\n  display: grid;\n  gap: 1px;\n  margin: var(--space-md) 0 0;\n  background: color-mix(in srgb, var(--forest) 20%, transparent);\n  border: var(--rule);\n  border-radius: 6px;\n  overflow: hidden;\n}\n\n.stat-inline--row {\n  grid-template-columns: repeat(3, 1fr);\n}\n\n.stat-inline div {\n  padding: var(--space-sm);\n  background: color-mix(in srgb, var(--paper) 94%, white);\n}\n\n.stat-inline dt {\n  font-family: var(--font-display);\n  font-size: 0.76rem;\n  font-weight: 800;\n  letter-spacing: 0.1em;\n  text-transform: uppercase;\n  color: var(--brown-mid);\n}\n\n.stat-inline dd {\n  margin: 0.25rem 0 0;\n  font-family: var(--font-display);\n  font-size: clamp(1.15rem, 2.5vw, 1.75rem);\n  font-weight: 800;\n  line-height: 1.05;\n  color: var(--forest);\n}\n\n.evidence-grid {\n  display: grid;\n  grid-template-columns: repeat(2, minmax(0, 1fr));\n  gap: var(--space-sm);\n  margin-top: var(--space-md);\n}\n\n.evidence-card {\n  padding: var(--space-md);\n  background: var(--paper);\n  border: 1px solid color-mix(in srgb, var(--forest) 18%, transparent);\n  border-radius: 6px;\n}\n\n.evidence-card__label {\n  display: inline-block;\n  margin-bottom: 0.55rem;\n  font-family: var(--font-display);\n  font-size: 0.75rem;\n  font-weight: 800;\n  letter-spacing: 0.12em;\n  text-transform: uppercase;\n  color: var(--orange);\n}\n\n.evidence-card h3 {\n  margin: 0 0 0.45rem;\n  font-family: var(--font-display);\n  font-size: 1.25rem;\n  line-height: 1.15;\n  color: var(--forest);\n}\n\n.evidence-card p {\n  margin: 0;\n  font-size: 1rem;\n  line-height: 1.6;\n}\n\n.shot {\n  margin: var(--space-md) 0;\n}\n\n.shot__placeholder {\n  display: grid;\n  place-items: center;\n  min-height: 220px;\n  padding: var(--space-md);\n  text-align: center;\n  border: 2px dashed color-mix(in srgb, var(--forest) 32%, transparent);\n  border-radius: 8px;\n  background: repeating-linear-gradient(\n    45deg,\n    color-mix(in srgb, var(--forest) 5%, var(--paper)) 0 12px,\n    transparent 12px 24px\n  );\n  color: var(--brown-mid);\n  font-family: var(--font-display);\n  font-weight: 700;\n  font-size: 0.95rem;\n  line-height: 1.4;\n  letter-spacing: 0.02em;\n}\n\n.shot img {\n  display: block;\n  width: 100%;\n  height: auto;\n  border-radius: 8px;\n  border: 1px solid color-mix(in srgb, var(--forest) 16%, transparent);\n  cursor: zoom-in;\n}\n\n.shot__caption {\n  margin: 0.6rem 0 0;\n  font-size: 0.92rem;\n  line-height: 1.5;\n  color: color-mix(in srgb, var(--ink-soft) 85%, transparent);\n}\n\n.shot__caption a {\n  color: var(--forest);\n  font-weight: 700;\n  text-underline-offset: 3px;\n  overflow-wrap: anywhere;\n}\n\n.viz-section {\n  padding: var(--space-xl) var(--space-md);\n  background: var(--paper);\n}\n\n.viz-section--split {\n  background: color-mix(in srgb, var(--yellow) 6%, var(--paper));\n  border-top: var(--rule);\n  border-bottom: var(--rule);\n}\n\n.viz-section__header {\n  max-width: var(--content-max);\n  margin: 0 auto var(--space-md);\n  text-align: center;\n}\n\n.viz-section__title {\n  margin: 0 0 var(--space-xs);\n  font-family: var(--font-display);\n  font-size: clamp(1.8rem, 4vw, 2.7rem);\n  font-weight: 800;\n  line-height: 1.08;\n  letter-spacing: -0.02em;\n  color: var(--forest);\n}\n\n.viz-section__dek {\n  margin: 0 auto;\n  max-width: 46rem;\n  color: var(--ink-soft);\n}\n\n.viz-chart-wrap {\n  max-width: var(--wide-max);\n  margin: 0 auto;\n  padding: var(--space-md);\n  background: color-mix(in srgb, var(--paper) 93%, white);\n  border: 1px solid color-mix(in srgb, var(--forest) 14%, transparent);\n  border-radius: 8px;\n  box-shadow: 0 12px 45px rgba(42, 22, 16, 0.08);\n}\n\n.viz-chart-wrap__canvas {\n  position: relative;\n  height: 360px;\n}\n\n.viz-section__footnote {\n  max-width: var(--content-max);\n  margin: var(--space-sm) auto 0;\n  font-size: 0.96rem;\n  line-height: 1.6;\n  color: color-mix(in srgb, var(--ink-soft) 82%, transparent);\n  text-align: center;\n}\n\n.flow {\n  display: grid;\n  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;\n  gap: 0.7rem;\n  align-items: stretch;\n  margin: var(--space-md) 0;\n}\n\n.flow__step {\n  min-width: 0;\n  padding: var(--space-sm);\n  background: var(--paper);\n  border: 1px solid color-mix(in srgb, var(--forest) 16%, transparent);\n  border-radius: 6px;\n}\n\n.flow__step--danger {\n  border-color: color-mix(in srgb, var(--red) 45%, transparent);\n  background: color-mix(in srgb, var(--red) 7%, var(--paper));\n}\n\n.flow__step span {\n  display: inline-grid;\n  place-items: center;\n  width: 1.7rem;\n  height: 1.7rem;\n  margin-bottom: 0.55rem;\n  border-radius: 999px;\n  background: var(--forest);\n  color: var(--paper);\n  font-family: var(--font-display);\n  font-weight: 800;\n  font-size: 0.82rem;\n}\n\n.flow__step strong {\n  display: block;\n  font-family: var(--font-display);\n  line-height: 1.15;\n  color: var(--forest);\n}\n\n.flow__step p {\n  margin: 0.45rem 0 0;\n  font-size: 0.9rem;\n  line-height: 1.45;\n}\n\n.flow__arrow {\n  display: grid;\n  place-items: center;\n  color: var(--brown-mid);\n  font-family: var(--font-display);\n  font-size: 1.3rem;\n  font-weight: 800;\n}\n\n.code-figure {\n  margin: var(--space-md) 0;\n}\n\n.code-figure__pre {\n  margin: 0;\n  padding: var(--space-md);\n  overflow-x: auto;\n  background: var(--forest);\n  color: var(--paper);\n  border-radius: 6px;\n  font-size: 0.94rem;\n  line-height: 1.55;\n}\n\n.chain {\n  max-width: var(--content-max);\n  margin: var(--space-md) auto;\n  display: grid;\n  grid-template-columns: 1fr 1.5rem 1fr 1.5rem 1fr 1.5rem 1fr;\n  align-items: stretch;\n}\n\n.chain__node {\n  padding: var(--space-md);\n  border-radius: 8px;\n  border: 1px solid color-mix(in srgb, var(--forest) 16%, transparent);\n  background: color-mix(in srgb, var(--paper) 93%, white);\n  text-align: center;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n}\n\n.chain__node span {\n  display: block;\n  font-family: var(--font-display);\n  font-size: 0.76rem;\n  font-weight: 800;\n  letter-spacing: 0.12em;\n  text-transform: uppercase;\n  color: var(--brown-mid);\n}\n\n.chain__node strong {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  min-height: 2.6rem;\n  margin: 0.35rem 0;\n  font-family: var(--font-display);\n  font-size: 1.2rem;\n  line-height: 1.15;\n  color: var(--forest);\n}\n\n.chain__node small {\n  display: block;\n  margin-top: auto;\n  font-size: 0.9rem;\n  line-height: 1.45;\n  color: var(--ink-soft);\n}\n\n.chain__node small code {\n  font-size: 0.85em;\n  background: color-mix(in srgb, var(--forest) 8%, transparent);\n  padding: 0.05em 0.3em;\n  border-radius: 4px;\n}\n\n.chain__node--risk {\n  border-top: 5px solid var(--orange);\n}\n\n.chain__node--safe {\n  border-top: 5px solid var(--green);\n}\n\n.chain__connector {\n  align-self: center;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: color-mix(in srgb, var(--forest) 55%, transparent);\n}\n\n.chain__connector::before {\n  content: \"\\\\2192\";\n  font-size: 1.5rem;\n  line-height: 1;\n}\n\n.check-list li::marker {\n  color: var(--green);\n}\n\n.reveal {\n  opacity: 0;\n  transform: translateY(16px);\n  transition: opacity 0.55s ease, transform 0.55s ease;\n}\n\n.reveal.is-visible {\n  opacity: 1;\n  transform: none;\n}\n\n@media (max-width: 860px) {\n  .stat-inline--row,\n  .evidence-grid {\n    grid-template-columns: 1fr;\n  }\n\n  .flow {\n    grid-template-columns: 1fr;\n  }\n\n  .flow__arrow {\n    transform: rotate(90deg);\n    min-height: 1.2rem;\n  }\n\n  .chain {\n    grid-template-columns: 1fr;\n    gap: 0.7rem;\n  }\n\n  .chain__connector {\n    justify-self: center;\n  }\n\n  .chain__connector::before {\n    content: \"\\\\2193\";\n  }\n}\n\n@media (max-width: 540px) {\n  .faithful-root {\n    font-size: 1.03rem;\n  }\n\n  .hero {\n    padding: var(--space-md) var(--space-sm);\n  }\n\n  .hero__meta {\n    grid-template-columns: 1fr;\n    gap: 0.35rem;\n  }\n\n  .hero__author,\n  .hero__publication,\n  .hero__date {\n    text-align: center;\n  }\n\n  .article-section,\n  .viz-section {\n    padding: var(--space-lg) var(--space-sm);\n  }\n\n  .viz-chart-wrap {\n    padding: var(--space-sm);\n  }\n\n  .viz-chart-wrap__canvas {\n    height: 420px;\n  }\n}\n\n.lightbox {\n  position: fixed;\n  inset: 0;\n  z-index: 200;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background: rgba(0, 0, 0, 0.85);\n  backdrop-filter: blur(6px);\n  -webkit-backdrop-filter: blur(6px);\n  opacity: 0;\n  visibility: hidden;\n  transition: opacity 0.3s ease, visibility 0.3s ease;\n  cursor: zoom-out;\n  padding: var(--space-md);\n}\n\n.lightbox.is-open {\n  opacity: 1;\n  visibility: visible;\n}\n\n.lightbox__img {\n  width: 96vw;\n  height: auto;\n  max-height: 92vh;\n  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);\n  transform: scale(0.97);\n  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);\n  object-fit: contain;\n  image-rendering: -webkit-optimize-contrast;\n}\n\n.lightbox.is-open .lightbox__img {\n  transform: scale(1);\n}\n\n.lightbox__close {\n  position: absolute;\n  top: var(--space-md);\n  right: var(--space-md);\n  background: none;\n  border: none;\n  color: white;\n  font-size: 2rem;\n  cursor: pointer;\n  line-height: 1;\n  opacity: 0.7;\n  transition: opacity 0.2s;\n}\n\n.lightbox__close:hover {\n  opacity: 1;\n}\n`;const BODY=`\n    <div class=\"read-progress\" aria-hidden=\"true\"><span class=\"read-progress__bar\"></span></div>\n\n    <header class=\"hero\" id=\"top\">\n      <div class=\"hero__inner\">\n        <div class=\"hero__meta\">\n          <span class=\"hero__author\">Luke Marshall</span>\n          <span class=\"hero__publication\">The Dig</span>\n          <span class=\"hero__date\">June 2026</span>\n        </div>\n        <h1 class=\"hero__title\">\n          [ Title Placeholder ]\n        </h1>\n      </div>\n    </header>\n\n    <main>\n      <section class=\"article-section reveal\" data-reveal>\n        <div class=\"article-section__inner prose\">\n          <p>\n            <strong>TL;DR:</strong> A single leaked Docker token could have <strong>poisoned the supply chain</strong> of\n            Toradex, a Swiss manufacturer whose embedded systems run in medical, defense, and industrial devices. Found in\n            <strong>plaintext in a public GitLab CI artifact</strong>, the token gave write access to all\n            <strong>384</strong> of Toradex's Torizon container images, pulled over <strong>4.5 million times</strong>,\n            letting anyone push tampered code into the images those devices are built from.\n          </p>\n        </div>\n      </section>\n\n      <section class=\"article-section article-section--tint reveal\" data-reveal>\n        <div class=\"article-section__inner prose\">\n          <h2 class=\"article-section__title\">What we found</h2>\n          <p>\n            A Docker Hub organization access token (prefixed <code>dckr_oat_</code>) is tied to a single organization\n            rather than a person. This one belonged to <a href=\"https://hub.docker.com/u/torizon\">Torizon</a>, Toradex's\n            embedded-systems toolset, and it carried write access to all 384 of the org's images: roughly\n            <strong>4.5 million pulls</strong> in total, the largest being <code>torizon/weston</code> at nearly a\n            million on its own.\n          </p>\n          <figure class=\"shot\">\n            <img src=\"https://storage.googleapis.com/14abbdae-0edc-4841-9ed5-f628119e1afd/5db5dc0d-a8fb-4845-b3a8-82406941b52a/images/image1.png\" alt=\"piuparts DEBUG log line from the downloaded artifact showing the docker exec environment with the Docker Hub token in plaintext\" loading=\"lazy\" />\n            <figcaption class=\"shot__caption\">The token sitting in plain text inside the uploaded <code>piuparts-out/logs/</code> artifact. Click to enlarge.</figcaption>\n          </figure>\n          <p>\n            TruffleHog verified the token was live, and we confirmed its reach without changing anything in the registry.\n            We minted a JWT from Docker's auth service and decoded the scope it granted on Torizon's flagship repository,\n            <code>torizon/weston</code>: both <code>pull</code> and <code>push</code>. <code>torizon/weston</code> is an\n            image Toradex devices use to draw their on-screen interface, the layer that renders what appears on the\n            display and handles touch and input. It is the base that countless Torizon devices with a screen build on.\n          </p>\n          <figure class=\"shot\">\n            <img src=\"https://storage.googleapis.com/14abbdae-0edc-4841-9ed5-f628119e1afd/5db5dc0d-a8fb-4845-b3a8-82406941b52a/images/image4.png\" alt=\"The torizon/weston repository page on Docker Hub, owned by the torizon organization, showing the image description and pull count\" loading=\"lazy\" />\n            <figcaption class=\"shot__caption\">The <code>torizon/weston</code> repository on Docker Hub, the Torizon org's flagship image.</figcaption>\n          </figure>\n          <figure class=\"shot\">\n            <img src=\"https://storage.googleapis.com/14abbdae-0edc-4841-9ed5-f628119e1afd/5db5dc0d-a8fb-4845-b3a8-82406941b52a/images/image2.png\" alt=\"Terminal minting a JWT from Docker's auth service for torizon/weston, with the decoded token scope showing pull and push actions\" loading=\"lazy\" />\n            <figcaption class=\"shot__caption\">We minted a JWT for <code>torizon/weston</code> and decoded the granted scope: both <code>pull</code> and <code>push</code>.</figcaption>\n          </figure>\n        </div>\n      </section>\n\n      <section class=\"article-section reveal\" data-reveal>\n        <div class=\"article-section__inner prose\">\n          <h2 class=\"article-section__title\">Poisoning the supply chain</h2>\n          <p>\n            <strong>We want to preface this section by saying it is speculation, and we are making some assumptions.</strong>\n            But given the token's access and Toradex's own documentation, this attack avenue seems realistic. We cannot\n            see which devices pull these images, nor did we try to push anything to them that would let us find out.\n          </p>\n          <p>\n            The token has push access to 384 of Torizon's images. One of these, <code>torizon/weston</code>, is the image\n            Toradex devices use to draw their on-screen interface, the layer that renders the display and handles input.\n            Toradex markets the same platform into <a href=\"https://www.toradex.com/applications/healthcare\">healthcare</a> and\n            <a href=\"https://www.toradex.com/applications/defense-technology\">defense</a> (radar and surveillance, drones\n            and unmanned vehicles). We cannot confirm that any specific medical or defense product ships the weston\n            container, but if one does, an attacker who overwrites that image is running their own code on the screen an\n            operator reads and the input they give it.\n          </p>\n          <p>\n            Here is how this might be achieved. A Torizon application update is a docker-compose file that lists the\n            container images to run, and it is that compose file, not the image bytes, that Torizon Cloud signs under the\n            <a href=\"https://developer.toradex.com/torizon/torizon-platform/torizon-updates/torizon-updates-technical-overview\">Uptane\n            standard</a>. A device only installs a compose file signed with the project's keys. But when that compose\n            references an image by a mutable tag, the signature says nothing about what the tag contains. At install time\n            the device runs <code>docker-compose pull</code> and fetches whatever currently sits behind the tag, so an\n            attacker who has overwritten <code>torizon/weston:&lt;tag&gt;</code> with the leaked token gets their image\n            installed. The signed compose still points at the tag, and the signature never covered the image it resolves\n            to.\n          </p>\n        </div>\n\n        <div class=\"chain\">\n          <div class=\"chain__node chain__node--risk\">\n            <span>1. Reference</span>\n            <strong>Compose by tag</strong>\n            <small>Image referenced by mutable tag.</small>\n          </div>\n          <div class=\"chain__connector\"></div>\n          <div class=\"chain__node chain__node--safe\">\n            <span>2. Sign</span>\n            <strong>Compose signed</strong>\n            <small>Signature covers the file, not the image.</small>\n          </div>\n          <div class=\"chain__connector\"></div>\n          <div class=\"chain__node chain__node--risk\">\n            <span>3. Tamper</span>\n            <strong>Push token</strong>\n            <small>Attacker overwrites the tag.</small>\n          </div>\n          <div class=\"chain__connector\"></div>\n          <div class=\"chain__node chain__node--risk\">\n            <span>4. Install</span>\n            <strong>Device pull</strong>\n            <small>Device pulls the tampered tag.</small>\n          </div>\n        </div>\n\n        <div class=\"article-section__inner prose\">\n          <p>\n            To be fair about the limits, Torizon ships a defense against this. The signing tool can\n            <a href=\"https://developer.toradex.com/torizon/6/torizon-platform/torizon-updates/signing-and-pushing-torizoncore-packages-to-torizon-ota\">canonicalize</a>\n            a compose file, which pins each image to its content hash instead of a tag, and a canonical compose is\n            required for offline updates and recommended in general. A hash-pinned deployment is safe here: tampered\n            content produces a different hash, so the device refuses to pull it. The exposure is the non-canonical case,\n            a compose that references <code>torizon/weston</code> by a mutable tag and ships as an online update. That is\n            a worst-case scenario rather than the default, but it is a realistic one, and where it holds the Torizon\n            supply chain can still be poisoned with this token.\n          </p>\n        </div>\n      </section>\n\n      <section class=\"article-section article-section--tint reveal\" data-reveal>\n        <div class=\"article-section__inner prose\">\n          <h2 class=\"article-section__title\">What went wrong?</h2>\n          <p>\n            GitLab artifacts are the files a CI job is configured to keep after it finishes: build outputs, test reports,\n            logs, anything the pipeline writes to a path the job lists. They are stored separately from the live job log\n            and stay downloadable afterwards, and on a public project anyone can download them without authenticating.\n          </p>\n          <p>\n            GitLab masks variables and secrets inside build logs, but not inside artifacts. On the face of it, if you look\n            at the log from a job that just ran, you would see your secrets correctly <code>[MASKED]</code>.\n          </p>\n          <figure class=\"shot\">\n            <img src=\"https://storage.googleapis.com/14abbdae-0edc-4841-9ed5-f628119e1afd/5db5dc0d-a8fb-4845-b3a8-82406941b52a/images/image3.png\" alt=\"GitLab job trace showing the same piuparts DEBUG line with PAID_DOCKERHUB_TOKEN=[MASKED]\" loading=\"lazy\" />\n            <figcaption class=\"shot__caption\">In the streamed job log, GitLab masks the value. Capture from the <a href=\"https://gitlab.com/toradex/rd/torizon-core/packages-and-containers/imx8/npu/tensorflow-imx-deb/-/jobs/14829754609/\">job trace</a>.</figcaption>\n          </figure>\n          <p>\n            In the Toradex build this is exactly what happened: GitLab's masking caught the\n            <code>PAID_DOCKERHUB_TOKEN</code> and masked it in the live log.\n          </p>\n          <p>\n            The leak came from the artifact instead. The job runs\n            <a href=\"https://wiki.debian.org/piuparts\">piuparts</a> to test a freshly built package, and piuparts logs\n            every command it runs at full verbosity, including the environment that carries the token. Those logs are\n            written into its <code>piuparts-out/</code> directory, which the job uploads as an artifact on every run, even\n            failed ones. Masking never touched that file, so the same line that read <code>[MASKED]</code> in the live log\n            sat in full plaintext in the downloadable artifact for the seven days it stayed live.\n          </p>\n          <figure class=\"shot\">\n            <img src=\"https://storage.googleapis.com/14abbdae-0edc-4841-9ed5-f628119e1afd/5db5dc0d-a8fb-4845-b3a8-82406941b52a/images/image1.png\" alt=\"piuparts DEBUG log line from the downloaded artifact showing the docker exec environment with the Docker Hub token in plaintext\" loading=\"lazy\" />\n            <figcaption class=\"shot__caption\">The same line in the uploaded artifact, with the token in the clear. Click to enlarge.</figcaption>\n          </figure>\n        </div>\n      </section>\n\n      <section class=\"article-section reveal\" data-reveal>\n        <div class=\"article-section__inner prose\">\n          <h2 class=\"article-section__title\">The takeaway</h2>\n          <ul>\n            <li>\n              <strong>Masking only applies to job logs.</strong> Any CI secret written to a build artifact is uploaded\n              in plaintext, even when the same value reads <code>[MASKED]</code> in the live trace.\n            </li>\n            <li>\n              <strong>Treat artifacts as published output.</strong> Build outputs, test logs, and archives leave the\n              runner and stay downloadable, and on a public project anyone can fetch them without authenticating.\n            </li>\n            <li>\n              <strong>Scan artifacts for secrets, not just logs.</strong> If a value is worth masking in the log, it is\n              worth detecting in the files a pipeline emits. You can scan a downloaded artifact with TruffleHog, which\n              extracts the archive and only reports live credentials:\n              <figure class=\"code-figure\">\n<pre class=\"code-figure__pre\">trufflehog filesystem artifact.zip --only-verified</pre>\n              </figure>\n            </li>\n            <li>\n              <strong>Treat any exposed secret as compromised.</strong> We downloaded artifacts containing secrets that\n              have since been deleted, but deletion is not remediation. Once a credential has appeared in a public\n              location, assume it is leaked and rotate it.\n            </li>\n          </ul>\n        </div>\n      </section>\n    </main>\n\n    <div class=\"lightbox\" id=\"lightbox\">\n      <button class=\"lightbox__close\" aria-label=\"Close\">&times;</button>\n      <img class=\"lightbox__img\" id=\"lightbox-img\" src=\"\" alt=\"\" />\n    </div>\n\n    \n  `;const FONT_FACES=``;// Original page script(s), verbatim. `document` is the shadow-root proxy so all\n// element lookups resolve inside the component; window/ are the reals.\nfunction runOriginal(document1,window1){/* ===== main.js ===== */(function(){\"use strict\";function initProgress(){const bar=document1.querySelector(\".read-progress__bar\");if(!bar)return;const onScroll=()=>{const doc=document1.documentElement;const scrollTop=doc.scrollTop||document1.body.scrollTop;const height=doc.scrollHeight-doc.clientHeight;const percent=height>0?scrollTop/height*100:0;bar.style.width=Math.min(100,percent)+\"%\";};window1.addEventListener(\"scroll\",onScroll,{passive:true});onScroll();}function initReveal(){const els=document1.querySelectorAll(\"[data-reveal]\");if(!els.length)return;const io=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting)entry.target.classList.add(\"is-visible\");});},{rootMargin:\"0px 0px -8% 0px\",threshold:.08});els.forEach(el=>io.observe(el));}function initLightbox(){const overlay=document1.getElementById(\"lightbox\");const lbImg=document1.getElementById(\"lightbox-img\");const closeBtn=overlay&&overlay.querySelector(\".lightbox__close\");if(!overlay||!lbImg)return;function open(src,alt){lbImg.src=src;lbImg.alt=alt||\"\";overlay.classList.add(\"is-open\");document1.body.style.overflow=\"hidden\";}function close(){overlay.classList.remove(\"is-open\");document1.body.style.overflow=\"\";}document1.querySelectorAll(\".shot img\").forEach(img=>{img.addEventListener(\"click\",()=>open(img.src,img.alt));});overlay.addEventListener(\"click\",e=>{if(e.target===overlay||e.target===closeBtn)close();});if(closeBtn)closeBtn.addEventListener(\"click\",close);document1.addEventListener(\"keydown\",e=>{if(e.key===\"Escape\")close();});}function main(){initReveal();initProgress();initLightbox();}if(document1.readyState===\"loading\"){document1.addEventListener(\"DOMContentLoaded\",main);}else{main();}})();}/**\n * @framerIntrinsicWidth 760\n * @framerIntrinsicHeight 800\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function DockerhubReport(props){const hostRef=useRef(null);const matchSlug=props&&props.matchSlug||\"\";useEffect(()=>{const host=hostRef.current;if(!host)return;// When placed on a shared CMS detail template, only render on our own post.\nif(matchSlug&&typeof window!==\"undefined\"&&window.location){const path=window.location.pathname.replace(/\\/+$/,\"\");if(path!==\"/\"+matchSlug&&!path.endsWith(\"/\"+matchSlug))return;}const root=host.shadowRoot||host.attachShadow({mode:\"open\"});if(FONT_FACES){const fid=\"faithful-fonts-DockerhubReport\";if(!document.getElementById(fid)){const fs=document.createElement(\"style\");fs.id=fid;fs.textContent=FONT_FACES;document.head.appendChild(fs);}}root.innerHTML=`<style>${CSS}</style><div class=\"faithful-root\">${BODY}</div>`;if(props&&props.hideHero){const fr=root.querySelector(\".faithful-root\");if(fr){fr.querySelector(\".hero\")?.remove();fr.querySelector(\".read-progress\")?.remove();const collapseGap=()=>{const sec=fr.querySelector(\"section\");if(!sec)return;sec.style.marginTop=\"0px\";const inner=sec.querySelector(\".article-section__inner\")||sec;const firstEl=inner.firstElementChild||inner;const gap=firstEl.getBoundingClientRect().top-fr.getBoundingClientRect().top;if(gap>28)sec.style.marginTop=-Math.round(gap-28)+\"px\";};requestAnimationFrame(()=>{collapseGap();setTimeout(collapseGap,250);});if(typeof window!==\"undefined\")window.addEventListener(\"resize\",collapseGap);}}const w=window;const esc=id=>w.CSS&&w.CSS.escape?w.CSS.escape(id):id;const proxyDoc=new Proxy(document,{get(t,p){if(p===\"getElementById\")return id=>root.querySelector(\"#\"+esc(id));if(p===\"querySelector\")return s=>root.querySelector(s);if(p===\"querySelectorAll\")return s=>root.querySelectorAll(s);const v=t[p];return typeof v===\"function\"?v.bind(t):v;}});try{runOriginal(proxyDoc,window);}catch(e){console.error(\"faithful render error\",e);}},[]);return /*#__PURE__*/_jsx(\"div\",{ref:hostRef,style:{width:\"100%\"}});}addPropertyControls(DockerhubReport,{matchSlug:{type:ControlType.String,title:\"Match Slug\"}});export function DockerhubArticle(props){return /*#__PURE__*/_jsx(DockerhubReport,{...props,hideHero:true});}addPropertyControls(DockerhubArticle,{matchSlug:{type:ControlType.String,title:\"Match Slug\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"DockerhubArticle\":{\"type\":\"reactComponent\",\"name\":\"DockerhubArticle\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"DockerhubReport\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"760\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"800\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DockerhubReport.map"],"mappings":"+LA83BA,SAAS,EAAY,EAAU,EAAQ,EAA2B,UAAU,CAAc,SAAS,GAAc,CAAC,IAAM,EAAI,EAAU,cAAc,sBAAsB,CAAC,GAAG,CAAC,EAAI,OAAO,IAAM,MAAa,CAAC,IAAM,EAAI,EAAU,gBAAsB,EAAU,EAAI,WAAW,EAAU,KAAK,UAAgB,EAAO,EAAI,aAAa,EAAI,aAAmB,EAAQ,EAAO,EAAE,EAAU,EAAO,IAAI,EAAE,EAAI,MAAM,MAAM,KAAK,IAAI,IAAI,EAAQ,CAAC,KAAM,EAAQ,iBAAiB,SAAS,EAAS,CAAC,QAAQ,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