cd /news/ai-agents/crypto-analysis-toolkit-so-which-cry… · home › topics › ai-agents › article
[ARTICLE · art-181954] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Crypto Analysis Toolkit – So which crypto algorithms are you using?

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.

key 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.

read6 min views3 publishedDec 4, 2026
Crypto Analysis Toolkit – So which crypto algorithms are you using?
Image: Michielbdejong (auto-discovered)

So which crypto algorithms do we use?

A 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.

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 that show that weaker models can miss important details.

  1. Create a CBOM from an image. Thescan-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.
  2. 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.
  3. 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.

The screenshots below are a scan of the public caddy:latest 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.

Pick from a set of compromise scenarios.

Inspect 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.

Install Node.js, npm, and uv, then run these commands from the repository root:

make ui

This installs UI dependencies, starts Vite, and opens the viewer. Create a scan to populate the list.

You also need Docker running, Claude Code or another coding agent, and credentials for the image registry when required.

From the repository root, start Claude Code with a short prompt, replacing <image> with the image reference you want to scan:

claude "Use the skill in skills/scan-image-cbom to scan <image>"

The 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.

Determining 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.

During 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.

The 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 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.

These 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.

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.

Agent / model Score WRONG verdicts
claude opus 76/78 0
codex gpt-6.2-sol 74.5/78 0
claude sonnet 70/78 1
claude haiku 73/78 0
codex gpt-6.2-astra 69.5/78 0

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.

Agent / model Score WRONG verdicts
claude opus 63.5/75 0
codex gpt-6.2-sol 51/75 1
claude sonnet 58/75 2
claude haiku 52.5/75 2
codex gpt-6.2-astra 50/75 1

All 79 rerun outputs validate and contain explicit node uncertainty and top-level limitations. The 55 source reruns recorded no actual container-runtime violations.

  • 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.
  • 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.
  • The earlier GPT libssl failures were scorer artifacts. A reachablelibssl3t64 package overrode its explicitly unusedlibssl.so.3 child. The matcher now prefers the concrete component; this correction is applied to both cohorts and kept separate from model improvements.
  • 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.
  • 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 intests/ground_truth .

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.

make ui          # development server and browser
make build       # type-check and production build into ui/dist
make validate    # schema and algorithm-tag checks
cd ui && npm run lint

See the data contract 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.

This repository is closed to public contributions.

Path Purpose
data/images/*.json Local image scans (not bundled or tracked)
data/scenarios/*.json Compromise scenarios matched against algorithm tags
data/cbom.schema.json CBOM schema
data/README.md File contract
ui/ Vite and React viewer
scripts/cbom_lib.py Node helpers and algorithm tagger
scripts/validate_data.py Schema and tag checks
workspaces/<name>/build_cbom.py Local per-image generator
skills/scan-image-cbom/ Agent-agnostic image analysis workflow
tests/ground_truth/ Known-answer container cases and the scoring harness
docs/ README images
── more in #ai-agents 4 stories · sorted by recency
── more on @snyk 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/crypto-analysis-tool…] indexed:0 read:6min 2026-12-04 · —