Runtime Discovery
Runtime cryptographic discovery is the observation of cryptographic behavior while systems execute. It collects evidence from running processes, loaded modules, cryptographic API activity, service telemetry, protocol handshakes, and workload behavior. This makes it possible to identify cryptographic operations that actually occur in an environment, including operations performed by libraries, applications, operating systems, containers, and services. Runtime evidence is not a complete inventory of everything a system could execute: it is bounded by the processes, configurations, requests, protocols, and workloads observed during the collection period. It therefore complements—rather than replaces—source, binary, configuration, and network discovery.1
- Runtime discovery observes cryptographic behavior during execution, rather than only examining artifacts that could contain cryptographic functionality.
- Useful runtime evidence can come from process and module observation, API interception, application and platform telemetry, protocol handshakes, and representative workload sampling.
- An observed operation demonstrates use under the captured conditions; it does not prove that unobserved algorithms, paths, or dormant capabilities are absent.
- Ephemeral containers and short-lived infrastructure require collection that follows workloads and correlates runtime evidence with images, versions, deployments, and identities.
- Safe deployment requires attention to performance, privacy, isolation, authorization, data minimization, and staged rollout.
- Runtime discovery should be correlated with source, binary, configuration, and network evidence to improve confidence and coverage.
What runtime cryptographic discovery means
Runtime cryptographic discovery is a practical discovery method focused on what cryptographic behavior occurs while a system is running. The subject of observation may be an operating-system process, application, library, hardware-assisted component, service, container, sidecar, or network-facing endpoint. The goal is to connect a cryptographic event with the execution context in which it occurred: the process, module, application, host or container, service, protocol, workload, and time of observation.1
This distinction matters for cryptographic inventories and migration planning. A discovery program may need to identify algorithms used in hardware and software modules, libraries, and embedded code, as well as algorithms supporting key establishment and management and protecting data at rest, in transit, and in use. Runtime observation contributes evidence about actual use, while other methods are needed to identify capabilities that were not exercised during observation. The source set’s migration guidance also treats discovery and documentation of systems, applications, protocols, infrastructure, and usage elements as an early planning activity.1
What runtime discovery can observe
A runtime collection design can combine several observation layers. Process and module observation identifies which programs and loaded components are active. This is especially relevant in containerized environments, where process ancestry may identify the container runtime, individual containers, and processes inside them. NIST’s container guidance illustrates nested process relationships such as a runtime at the top level, a process for each container, and application processes beneath those containers. Such context helps associate an observed cryptographic event with the correct workload rather than treating the host as one undifferentiated asset.2
API interception or equivalent instrumentation can record calls into cryptographic interfaces, subject to the visibility and safety limits of the selected instrumentation approach. The source set includes a discovery-tool scenario in which cryptographic calls, important parameters, call line numbers, and metadata are identified and written for later display or export. That example concerns source analysis rather than runtime collection, so it should not be treated as proof that every runtime tool exposes the same fields. It does, however, illustrate the value of recording the operation, relevant parameters, location or component context, and metadata in a structured record.1
Telemetry can add application and platform context to lower-level observations. An observability-as-code model deploys a monitoring agent in application service components, collects multiple data types, sends them to specialized tools, correlates and analyzes them, and presents consolidated information. In a service-mesh environment, a sidecar proxy can perform secure networking, policy enforcement, and observability functions for its associated microservice. These patterns can help connect cryptographic behavior with service identity, request flow, policy, and deployment context, although the available detail depends on the telemetry and proxy configuration.3
Network-facing runtime evidence may include protocol handshakes and negotiated behavior. TLS 1.3, for example, includes messages such as ClientHello, ServerHello, EncryptedExtensions, and CertificateRequest in the handshake process. Observing a handshake can help identify that a TLS interaction occurred and can provide protocol and endpoint context. It should not be confused with visibility into all cryptographic operations inside the endpoint, nor should protected application content be collected merely because a handshake is being observed.41
Instrumentation, tracing, and workload sampling
Instrumentation places an observation point around a selected runtime boundary, such as a cryptographic API, library, service, proxy, process, or module. Tracing follows events over time and can preserve relationships among a request, a process, a module, and a protocol exchange. These approaches answer different questions. A process or module view can show which components were active. An API-oriented view can show that a cryptographic interface was invoked. A protocol view can show externally visible negotiation. A service or application telemetry view can explain which workload or transaction caused the activity.
Workload sampling is necessary because runtime results depend on what the system did during collection. Samples should represent meaningful application paths, administrative operations, scheduled jobs, failure handling, batch processing, and protocol variants relevant to the system’s risk and migration questions. A single successful transaction may not exercise fallback logic, rarely used endpoints, maintenance functions, or exceptional paths. Consequently, a runtime report should record the sampling assumptions and the time window rather than presenting the result as an unconditional statement about the system.15
Temporal coverage is particularly important for systems that change over time. Containerized applications may be updated by destroying existing containers and creating new containers from updated images; infrastructure can also be short-lived or ephemeral. A collector that only watches one host or one deployment may miss a replacement instance. Runtime evidence should therefore retain timestamps and deployment or image identity, and collection should follow the lifecycle of the relevant workload where feasible.23
The resulting record should distinguish direct observation from inference. For example, an observed TLS handshake supports a statement that the endpoint participated in that handshake during the stated period. An associated library or algorithm attribution may require additional process, module, configuration, or binary evidence. Maintaining these distinctions prevents a runtime event from being overstated as a complete cryptographic inventory.
| Observation layer | Useful question | Important limitation |
|---|---|---|
| Process and module observation | Which process, container, service, or loaded component was active? | Activity outside the observation window or inaccessible components may be missed. |
| API instrumentation or interception | Which selected cryptographic interface or operation was invoked? | Coverage depends on the instrumented interfaces and implementation paths. |
| Application and platform telemetry | Which service, request, policy, or deployment context accompanied the event? | Telemetry detail and retention may vary by configuration. |
| Protocol handshake observation | Which protocol interaction and negotiation were visible at an endpoint? | A handshake does not expose every internal cryptographic operation. |
| Workload sampling | Which operations occur during representative scenarios? | Unexercised paths remain uncertain. |
Runtime discovery in containers and ephemeral infrastructure
Containers create both an opportunity and a visibility challenge. Container runtimes and orchestration platforms may restart containers on new hosts, provide cross-host networking and service discovery, and replace containers when applications are updated. Infrastructure-as-code can also provision and deprovision resources, including containers, as part of an automated lifecycle. These properties mean that runtime identity is not necessarily the same as a long-lived server identity.3
A useful runtime record should bind an event, as far as the available evidence permits, to the workload identity, container or pod, image and version, host or node, service, process, loaded module, and collection time. Correlation with deployment records or software inventories can help determine whether two events came from the same release or from successive replacements. SBOM practices also emphasize component identity, version, timestamp, dependency relationship, coverage, and accommodation of updates; those fields are useful correlating context even though an SBOM is not runtime evidence.
Container visibility should be evaluated before production deployment. NIST’s container guidance notes that container technologies may lack some introspection capabilities found in virtual-machine technologies and recommends evaluating authentication, connectivity and networking, application functionality, management, performance, isolation, and the security of the technology itself. It also notes that container-focused security tools may be needed because traditional tools may lack visibility into container and cloud-native operations.2
Safe deployment, privacy, and performance constraints
Runtime discovery changes the execution environment or observes activity within it, so it should be introduced with a defined scope, authorization, rollback plan, and test period. A staged approach is appropriate for technologies that affect production operations: evaluate the design and security properties, test a prototype, and initially use the technology for a small deployment before expanding. The same discipline is relevant to runtime collectors, especially where instrumentation may affect latency, resource use, process behavior, or isolation.264
Performance is a design constraint, not merely an implementation detail. Instrumentation can add processing, storage, and transmission overhead, while extensive tracing can increase event volume. Cryptographic systems already balance security and performance requirements, and protocol defenses against traffic analysis can themselves cause delays and increased traffic volume. Runtime discovery should therefore select the minimum observation detail needed for the question, measure overhead in representative tests, and avoid collecting sensitive payloads when metadata is sufficient.6478
Privacy and security controls should address what is collected, who can access it, where it is transmitted, how long it is retained, and how it is protected. Mobile-app guidance recognizes that application activity can leak sensitive data through logs, while cybersecurity guidance treats confidentiality, integrity, and availability of data at rest, in transit, and in use as protection objectives. Runtime discovery records can reveal service relationships, identifiers, request patterns, or cryptographic context even when they do not contain plaintext. Collection and access policies should reflect that sensitivity.78
In container and microservice environments, collectors and agents should be assessed for their own privileges and isolation. Container guidance recommends ensuring that processes can access permitted resources without viewing or accessing other resources, and describes container-aware monitoring and runtime defense as distinct capabilities. A discovery agent should not become a broad path to neighboring workloads or host resources.2
Correlating runtime evidence with other discovery methods
Runtime discovery is strongest when used as one layer in a broader evidence model. Source and binary discovery can identify declared or compiled cryptographic calls and dormant capabilities. Configuration discovery can reveal enabled algorithms, protocol settings, certificates, providers, and policy choices. Network discovery can identify externally visible services and connections. Runtime discovery adds evidence about which paths actually executed. None of these views should automatically be treated as a substitute for the others.1
Correlation should use stable or carefully mapped identifiers wherever possible: application and service names, image or package versions, module hashes, host or workload identities, endpoint names, deployment revisions, timestamps, and protocol context. Conflicts are useful findings rather than errors to hide. For example, a binary may contain a cryptographic library that was not observed during the sample, or runtime evidence may show a provider or sidecar that is not represented in an older inventory. Each result should preserve its provenance, collection window, method, and confidence.
Coverage should be reported explicitly. At minimum, document the systems and workloads included, the observation layers used, the collection period, the workload scenarios exercised, excluded environments, known instrumentation gaps, ephemeral instances that could not be followed, and whether records were sampled or complete for the selected boundary. This makes the inventory useful for decisions without implying certainty that the evidence cannot support.
- Define the cryptographic questions and the assets, services, environments, and time period in scope.
- Select the least intrusive observation points that can answer those questions.
- Test instrumentation, isolation, overhead, permissions, data handling, and rollback in a controlled environment.
- Exercise representative workloads and record sampling assumptions and temporal coverage.
- Correlate events with processes, modules, deployments, images, configurations, protocols, and other discovery evidence.
- Classify each result as directly observed, correlated, inferred, or unresolved, and preserve evidence provenance.
- Reassess coverage when applications, images, infrastructure, libraries, or protocols change.
How to use runtime results in cryptographic planning
Runtime results can prioritize investigation and migration work by showing cryptographic behavior associated with active services and workloads. They can help distinguish a library that is present from an operation that is exercised, identify protocol interactions that deserve configuration review, and reveal services or deployment paths missing from an existing inventory. The result is decision support—not an automatic algorithm replacement plan. Replacing algorithms may require changes to libraries, validation tools, hardware, operating-system and application code, communications devices and protocols, and administrative procedures.
For each material runtime finding, retain enough context to answer: what executed, where, when, under which workload, through which component or interface, and with what corroborating evidence? Then determine whether the behavior is relevant to the organization’s risk, data sensitivity, protocol interoperability, performance requirements, and migration roadmap. Algorithm and key-management decisions should remain aligned with the system’s security requirements and future-change needs; runtime observation informs those decisions but does not replace cryptographic engineering review.
Runtime discovery also supports feedback loops. In a DevSecOps setting, runtime issues may need remediation in source code, deployment configuration, or the hosting platform, with an issue opened against the appropriate repository or a notification sent to the platform. This makes discovery operational: findings can lead to a corrected build, changed policy, replaced image, or additional collection rather than remaining a static report.
Conclusion
Runtime cryptographic discovery observes cryptographic behavior while systems execute. Its value is the execution context it adds: processes, modules, services, protocols, workloads, deployments, and time. Its central limitation is equally important: observed use is not the same as every possible use. Safe, useful programs therefore stage instrumentation, minimize collected data, measure performance and isolation, follow ephemeral workloads, document temporal and workload coverage, and correlate runtime records with source, binary, configuration, and network evidence. Used this way, runtime discovery strengthens cryptographic inventories and migration decisions without overstating what the evidence proves.12
Frequently asked questions
Does runtime discovery find every cryptographic algorithm in an application?
No. It finds behavior observed during the selected collection period and workloads. Dormant code, unexercised paths, unavailable instances, and uninstrumented interfaces may remain undiscovered. Source, binary, configuration, and other discovery methods are needed to assess possible use and improve coverage.1
Is observing a TLS handshake the same as discovering all endpoint cryptography?
No. A visible TLS handshake provides protocol and endpoint evidence, but it does not expose every internal cryptographic operation performed by the endpoint. Endpoint process, module, API, configuration, or binary evidence may be needed for a fuller assessment.41
Why are containers especially important for runtime discovery?
Containers can be short-lived, restart on different hosts, and be replaced when images are updated. Runtime records therefore need workload, image, deployment, and time context so that events can be associated with the correct instance or release and so that collection gaps are visible.3
What should be minimized in runtime records?
Collect the least detail needed to answer the discovery question. Avoid sensitive payloads when metadata is sufficient, control access and retention, protect records in storage and transit, and evaluate the collector’s privileges and isolation. Runtime metadata can still disclose sensitive operational relationships and activity patterns.782
Sources
- 1Migration to Post-Quantum Cryptography: Quantum Readiness: Cryptographic Discovery
National Institute of Standards and Technology · preliminary draft · NIST SP 1800-38B Preliminary Draft
Accessed July 24, 2026 - 2Application Container Security Guide
National Institute of Standards and Technology · final · NIST SP 800-190
Accessed July 24, 2026 - 3Implementation of DevSecOps for a Microservices-based Application with Service Mesh
National Institute of Standards and Technology · final · NIST SP 800-204C
Accessed July 24, 2026 - 4The Transport Layer Security (TLS) Protocol Version 1.3
Internet Engineering Task Force · proposed standard · RFC 8446
Accessed July 24, 2026 - 5Foundational Cybersecurity Activities for IoT Product Manufacturers
National Institute of Standards and Technology · final · NIST IR 8259 Rev. 1
Accessed July 24, 2026 - 6Recommendation for Key Management: Part 1 – General
National Institute of Standards and Technology · final · NIST SP 800-57 Part 1 Rev. 5
Accessed July 24, 2026 - 7Vetting the Security of Mobile Applications
National Institute of Standards and Technology · final · NIST SP 800-163 Rev. 1
Accessed July 24, 2026 - 8The NIST Cybersecurity Framework (CSF) 2.0
National Institute of Standards and Technology · final · NIST CSWP 29
Accessed July 24, 2026