Why hardcoded cryptography needs its own search and who owns it
Traffic scans show the cryptography that is negotiated on the wire, but they miss cryptography compiled into software and firmware: algorithm choices fixed at build time, embedded keys, certificates bundled with an application, and cipher suites hardcoded in a library or device image. If your security or engineering lead is building the cryptographic inventory, this search is a separate task that needs its own method. Its output is a dated list of cryptographic calls, keys and algorithm choices found in source code and firmware or binary images, with each finding recorded against the component that contains it. The application or platform security team owns the list. For binaries and firmware supplied by a vendor, the vendor is asked to locate and report its own cryptography, and your team records what comes back.
NIST CSWP 39 lists software and firmware among the layers where the capability to replace cryptographic algorithms is needed, so code and firmware fall within the scope of agility planning. The NSA advisory's inventory step applies to national security systems. A commercial organization that follows that step is doing so by choice, and should treat the inventory as its own decision rather than an obligation. The sources listed on this page do not give a required scan method, so do not assume one. Confirm with your tooling vendor which languages, binary formats and firmware images its discovery covers, since CISA notes that discovery tool coverage is still developing across industry.
Before the search starts, decide who records findings and in what format. CycloneDX can hold algorithm, protocol, certificate and key records, so a finding such as a hardcoded cipher suite or an embedded key can be written in the same format as the rest of the inventory. Capture the fields that the format asks for, including the algorithm primitive, parameter set, key state, size and creation date where they can be determined, and link each record to the software component that holds it. Where a finding cannot be fully determined from the binary, record that gap and assign it to the owner who can close it.
What the published guidance says this task involves
This table lists the published documents that define finding cryptography inside code and firmware, the section or action in each, and what it asks for. Read it as the list of requirements your discovery work must satisfy, starting with the agility and inventory sources and ending with the discovery approach and vendor questions. NIST CSWP 39 is withdrawn and superseded by CSWP 39upd1, so cite the updated document.
| Document | Section or action | What it asks for |
|---|---|---|
| NIST CSWP 39 (withdrawn, superseded by CSWP 39upd1) | Layers where algorithm replacement is needed | Lists software and firmware as layers that need the capability to replace cryptographic algorithms, so code and firmware are in scope for agility planning. |
| NSA Immediate Actions advisory (December 2026) | Action 1: inventory where cryptography is used | Asks for an inventory of every place cryptography is used. The advisory applies to national security systems, so other organizations apply this step by choice. |
| CISA ACDI Strategy | Discovery and inventory tools | Notes that inventory tools automate collection of cryptographic characteristics but are at various stages of development, so confirm whether a tool covers code and firmware before relying on it. |
| Post-Quantum Questions to Ask Your Vendors (November 2026) | Locate phase | Asks you to put questions to vendors so they locate and report the cryptography in software and firmware you do not build yourself. |
| NIST SP 1800-38B, Quantum Readiness: Cryptographic Discovery | Starting approach to discovery and high-level architecture | Describes a starting approach to cryptographic discovery, a use case, threats addressed, and a functional test plan you can check your method against. |
| CycloneDX 1.6 and CBOM use cases | Algorithm, protocol and key records | Gives the fields to capture per finding: algorithm primitive and parameter set, cipher suite names, and key state, size and creation date, linked to the software component that contains them. |
Outputs this task should produce
Code and firmware searches should end in records that a reviewer can check and that feed a CBOM. Each card below names one output, the fields it carries, and the link back to the component that contains the finding.
Finding list per component
A finding list is the primary output of the search, with one entry for each cryptographic call, hardcoded key, algorithm choice or certificate found in source or firmware. Each entry records the file path inside the repository or the offset and region inside a firmware image, so a reviewer can reproduce the hit. Check that every entry names the search rule or tool that produced it, because a finding with no traceable method cannot be verified. Compare the list against the scope agreed for the inventory before treating it as complete.
CISA Quantum-Readiness factsheetAlgorithm record per primitive
Each algorithm found in code should be reduced to a record that captures the primitive, the parameter set, the supported functions and the OID. CycloneDX defines these fields for algorithm records, so a finding such as a hardcoded AES call can be stated in the same terms as an inventory entry from the network. Where a parameter set cannot be read from the code, mark the field as unknown and confirm it with the developer or the build configuration.
CycloneDX algorithm use caseProtocol record with cipher suites
Where a cipher suite is hardcoded in a client, server or library configuration, record its name in full, for example in the form TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 as the CycloneDX example shows. A hardcoded suite is easy to miss because it never appears in live traffic captured from a deployed system unless that system is the one being tested. Record the protocol version alongside the suite so the TLS 1.3 migration work can later find which components still pin older choices.
CycloneDX protocol use caseKey record with state and dates
An embedded key or secret should be recorded with its state, its size and its creation date, which the CycloneDX key example includes. Keys found in firmware are often shared across every unit of a product, so a single finding may stand for a large fleet, and the record should say so. Treat any key found in code as a secret to be rotated and report it through the usual incident channel, not only into the inventory.
CycloneDX key use caseComponent link to containing binary
Each finding should be linked to the library or binary that contains it, because a fix usually lands in that component and not in the file where the string was found. CycloneDX says its format ties cryptographic assets to software components, which lets the same finding appear against the vendor's release and not only the team's repository. Where the component is third-party, record the version and the vendor so the procurement team can ask for an update.
CycloneDX CBOM pageOrder of work from source to inventory record
This sequence moves from defining what code and firmware is in scope, through automated discovery and manual review, to a set of CycloneDX-structured records tied to the components that contain them. Each step produces an artifact that the next step depends on, so gaps are visible before the inventory is handed on.
Define the scope of code and firmware
List every code repository, build output and firmware image that is in scope for the inventory, and record which team owns each one. Include vendor-supplied binaries and firmware you do not build yourself, because they need a separate path later. The output is a scope register with one row per artifact, its owner and its source location. The step is done when the owners have confirmed the list and no in-scope artifact is unassigned. NIST CSWP 39 lists software and firmware among the layers where replacing cryptographic algorithms has to be possible, which is why these artifacts belong in scope for agility planning.
Confirm discovery tool coverage
Before running any search, check which programming languages and binary formats your discovery tooling can read. Record the tool name, version and its supported languages and formats, and mark any artifact type it cannot parse. CISA's strategy notes that discovery tools are at various stages of development across industry, so coverage has to be verified rather than assumed. The output is a coverage note listing each artifact type as supported, partially supported or unsupported. Unsupported types move to a manual review path in a later step.
Search for cryptographic indicators
Run discovery across the in-scope repositories, build outputs and firmware images to find cryptographic library imports, hardcoded constants, cipher suite strings and key material. Keep the raw hits with the file path, line or offset, and the artifact they came from. The output is a raw hit list that has not yet been judged. Hits from firmware often come from string extraction, so note the extraction method used for each image. The step is done when every in-scope artifact has been searched or listed as unsupported in the coverage note.
Reduce each hit to a CycloneDX field
Turn each raw hit into a structured finding. Algorithm hits take the primitive, parameter set, supported functions and OID, as the CycloneDX algorithm record describes. Cipher suite strings are recorded as protocol entries, such as TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 in the CycloneDX example. Key material is recorded with its state, size and creation date, following the CycloneDX key record. Mark any field you cannot determine as unknown rather than guessing. The output is a set of draft findings, each mapped to a CycloneDX asset type. The check is that every finding names its asset type and the source it came from.
Link findings to their components
Connect each finding to the software component or firmware package that contains it. The CycloneDX CBOM format is built to tie cryptographic assets to the software components that use them, so a finding in a library or binary should point to that component's name, version and identifier. Where a component is a third-party library, record the version you actually ship, not the version in the project's manifest, if the two differ. The output is a finding-to-component map. The step is done when no finding is left without a component reference, or when the unlinked finding is flagged for follow-up.
Send vendor-supplied binaries to vendors
For firmware and binaries you did not build, do not try to resolve every finding yourself. The vendor questions guide, published November 2026, has a Locate phase in which the vendor is asked to find and report its own cryptography. Send each vendor-supplied artifact and its finding list to the vendor, and ask them to confirm, correct or extend it. Record the request date, the vendor contact and the question set used. The output is a vendor request log. Findings that remain unconfirmed are marked as pending vendor response in the inventory.
Review hits and record owners
Have an engineer who knows each component review its findings, removing false positives and noting any hit that is test code, sample data or dead code. Assign a named owner to every confirmed finding, and record the reviewer and review date. Where a finding has no clear owner, escalate it to the scope owner from the first step. The output is a reviewed set of findings, each with an owner, a status and a reviewer. The step is complete when every finding is either confirmed with an owner or closed with a recorded reason.
Write the reviewed findings to the inventory
Write the confirmed findings into the organization's cryptographic inventory in the CycloneDX structure, keeping the component links, owners and vendor status from the earlier steps. Each record should be traceable back to its raw hit. The output is an inventory update with the date, the tool versions used and the coverage gaps still open. A later pass can export these records as a CBOM for auditors or suppliers. The check is that a sample of records can be traced from the inventory back to the file or firmware image they came from.
Who does what in the search
Application security and development teams own the source code and build pipelines where most cryptographic calls are written. Their job is to run source scanning across the repositories they maintain, review each hit to confirm whether it is a real cryptographic call, key or algorithm choice, and record the confirmed findings against the component that contains them. Because CycloneDX links cryptographic assets to software components, a finding should name the library, service or module it sits in, not only the file.
- Run source scanning: Scan each repository in scope on a schedule and after major dependency changes, and keep the scan configuration under version control.
- Review hits: Separate true cryptographic use from false positives, such as test fixtures or hash functions used for checksums.
- Capture key and algorithm details: For each confirmed hit, record the algorithm, parameter set and key size where the code states them, and the key state and creation date for any embedded key.
- Record cipher suite choices: Where code hardcodes a cipher suite, record the full suite name so it can be recorded in CycloneDX protocol form.
- Hand findings to the platform team: Pass firmware-adjacent and binary findings to the platform or firmware team and note which component each finding belongs to.
Check that every confirmed finding has an owner, a component reference and a record that another team can read without rerunning the scan.
Platform and firmware engineers own the images, binaries and device firmware that the organization deploys or operates. Their search covers image analysis of container images and firmware packages, which can contain libraries, keys and configuration that source scanning does not see. They also decide whether a firmware component can be updated at all, which feeds the later triage of systems that cannot be upgraded.
- Analyze images and firmware: Extract the layers or firmware filesystems and search them for cryptographic libraries, certificates, private keys and hardcoded credentials.
- Map components: Tie each binary or library to the software component and version that contains it, so findings can be linked in a cryptographic bill of materials.
- Verify tool coverage: CISA notes that discovery tools are at various stages of development, so confirm which file types and firmware formats a tool actually parses before relying on a clean result.
- Assess update paths: For each embedded cryptographic component, record whether the vendor or project has published an update, and flag components with no update path.
- Record key state: Capture the size, state and creation date of any embedded key, in the same format used for source findings.
Before reporting a firmware area as clear, confirm the tool was run against the firmware formats your devices actually use.
Procurement and vendor-risk teams handle the software and firmware the organization buys and cannot inspect directly. For these products the search is a set of questions sent to the vendor, not a scan. The vendor questions guide has a Locate phase, which asks the vendor to find and report where it uses cryptography in its product, so these teams are responsible for sending those questions, following up on answers and recording what each vendor committed to.
- Send the locate questions: Use the Locate phase questions from the vendor questions guide to ask each supplier where its products use cryptography, including keys and certificates embedded in firmware.
- Track answers by product and version: Record each answer against the specific product, version and component it covers, since a vendor answer for one release may not apply to another.
- Follow up on gaps: Where a vendor does not answer or answers only in general terms, log the gap and set a follow-up date.
- Record commitments: Store each vendor's stated plan for updates and post-quantum support so the platform and security teams can check it later.
- Feed results to the inventory: Pass vendor answers to the team that owns the inventory so they are recorded in the same format as internal findings.
Check that each vendor answer names a product, version and component, and that each open question has a named owner and a date.
Vendors that supply binaries, firmware or software packages are the only party that can see the full build of what they ship. Their role in the search is to locate and report the cryptography in their own products, answer the buyer's questions with product and version detail, and explain what update path exists. The vendor questions guide places this under the vendor's responsibility, and the CISA factsheet lists engaging technology vendors on post-quantum cryptography as a step in the organization's roadmap.
- Locate cryptography in the product: Identify the algorithms, keys, certificates and cipher suites in each shipped version, including those in firmware and bundled libraries.
- Report by version: State which product versions contain each cryptographic component, so buyers can match answers to what they run.
- Describe update paths: Say whether a component can be updated, through what mechanism, and whether any version will not receive an update.
- Provide machine-readable records: Where possible, supply a cryptographic bill of materials for the product so buyers can import findings into their inventory.
- Name the contact: Give buyers a named contact for follow-up questions on cryptographic content.
Confirm with each vendor which product versions their answers cover, since an answer given for one release may not describe the version you have installed.
Which formats the guidance names for recording findings
The sources listed on this page point to CycloneDX 1.6 JSON as the format for recording cryptographic assets. CycloneDX describes its cryptographic-asset type as covering algorithms, protocols, certificates, keys, tokens and secrets, so a key or credential found hardcoded in source code can be recorded in the same format as a cipher choice found in a library. Its CBOM capability links those cryptographic assets to the software components that contain them, which lets a finding in a binary or firmware image be tied back to the component that carries it. Teams should confirm that their tooling emits the 1.6 JSON schema before they commit to it, rather than assuming a given export is valid against it.
For each finding, the CycloneDX use-case pages name the fields to capture. An algorithm record carries the primitive, parameter set, supported functions and OID. A protocol record carries cipher suite names, such as TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 in the CycloneDX example, which is the form in which a hardcoded cipher suite choice can be written down. A key record carries its state, size and creation date. Reducing each code or firmware finding to these fields is what makes it comparable with findings from network scans and certificate stores.
The sources listed on this page do not name specific discovery tools that produce these records. CISA's strategy notes that inventory tools automate the collection of cryptographic characteristics and that discovery tools are at various stages of development across industry, and it says coverage of code and firmware varies. Before relying on any tool, check for each format in use, including source languages, binary formats and firmware types, whether it detects the cryptographic calls and embedded keys you need, and whether its output can be converted to CycloneDX 1.6 JSON without losing the fields above.
What goes wrong when searching code and firmware
Searching source code and firmware for cryptography fails in predictable ways. The cards below describe five failures that leave keys, algorithm choices and cipher suites out of an inventory, and how to notice each one before it is recorded as covered.
Missing compiled or stripped binaries
Many searches run only over source repositories, but the code that runs in production is often a compiled or stripped binary. Symbol names, library imports and comments are removed, so a search for a function name or algorithm string returns nothing even when the cryptography is present. To notice this, compare the build artifacts actually deployed against the repositories searched, and check whether the search reached the binaries at all. A clean search over source is not evidence that the binaries are clean.
CycloneDX CBOMCryptography reached through third-party libraries
An application may call a cryptographic function only indirectly, through a library or framework that it imports, so the call never appears in the application's own code. A search of the project tree reports no cryptography for a service that depends heavily on it. To notice this, list the dependencies and their versions and record which component contains each finding, since the CycloneDX format links cryptographic assets to software components. Without that link, a finding in a library cannot be traced back to the product that ships it.
CycloneDX CBOMFirmware images that cannot be unpacked
Firmware images are often packaged in vendor-specific formats, compressed, encrypted or split across partitions, so the file system and code inside cannot be extracted with standard tools. The image is then recorded as a single opaque file with no cryptography listed. To notice this, check whether each image was actually unpacked and which partitions were read, and mark any image that could not be opened as unsearched. Ask the vendor for the unpacking method or for a report of its own cryptography, as the vendor questions guide asks in its Locate phase.
Vendor Questions guideKeys that exist only in configuration or secrets stores
Some keys are never written into code. They are loaded at runtime from configuration files, environment variables or a secrets store, so a search of the repository finds only the reference to the key and not the key or its details. The inventory then shows that a service uses a key but not its algorithm, size or creation date. To notice this, record the secrets store and configuration source as places to check, and capture the key's state, size and creation date from the store when access is permitted. Keys held only in a store must still be recorded as keys.
CycloneDX key use caseTool coverage assumed rather than tested
A team may assume that its discovery tool covers code and firmware because the tool is listed in a procurement document or vendor brochure. CISA notes that discovery tools are at various stages of development across industry, so coverage varies by product and by file type. To notice this, run the tool against a known sample that contains cryptography the team already knows about, and confirm the tool reports it. Record which file types, binary formats and firmware containers the tool was tested on, and do not count any other type as covered.
CISA ACDI StrategyWhat to record so a review can see the search was done
A review of a hardcoded cryptography search will ask to see that the search was bounded, repeatable and checked. Start with a scope list that names every repository, source tree, firmware image and binary set that was searched, with the version, commit or build identifier for each. Record which items were excluded and why, because a reviewer will look for gaps first. The scope list is the document that shows what the search could and could not have seen, so keep it under version control alongside the findings it produced.
Next, record the tool and version used, together with a coverage check that shows what the tool actually parsed. CISA's strategy notes that discovery tools are at various stages of development across industry, so tool coverage of code and firmware has to be confirmed, not assumed. Save a sample of known cryptographic calls or keys that were planted or already known in the target, and show that the tool found them. Note any file types, languages or firmware formats the tool did not process, since those become known blind spots in the record.
Each finding should be captured as a dated record in CycloneDX form, following the CBOM structure that the CycloneDX project describes for algorithms, protocols and keys. Algorithm records should carry the primitive, parameter set, supported functions and OID where available. Protocol records should carry the cipher suite name as it appears in the code, and key records should carry the state, size and creation date. Tie each record to the component that contains it, since CycloneDX links cryptographic assets to software components, so that a reviewer can trace a finding from a binary back to its library. Confirm with the owner that each component's record is complete before the record is accepted.
Finally, collect owner sign-off for each component, and file the vendor responses to the Locate questions for any firmware or software you do not build yourself. The vendor questions guide, dated November 2026, places Locate first among five phases, so the vendor's answers about where it uses cryptography are the evidence a reviewer will check against your own findings. Where a vendor answer and your search disagree, record both and the reason for the difference, rather than choosing one silently.
Can a traffic scan find hardcoded cryptography in firmware?
What counts as hardcoded or embedded cryptography?
Hardcoded or embedded cryptography is any cryptographic material or choice that is fixed inside code, binaries or firmware images rather than negotiated at runtime. In practice this covers:
- Keys, certificates and secrets stored in source files, configuration files or firmware partitions
- Algorithm and cipher suite choices compiled into a library call or a configuration constant
- Cryptographic libraries and their versions bundled into a binary or firmware image
The CycloneDX cryptographic-asset model covers algorithms, protocols, certificates, keys, tokens and secrets, so each finding can be recorded in the same format as other inventory entries. Confirm the exact fields against the CycloneDX 1.6 JSON reference before you build a schema around them.
Can a network traffic scan find hardcoded cryptography?
No. A traffic scan only observes cryptography that is negotiated on the wire, such as the protocols, cipher suites and certificates a live service presents. A key or algorithm that is compiled into a binary, or stored in a firmware image and never sent over the network, does not appear in traffic. Finding it requires examining the code, binaries or firmware directly. CISA's strategy notes that discovery tools are at various stages of development across industry, so check which of your tools actually analyze code and firmware instead of assuming coverage. Confirm tool capabilities with each vendor's documentation.
What should a vendor provide for firmware we do not build?
For firmware and software you do not build yourself, ask the vendor to locate and report the cryptography it contains. The Locate phase of the joint guidance "Post-Quantum Questions to Ask Your Vendors" (CISA, ACSC and NSA, 5 November 2026) is the starting point, and that guide has 31 questions across five phases. Ask for the list of cryptographic algorithms, libraries and versions the product uses, where keys and certificates are stored, and whether any of them are embedded in the firmware image. Record the vendor's answers against the component each one describes, so the findings can be tied to the software that contains them. Confirm what each vendor will commit to in writing before you rely on it.
Should we search for embedded cryptography in-house or get outside help?
The decision depends on who has the skills to analyze binaries and firmware images and on how much of the estate is vendor-built. In-house work suits teams that already run static analysis and can read firmware images. Outside help is worth considering when the volume of closed-source binaries is large or when no one on the team has firmware analysis experience. Whichever route you take, the cost drivers are the number of firmware images, how many are proprietary, and how many distinct library versions you must identify. Ask any provider for a written scope that names the artifacts to be analyzed and the records to be delivered. DeployOpen plans and runs fixed-scope engagements, and its scope and deliverables are agreed in writing before work starts, but it does not publish prices.
How should we record a key we find embedded in code?
Record each embedded key as a key asset with the fields that matter for remediation. The CycloneDX key use case captures the key's state, size and creation date, so capture those when they can be determined. For each key, also record:
- The component or file that contains it, so the finding is tied to the software that holds it
- The owner responsible for rotation or removal
- Whether the key protects a live service or only test or development use
Do not store the key value itself in a shared inventory. Record its location and identifiers, and keep the material in a restricted store. The CycloneDX CBOM capability page describes linking cryptographic assets to software components, which is the link you need when a finding sits inside a library or binary.
Does the NSA advisory require commercial organizations to find embedded cryptography?
No. The NSA advisory "Immediate Actions to Push Toward Post-Quantum" (December 2026) applies to national security systems. Its inventory step is written for those systems, so a commercial organization that follows that step is doing so by choice. Commercial organizations can use the advisory as a reference for the same work in their own environments. NIST CSWP 39 also lists software and firmware among the layers where the ability to replace cryptographic algorithms is needed, so code and firmware belong in agility planning regardless of the advisory. NIST IR 8547 describes the transition to post-quantum standards that products will need to adopt. Check each document's current status before citing it, since NIST CSWP 39 is shown as withdrawn and superseded by CSWP 39upd1.
How DeployOpen works on this
DeployOpen scopes, builds and documents a search of source code and firmware for hardcoded and embedded cryptography, so that keys, secrets, algorithm choices and cipher suite settings are located and recorded in a form that can feed a cryptographic inventory. Engagements are fixed-scope, with the scope agreed in writing before work starts.
How we scope
- Agree in writing which repositories, build artifacts and firmware images fall inside the search.
- Confirm which vendor-supplied firmware and third-party libraries you own versus those the vendor must locate.
- Define the fields each finding must capture, such as primitive, parameter set, key size and state.
- Engagements are fixed-scope; ongoing support is available as a retainer after handover.
How we build
- Run discovery across source code, binaries and firmware images, checking tool coverage rather than assuming it.
- Reduce each finding to algorithm, protocol, certificate or key records in the CycloneDX cryptographic-asset format.
- Tie each finding to the library, binary or firmware component that contains it, so owners can act on it.
- Test results by confirming a sample of findings manually against the source or image they came from.
How we hand over
- Deliver an inventory of findings with location, component, owner and the cryptographic details captured for each.
- Document the search method, tool versions used and any limits of coverage, so the results can be repeated.
- Record which findings the vendor must locate and report, following the Locate phase of the joint vendor questions guide.
- Provide a written handover session so your team can maintain the records after the engagement ends.
How we support
- Re-run the search after firmware updates, new releases or changes to the build pipeline, on a retainer if you choose.
- Help map findings to the inventory and to a future cryptographic bill of materials for auditors and suppliers.
- Support your team when vendors respond to questions about cryptography in components you depend on.
- Confirm with your own engineers which findings need owner review before any change to code or firmware.

