← Back to section · Security Risk & Assessment

The Cryptography Workstream in Penetration Testing: A Clean Scanner Report Is Not a Tested Cipher

General penetration tests often treat cryptography as a black box, and scanners only cover known configuration issues. This article sets out the scope, method, and limits of a dedicated crypto workstream: inventory first, baseline comparison, and verification of downgrade paths — and how it divides the work with vulnerability scanning.

Published 22 November 2026 · 5 min read · PQ Frontier

The Cryptography Workstream in Penetration Testing: A Clean Scanner Report Is Not a Tested Cipher
AI-generated site artwork
Video explainer · Security Testing Methods: verifying implementations on the lattice

All Green on the Scanner, and the Cryptography Still Untested

The most common cryptography-related finding in a penetration test report is a scanner-generated list of protocol and cipher-suite ratings: which TLS versions are supported, whether known weak suites exist, whether certificates have expired. These checks have value, but they only answer whether the configuration surface matches a list of known problems. Much of the cryptographic risk in real systems hides outside that list: where keys are generated and who holds them; what the system falls back to when negotiation fails; whether the application refuses or proceeds when certificate validation errors. Scanners cannot see any of this; it has to be designed and executed as a dedicated cryptography workstream.

In other words, a crypto workstream is not an appendix to a penetration test but a test with a different viewpoint: a general penetration test asks where an attacker can get in, while the crypto workstream asks whether the cryptographic system works as designed when it is attacked.

Start with Inventory, Not Attacks

The starting point of a crypto workstream is an inventory of the target’s cryptographic assets: which protocols and algorithms are involved, key lengths and certificate chain structures, how keys are generated and where they are stored, the source of randomness, and which components perform validation and negotiation. Without this list, testing degenerates into random sampling. The cryptographic bill of materials (CBOM) approach helps here: register the cryptographic dependencies scattered across code, configuration, and hardware first, then schedule verification for each entry.

The inventory should also mark out long-lived data and long-lived signatures: the former bears on harvest-now-decrypt-later risk, the latter on whether firmware, contracts, and evidentiary signatures remain verifiable many years from now. Both classes are routinely overlooked in ordinary penetration tests, yet they are the highest-priority samples in a crypto workstream.

Compare against a Baseline, Verify Actual Behaviour

After inventory comes baseline comparison: check the system’s actual cryptographic behaviour against the organisation’s adopted configuration baseline, item by item. Baselines come from public standards and industry guidance — which protocol versions and algorithm combinations are permitted, floors for certificate lifetimes and key lengths, and hybrid-mode requirements during the post-quantum migration phase. The point of comparison is behaviour, not documentation: if the configuration says an old version is disabled, verify that the server really refuses it during negotiation; if hybrid key exchange is claimed, verify that the negotiated result actually contains a post-quantum component rather than silently falling back to a classical algorithm.

Verification is by observation and negotiation probing: within the authorised scope, negotiate protocols with the server and record which combinations it accepts and rejects; examine how certificate chains are built and validated; confirm the parameters actually used in key exchange. The whole process records only the behaviour the system presents externally; it involves no offensive exploitation of the algorithms.

The Weakest Places Are Fallback and Failure Paths

The terrain where crypto workstreams repeatedly find problems is the set of paths that answer what happens on failure. If protocol negotiation keeps a compatibility fallback, the attack surface hides in the fallback tier; if an application ignores certificate validation errors and connects anyway, the whole chain of trust is void; if key generation runs in a low-entropy environment, even the strongest algorithm is cancelled out by a short key space. These paths are never exercised by normal functional testing; only test cases designed to trigger the failure branches can confirm that the system’s actual response matches the security expectation.

Randomness is another frequent minefield. Testing must confirm that the source of randomness matches the security level of its use: session keys, ephemeral keys, and initialisation vectors should all come from a cryptographically secure source, and there should be no possibility that the random source is replaced or downgraded between test and production environments. A defect here affects every key that depends on that source, so it must be confirmed separately within the workstream.

New Subjects in the Migration Era

The post-quantum migration adds subjects to the crypto workstream that did not exist in the classical era. First, verifying hybrid modes: when a system claims to have enabled hybrid classical-plus-post-quantum key exchange, the workstream must actually negotiate once and confirm that the post-quantum component is present, rather than silently reverting to a purely classical mode — unnoticed — when the peer does not support it. Second, mapping the coexistence surface: during migration some nodes are upgraded and others are not, and the workstream needs a distribution map marking the segments with inconsistent protection levels, because overall security is set by the weakest segment. Third, knock-on checks for size and compatibility: whether enlarged key and signature material is truncated or rejected at some intermediary — a problem that never appears in functional testing but erupts in batches under real traffic. Folding these three items into the standard subject list keeps the crypto workstream aligned with the risk shape of the migration phase.

Boundaries, Evidence, and Deliverables

A crypto workstream is bound by the same authorisation limits as any penetration test: scope, time windows, and prohibited actions agreed in writing beforehand, and for production systems read-only and negotiation-style non-destructive methods take priority. Every finding must carry reproducible evidence — negotiation records, configuration snapshots, and trigger conditions — so the development team can reproduce it independently and verify the fix.

Nor should the workstream’s output be only a vulnerability list. The more valuable deliverables are three: a verified map of the current cryptographic estate, a set of remediation items ranked by risk (separating configuration problems, implementation problems, and architectural problems), and a set of verification cases that can be absorbed into regression testing, so that this engagement’s conclusions can be continuously rechecked as the system changes. Cryptographic state drifts with every upgrade and configuration adjustment, and a one-off workstream conclusion has a limited shelf life; distilling its method into a standing verification process is where the real long-term return of this kind of testing lies.

Tags: penetration testingcryptographic configurationdowngrade surfacetesting methods