--- import facets from '../data/facets.json'; import { SOURCES, SOURCE_META } from '../lib/taxonomy'; /** * How the catalog is assembled, as a diagram that moves: every source * flows into the one index, and the index carries ATT&CK mapping and * detection guidance out the other side. * * Drawn from the site's own data rather than typed in. The boxes on the * left are `SOURCES`, in order, each in its own accent with the number of * techniques it contributes (`facets.json`), so adding a collection adds * a box and a path and nothing here needs editing. The geometry is worked * out below at build time; the page ships a finished SVG. * * The moving dots are the only script. They show direction, not volume: * three per path whatever the count, and the note under the diagram says * so. They stop when the diagram is off screen, when the tab is hidden, * and under reduced motion (the OS setting or ``), * where they rest part-way along each path so the direction still reads. */ const c = facets.counts; const bySource = c.bySource as Record; const NUMBER = ['No', 'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight']; const title = `${NUMBER[SOURCES.length] ?? SOURCES.length} sources, one index`; /* ---- geometry: a 960-wide drawing, as tall as the sources need ---- */ const W = 960; const TOP = 48; const BOX_H = 56; const GAP = 24; const SRC_X = 40; const SRC_W = 220; const IDX_X = 400; const IDX_W = 200; const OUT_X = 740; const OUT_W = 200; const n = SOURCES.length; const stackH = n * BOX_H + (n - 1) * GAP; const H = TOP + stackH + 32; const midY = TOP + stackH / 2; const IDX_H = Math.min(stackH, Math.max(112, n * 34)); const idxTop = midY - IDX_H / 2; const sources = SOURCES.map((id, i) => { const meta = SOURCE_META[id]; const y = TOP + i * (BOX_H + GAP); const cy = y + BOX_H / 2; // Where this source's path meets the index: spread down its left edge. const entry = idxTop + ((i + 1) * IDX_H) / (n + 1); const x0 = SRC_X + SRC_W; const bend = (x0 + IDX_X) / 2; return { id, label: meta.label, accent: meta.accent, count: bySource[id] ?? 0, y, d: `M${x0} ${cy} C ${bend} ${cy}, ${bend} ${entry}, ${IDX_X} ${entry}`, }; }); const OUTPUTS = [ { label: 'ATT&CK mapping', accent: 'pine' }, { label: 'Detection guidance', accent: 'gold' }, ]; const outs = OUTPUTS.map((o, i) => { const y = midY + (i === 0 ? -(BOX_H + GAP) : GAP); const cy = y + BOX_H / 2; const exit = idxTop + ((i + 1) * IDX_H) / (OUTPUTS.length + 1); const x0 = IDX_X + IDX_W; const bend = (x0 + OUT_X) / 2; return { ...o, y, d: `M${x0} ${exit} C ${bend} ${exit}, ${bend} ${cy}, ${OUT_X} ${cy}` }; }); const aria = `${sources.map((s) => s.label).join(', ')} feed DÆMONBins, ` + `which carries ${OUTPUTS.map((o) => o.label).join(' and ')} with each entry`; ---

{title}

How the catalog is assembled. Each collection is ingested from its own repository at a pinned commit, every entry is expanded into individual techniques, and all of them land in one index that carries ATT&CK mapping and detection guidance with each entry.

SOURCES INDEX CARRIED WITH EACH ENTRY {sources.map((s) => )} {outs.map((o) => )} {sources.map((s) => ( {s.label} {s.count.toLocaleString('en-GB')} ))} DÆMONBins {c.techniques.toLocaleString('en-GB')} techniques {outs.map((o) => ( {o.label} ))}
The dots show direction only; they are not a count of entries.