CWE-1221: Incorrect Register Defaults or Module Parameters

BaseIncomplete

Hardware description language code incorrectly defines register defaults or hardware Intellectual Property (IP) parameters to insecure values.

View on MITRE
Back to CWE Lookup

Extended Description

Integrated circuits and hardware IP software programmable controls and settings are commonly stored in register circuits. These register contents have to be initialized at hardware reset to defined default values that are hard coded in the hardware description language (HDL) code of the hardware unit. Hardware descriptive languages also support definition of parameter variables, which can be defined in code during instantiation of the hardware IP module. Such parameters are generally used to configure a specific instance of a hardware IP in the design. The system security settings of a hardware design can be affected by incorrectly defined default values or IP parameters. The hardware IP would be in an insecure state at power reset, and this can be exposed or exploited by untrusted software running on the system. Both register defaults and parameters are hardcoded values, which cannot be changed using software or firmware patches but must be changed in hardware silicon. Thus, such security issues are considerably more difficult to address later in the lifecycle. Hardware designs can have a large number of such parameters and register defaults settings, and it is important to have design tool support to check these settings in an automated way and be able to identify which settings are security sensitive.

Technical Details

Structure
Simple
Vulnerability Mapping
ALLOWED

Applicable To

Languages
VerilogVHDL
Platforms

Source-backed guidance

Additional facts reviewed against primary or authoritative security sources.

Verify controls for CWE-1221 with SSDF evidence

Use NIST SSDF verification and vulnerability-response practices to detect CWE-1221, Incorrect Register Defaults or Module Parameters, throughout the product lifecycle. Derive review questions, static or dynamic checks, and negative tests from the CWE's causal behavior; define the components and lifecycle stages each check covers; and retain findings with enough evidence to distinguish the root cause from symptoms and impacts. Track escapes and false negatives, then improve the verification plan after every confirmed occurrence.

NIST SP 800-218 Secure Software Development FrameworkNational Institute of Standards and Technology

Address Incorrect Register Defaults or Module Parameters during Architecture and Design

MITRE associates mitigation with Architecture and Design, and Implementation; documented detection approaches include Automated Analysis; recorded impacts include Varies by Context. Use these source-defined anchors to turn CWE-1221 into implementation, review, and verification checks for the affected component.

CWE-1221: Incorrect Register Defaults or Module ParametersMITRE CWE

Triage CWE-1221 against known exploitation evidence

Use CISA's Known Exploited Vulnerabilities catalog to test whether a vulnerability mapped to CWE-1221, Incorrect Register Defaults or Module Parameters, has evidence of exploitation in the wild. Confirm the CVE-to-CWE root-cause mapping independently before attaching the example, then capture the affected product, required action, and remediation deadline. A missing KEV match is not evidence that the weakness is unexploited, and a KEV entry must not be generalized to every occurrence of this CWE.

Known Exploited Vulnerabilities CatalogCybersecurity and Infrastructure Security Agency

Apply precise root-cause mapping to CWE-1221

Apply MITRE's full root-cause mapping guidance when using CWE-1221, Incorrect Register Defaults or Module Parameters. Separate weakness language from attacker prerequisites and technical impact, check the entry's abstraction and vulnerability-mapping notes, and prefer the most specific Base or Variant supported by the evidence. Record the rejected alternatives and require an independent review before the mapping is used for remediation trends or program metrics.

CVE to CWE Root Cause Mapping GuidanceMITRE CWE

Validate CWE-1221 with root-cause mapping checks

Apply MITRE's root-cause mapping quick tips to CWE-1221, Incorrect Register Defaults or Module Parameters. Confirm the finding describes the causal weakness rather than an impact or attack pattern, compare the abstraction and mapping notes with plausible alternatives, and have a second reviewer challenge the selection. Preserve the evidence and reasoning so recurring defects can be measured against one consistent identifier.

CVE to CWE Root Cause Mapping Quick TipsMITRE CWE

Frequently Asked Questions

What is CWE-1221: Incorrect Register Defaults or Module Parameters?+

CWE-1221: Incorrect Register Defaults or Module Parameters is a Common Weakness Enumeration (CWE) entry maintained by MITRE. Hardware description language code incorrectly defines register defaults or hardware Intellectual Property (IP) parameters to insecure values. Integrated circuits and hardware IP software programmable controls and settings are commonly stored in register circuits. These register contents have to be initialized at hardware reset to defined default values that are hard coded in the hardware description language (HDL) code of the hardware unit. Hardware descriptive languages also support definition of parameter variables, which can be defined in code during instantiation of the hardware IP module. Such parameters are generally used to configure a specific instance of a hardware IP in the design. The system security settings of a hardware design can be affected by incorrectly defined default values or IP parameters. The hardware IP would be in an insecure state at power reset, and this can be exposed or exploited by untrusted software running on the system. Both register defaults and parameters are hardcoded values, which cannot be changed using software or firmware patches but must be changed in hardware silicon. Thus, such security issues are considerably more difficult to address later in the lifecycle. Hardware designs can have a large number of such parameters and register defaults settings, and it is important to have design tool support to check these settings in an automated way and be able to identify which settings are security sensitive.

What are the security consequences of Incorrect Register Defaults or Module Parameters?+

If exploited, CWE-1221 (Incorrect Register Defaults or Module Parameters) it can compromise Confidentiality, Integrity, Availability and Access Control, leading to outcomes such as Varies by Context.

How do you prevent or mitigate Incorrect Register Defaults or Module Parameters?+

Recommended mitigations for CWE-1221 include: During hardware design, all the system parameters and register defaults must be reviewed to identify security sensitive settings. The default values of these security sensitive settings need to be defined as part of the design review phase.

How is Incorrect Register Defaults or Module Parameters detected?+

CWE-1221 can be detected using Automated Analysis. Combining automated tooling with manual review typically yields the best coverage.

Which programming languages are affected by Incorrect Register Defaults or Module Parameters?+

CWE-1221 commonly affects Verilog and VHDL. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-1221 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More

Advertisement