{"slug": "crypto-analysis-toolkit-so-which-crypto-algorithms-are-you-using", "title": "Crypto Analysis Toolkit – So which crypto algorithms are you using?", "summary": "Snyk released the Agentic CBOM Toolkit, an open-source set of skills and tools that lets coding agents scan a container image and build a cryptography bill of materials (CBOM) covering only the crypto an application can actually reach at runtime, then overlay compromise scenarios such as a quantum attack, a mathematical break, a CVE or a policy deadline like NSA CNSA 2.0. The toolkit's scan-image-cbom skill inventories the image, traces crypto call sites, runs isolated runtime probes and accounts for application dependencies, embedded TLS libraries, language toolchains and statically linked crypto, with a viewer marking affected paths as \"Fallback available\" or \"No alternative.\" Snyk recommends strong models such as Opus 5.5, warning that weaker models can miss important details, and reports that after PR #8 added node uncertainty and scan-wide limitations it replaced 24 image cells and 55 source cells with one targeted rerun in its evaluation tables.", "body_md": "*So which crypto algorithms **do** we use?*\n\nA toolkit of skills and tools that lets coding agents analyze the cryptography in your software. Point an agent at a container image and it builds a cryptography bill of materials (CBOM) covering only the crypto the application can **actually reach at runtime**, then a viewer overlays compromise scenarios to show which paths a break would hit.\n\n**Important:** Determining which cryptography a system actually uses is a hard problem, so give the agent as much information as possible and use very strong models such as **Opus 5.5**. This repository contains [evaluations](https://github.com/snyk/agentic-cbom-toolkit/blob/main/tests/ground_truth/README.md#harder-cases-and-scoring) that show that weaker models can miss important details.\n\n1. **Create a CBOM from an image.** The`scan-image-cbom` skill inventories the image, traces crypto call sites, runs isolated runtime probes, and accounts for the full supply chain: application dependencies, embedded TLS libraries, language toolchains, and statically linked crypto.\n2. **Simulate compromise scenarios.** Overlay a quantum attack, a mathematical break, a CVE or a policy deadline (for example NSA CNSA 2.0). Red paths are affected.**Fallback available** means reconfiguration avoids the break;**No alternative** means something must be updated.\n3. **Inspect the evidence.** Every node carries its reachability (reachable, conditional, unreachable), the algorithms behind it and the file, line or runtime capture that supports the claim.\n\nThe screenshots below are a scan of the public [`caddy:latest`](https://hub.docker.com/_/caddy) image. Caddy is a statically built Go binary, so its TLS stack is Go's own `crypto/tls`, and the Alpine OpenSSL in the image is never loaded.\n\nPick from a set of compromise scenarios.\n\nInspect a node for reachability and the reason for it (here HTTPS is only conditional, because the shipped Caddyfile listens on :80), the affected algorithms, and which decision points have no alternative under the chosen scenario.\n\nInstall Node.js, npm, and [uv](https://docs.astral.sh/uv/), then run these commands from the repository root:\n\n```\nmake ui\n```\n\nThis installs UI dependencies, starts Vite, and opens the viewer. Create a scan to populate the list.\n\nYou also need [Docker](https://docs.docker.com/get-docker/) running, [Claude Code](https://docs.anthropic.com/en/docs/claude-code) or another coding agent, and credentials for the image registry when required.\n\nFrom the repository root, start Claude Code with a short prompt, replacing `<image>` with the image reference you want to scan:\n\n```\nclaude \"Use the skill in skills/scan-image-cbom to scan <image>\"\n```\n\nThe skill lives in `skills/scan-image-cbom/SKILL.md`. It is plain Markdown, so any other agent works by pointing it at that file. The agent inventories the image, traces crypto call sites, runs isolated runtime probes, writes `workspaces/<name>/build_cbom.py`, and emits `data/images/<name>.json`. On Apple Silicon it uses `--platform linux/amd64`.\n\nDetermining which cryptography a system actually uses is a hard problem, so give the agent as much information as possible to resolve the full crypto supply chain. We recommend scanning complete container images, since they bundle every dependency, native library and runtime, though pointing the skill at a code repository can also work.\n\nDuring development, new scans appear in the viewer automatically. Select a scan, inspect nodes for reachability and evidence, then choose a scenario to explore affected paths and available alternatives.\n\nThe scanning skill is checked against synthetic containers with known crypto stacks and runtime behavior. The latest tables retain previously perfect cells and replace **24 image cells and 55 source cells** with one targeted rerun after [PR #8](https://github.com/snyk/cryptobom/pull/8) added node uncertainty and scan-wide limitations. Both the saved baseline and new outputs were rescored with the corrected component matcher described in [the eval README](https://github.com/snyk/agentic-cbom-toolkit/blob/main/tests/ground_truth/README.md#uncertainty-rerun-method-and-audit).\n\nThese are targeted follow-ups, not fresh full-suite runs or a controlled estimate of the PR's effect. Valid lower scores are retained. Original scores, selection manifests, corrected baselines and new outputs are preserved separately.\n\n**Image scans: 17 cases, 78 checks.** Agents can read code/config shipped inside the image and run isolated probes; they receive no original repository or build recipes.\n\n| Agent / model | Score | WRONG verdicts | \n|---|---|---|\n| claude opus | 76/78 | 0 | \n| codex gpt-6.2-sol | 74.5/78 | 0 | \n| claude sonnet | 70/78 | 1 | \n| claude haiku | 73/78 | 0 | \n| codex gpt-6.2-astra | 69.5/78 | 0 | \n\n**Source-only scans: 16 cases, 75 checks.** Agents receive the Containerfile and copied source files; container use is forbidden. The private-base case is image-only and excluded. Selected bundled-library versions accept series-level answers, so the evidence boundary differs from image scanning.\n\n| Agent / model | Score | WRONG verdicts | \n|---|---|---|\n| claude opus | 63.5/75 | 0 | \n| codex gpt-6.2-sol | 51/75 | 1 | \n| claude sonnet | 58/75 | 2 | \n| claude haiku | 52.5/75 | 2 | \n| codex gpt-6.2-astra | 50/75 | 1 | \n\nAll 79 rerun outputs validate and contain explicit node uncertainty and top-level limitations. The 55 source reruns recorded no actual container-runtime violations.\n\n- **Disclosure improved; accuracy remains mixed.** Image cells had 11 improvements, 8 ties and 5 regressions; source cells had 12 improvements, 31 ties and 12 regressions. Source selected-cell points were unchanged overall. Single targeted reruns cannot establish that the PR caused a score change.\n- **Uncertainty is qualitative, not calibrated confidence.** Version and reachability notes make some source-inference gaps visible, but policy effects are still commonly omitted without a specific uncertainty flag. A general limitation is not evidence that a particular missed fact was disclosed.\n- **The earlier GPT libssl failures were scorer artifacts.** A reachable`libssl3t64` package overrode its explicitly unused`libssl.so.3` child. The matcher now prefers the concrete component; this correction is applied to both cohorts and kept separate from model improvements.\n- **The private base is scanned from compiled contents.** Revision 2 contains a stripped native binary and a thin wrapper, with no implementation source or self-reporting diagnostics. The current matrix scores 3/3 for all five models; only the previously non-perfect Opus cell was rerun here. Package metadata remains available.\n- **Installed, built and used are different facts.** Multiple OpenSSLs can coexist in one image, static crypto requires binary/runtime evidence, and build-stage versions do not establish the runtime version. Full per-case results and audit examples are in[tests/ground_truth](https://github.com/snyk/agentic-cbom-toolkit/blob/main/tests/ground_truth/README.md) .\n\n`data/images/`, `workspaces/`, `reports/`, and local credential files are ignored by Git. Ignored image scans are still loaded by the viewer and included in production builds. Build a public demo from a clean checkout containing only data approved for publication.\n\n```\nmake ui          # development server and browser\nmake build       # type-check and production build into ui/dist\nmake validate    # schema and algorithm-tag checks\ncd ui && npm run lint\n```\n\nSee [the data contract](https://github.com/snyk/agentic-cbom-toolkit/blob/main/data/README.md) before creating or editing scans. To regenerate a scan, run its local generator with `uv run workspaces/<name>/build_cbom.py` and then `make validate`.\n\nThis repository is closed to public contributions.\n\n| Path | Purpose | \n|---|---|\n| `data/images/*.json` | Local image scans (not bundled or tracked) | \n| `data/scenarios/*.json` | Compromise scenarios matched against algorithm tags | \n| `data/cbom.schema.json` | CBOM schema | \n| `data/README.md` | File contract | \n| `ui/` | Vite and React viewer | \n| `scripts/cbom_lib.py` | Node helpers and algorithm tagger | \n| `scripts/validate_data.py` | Schema and tag checks | \n| `workspaces/<name>/build_cbom.py` | Local per-image generator | \n| `skills/scan-image-cbom/` | Agent-agnostic image analysis workflow | \n| `tests/ground_truth/` | Known-answer container cases and the scoring harness | \n| `docs/` | README images |", "url": "https://wpnews.pro/news/crypto-analysis-toolkit-so-which-crypto-algorithms-are-you-using", "canonical_source": "https://github.com/snyk/agentic-cbom-toolkit/tree/main", "published_at": "2026-12-04 17:36:35+00:00", "updated_at": "2026-12-04 17:46:46.724561+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "ai-safety", "developer-tools"], "entities": ["Snyk", "Agentic CBOM Toolkit", "scan-image-cbom", "Claude Code", "Opus 5.5", "Caddy", "Go", "OpenSSL"], "also_reported_by": [], "takeaway": "Point a coding agent at a container image with the scan-image-cbom skill to generate a runtime-reachability CBOM, and use a strong model such as Opus 5.5 because Snyk's evaluations show weaker models miss important crypto details.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/crypto-analysis-toolkit-so-which-crypto-algorithms-are-you-using", "markdown": "https://wpnews.pro/news/crypto-analysis-toolkit-so-which-crypto-algorithms-are-you-using.md", "text": "https://wpnews.pro/news/crypto-analysis-toolkit-so-which-crypto-algorithms-are-you-using.txt", "jsonld": "https://wpnews.pro/news/crypto-analysis-toolkit-so-which-crypto-algorithms-are-you-using.jsonld"}}