BaseDraft

CWE-1304Improperly Preserved Integrity of Hardware Configuration State During a Power Save/Restore Operation

Category: config

Description

The product performs a power save/restore operation, but it does not ensure that the integrity of the configuration state is maintained and/or verified between the beginning and ending of the operation.

Common consequences· 1

  • Confidentiality / Integrity — DoS: Instability, DoS: Crash, Exit, or Restart, DoS: Resource Consumption (Other), Gain Privileges or Assume Identity, Bypass Protection Mechanism, Alter Execution Logic, Quality Degradation, Unexpected State, Reduce Maintainability, Reduce Performance, Reduce Reliability

Potential mitigations· 3

  • [Architecture and Design]Inside the IP, incorporate integrity checking on the configuration state via a cryptographic hash. The hash can be protected inside the IP such as by storing it in internal registers which never lose power. Before powering down, the IP performs a hash of the configuration and saves it in these persistent registers. Upon restore, the IP performs a hash of the saved configuration and compares it with the saved hash. If they do not match, then the IP should not trust the configuration.
  • [Integration]Outside the IP, incorporate integrity checking of the configuration state via a trusted agent. Before powering down, the trusted agent performs a hash of the configuration and saves the hash in persistent storage. Upon restore, the IP requests the trusted agent validate its current configuration. If the configuration hash is invalid, then the IP should not trust the configuration.
  • [Integration]Outside the IP, incorporate a protected environment that prevents undetected modification of the configuration state by untrusted agents. Before powering down, a trusted agent saves the IP's configuration state in this protected location that only it is privileged to. Upon restore, the trusted agent loads the saved state into the IP.

Related CAPEC attack patterns· 1

CAPEC-176

References

  1. https://cwe.mitre.org/data/definitions/1304.html

Exploits (incoming)1

TypeTargetConfidenceTier
AttackPatternConfiguration/Environment Manipulationcapec-176100%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Improper Access Control for Volatile Memory Containing Boot Code
CWE
Improper Lock Behavior After Power State Transition
CWE
Improper Prevention of Lock Bit Modification
CWE
Security-Sensitive Hardware Controls with Missing Lock Bit Protection
CWE
Sensitive Information Uncleared Before Debug/Power State Transition
CWE
Improper Protection Against Voltage and Clock Glitches
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.