← Back to section · Post-Quantum Migration

Discovery Methods in Depth: What Static Scanning, Traffic Observation and Configuration Audit Each Can See

The three internal discovery methods look at three different faces of the same cryptographic assets: what the code declares, what production actually runs, and what the configuration permits. A method-by-method breakdown of mechanisms, output and blind spots.

Published 22 November 2026 · 6 min read · PQ Frontier

Discovery Methods in Depth: What Static Scanning, Traffic Observation and Configuration Audit Each Can See
AI-generated site artwork
Video explainer · Cryptographic Inventory (CBOM): Know Your Estate

Inventory overviews tend to list discovery methods as interchangeable channels, as if picking any two were enough. In reality each method sees a different face of the cryptographic estate: static scanning sees what is written down, traffic observation sees what is actually running, and configuration audit sees what is permitted. Where the three disagree is exactly where risk concentrates — an algorithm that configuration permits but code never uses is an entry point for downgrade attacks, while a call that exists in code but never appears in traffic may be a dormant legacy path. This article takes the three internal discovery methods apart one by one; vendor questionnaires and third-party dependency discovery are covered in a companion piece.

Static scanning: reading cryptographic usage out of code and dependencies

Static scanning works on three layers. The first is source code: rules match cryptographic API call sites — Java’s Cipher.getInstance, Go’s crypto/rsa imports, Python’s hashlib and ssl calls — and record algorithm names, modes, padding and other literal parameters. The second layer is the dependency manifest: parse build files and lockfiles to list cryptographic libraries such as OpenSSL, Bouncy Castle and libsodium together with their versions, because the version determines which algorithms the library supports and whether it carries known weak implementations. The third layer is binaries and built artefacts: for internal components without source, string and symbol scanning can at least establish which cryptographic library was linked in.

Static scanning output converts most naturally into a CBOM draft: a call site comes with a file path and line number, which is precisely the asset’s “location”. Its blind spots are just as clear. Reflection, dynamic loading and configuration-driven algorithm selection leave only a variable name in the code. Scanning reports test code, sample code and abandoned branches alongside production paths, so the false-positive rate has to be worked down by human triage. Most importantly, it cannot prove that anything actually runs — a utility class that mentions RSA-1024 may not have been invoked in ten years.

Traffic observation: only what was actually negotiated counts

Traffic observation starts from the opposite premise: it ignores declarations and records facts. Collecting TLS handshake metadata at gateways, load balancers and service-mesh sidecars — protocol versions, the negotiated key-exchange and signature suites, the certificate chains presented — yields a measured distribution of what production really uses. NIST’s migration practice guide series, SP 1800-38, lists network observation among the primary inventory techniques precisely because it corrects the distortions of both code and configuration: a suite enabled in configuration may never be selected by peers, and an algorithm supported in code may be switched off by deployment parameters.

The price is a visibility boundary. Traffic that never crosses an observation point — direct east-west connections, legacy systems not fronted by a gateway, the inside of encrypted tunnels — stays invisible. A sampling window that is too short misses low-frequency but critical batch channels. And observation sees certificates and suites, but not the cryptographic operations that produce no handshake: encryption at rest, signing and verification. Traffic data is therefore best used for two things: annotating static-scan results with “in use / not observed”, and discovering unknown server endpoints that appear in no list at all — often the most valuable output of the whole inventory.

Configuration audit: the permitted set defines the attack surface

The third channel is configuration audit: gather the cryptography-related settings of operating systems, middleware, databases and applications, and work out the set of algorithms each system permits. TLS suite lists, SSH algorithm negotiation order, FIPS mode switches and the strictness of certificate validation all belong here. Its unique value is that it characterises downgrade room: a server that permits both ECDHE and static RSA key exchange gives an attacker a way to pull the negotiation back to the weaker option, even if everyday traffic is all ECDHE. When ranking migration work, a “permitted but unused” weak algorithm must not simply be crossed off; it should be flagged as a configuration-tightening item.

The difficulty is that configuration is scattered and inherited: the same parameter may be layered across an image, environment variables, a configuration service and start-up scripts, and the value that actually takes effect has to be confirmed by runtime probing. Configuration audit and traffic observation complement each other exactly — configuration gives the permitted set, observation gives the actual set, and the difference between them is the first batch of remediation tickets.

Merging the three: tag sources, take the union, keep confidence

The sound engineering approach is not to choose one channel but to flow all three result sets into a single working draft, tagging every asset record with its discovery source and a confidence level. Assets hit by all three channels are confirmed. Assets hit only by static scanning are marked “verify whether in use”. Assets seen in traffic but present in no list are “unregistered assets” and get priority for ownership tracing. Assets that are merely permitted are marked “downgrade surface”. This tagging is not bureaucracy: at migration scheduling time, confirmed assets can go straight into remediation assessment, unregistered assets first need an owner, and unverified items get a round of targeted observation. Writing confidence into the CBOM — as notes or custom properties — means every later inventory round can converge along the low-confidence entries instead of starting over.

There is also a cost ledger to keep straight, because the three methods’ economics are asymmetric. Static scanning has the lowest marginal cost: one rule base covers every repository, and onboarding a new repository costs almost nothing. Traffic observation costs sit in deploying observation points and retaining the data — the wider the observation surface, the higher the bill. Configuration audit carries the highest labour cost, because configuration shapes vary endlessly and automation reaches least far. The sensible resourcing order is therefore: static scanning first to establish the full base count, traffic observation next to mark in-use status on high-value systems, and configuration audit last, aimed at the priority systems whose downgrade surface needs tightening. Inverting that order — auditing configuration across the whole estate first — is how inventory projects collapse under their own labour bill before producing anything.

In the end, the choice of discovery methods sets the ceiling on how much the inventory can be trusted. Rather than chasing completeness in any single channel, it is better to accept that each has structural blind spots and to use the differences between channels to aim the next round of verification. That is the step that turns an inventory from a one-off project into a standing capability.

Tags: CBOMasset discoverystatic scanningtraffic observation