Weakness · Medium

CWE-385: Covert Timing Channel

What it is

Covert timing channels convey information by modulating some aspect of system behavior over time, so that the program receiving the information can observe system behavior and infer protected information.

Likelihood of exploit: MediumMITRE CWE 4.19.1

Severity (our rating)
Medium
Likelihood of exploit
Medium
Introduced during
Architecture and Design, Implementation
Exploited in the wild
No CVE in CISA's catalog

In more detail

In some instances, knowing when data is transmitted between parties can provide a malicious user with privileged information. Also, externally monitoring the timing of operations can potentially reveal sensitive data. For example, a cryptographic operation can expose its internal state if the time it takes to perform the operation varies, based on the state. Covert channels are frequently classified as either storage or timing channels. Some examples of covert timing channels are the system's paging rate, the time a certain transaction requires to execute, and the time it takes to gain access to a shared bus.

What an attacker can do

  • Read Application Data (Confidentiality, Other)
  • Other (Confidentiality, Other)

How to prevent it

Architecture and Design

  • Whenever possible, specify implementation strategies that do not introduce time variances in operations.

Implementation

  • Often one can artificially manipulate the time which operations take or -- when operations occur -- can remove information from the attacker.
  • It is reasonable to add artificial or random delays so that the amount of CPU time consumed is independent of the action being taken by the application.

CWE-385 on MITRE's CWE site

H2 Security

Found it in your code?

We review where it appears, fix it with your team, and check it was not already used against you.

Talk to our team

T Academy

Stop writing it in the first place

Learn to build software and systems without weaknesses like this one, with practice on real hosts in your browser, every objective checked on the machine.

Start free

Source: MITRE Common Weakness Enumeration, CWE version 4.19.1. CWE is a trademark of The MITRE Corporation.