What is CWE-798?
The product contains hard-coded credentials, such as a password or cryptographic key.
There are two main variations: Inbound: the product contains an authentication mechanism that checks the input credentials against a hard-coded set of credentials. In this variant, a default administration account is created, and a simple password is hard-coded into the product and associated with that account. This hard-coded password is the same for each installation of the product, and it usually cannot be changed or disabled by system administrators without manually modifying the program, or otherwise patching the product. It can also be difficult for the administrator to detect. Outbound: the product connects to another system or component, and it contains hard-coded credentials for connecting to that component. This variant applies to front-end systems that authenticate with a back-end service. The back-end service may require a fixed password that can be easily discovered. The programmer may simply hard-code those back-end credentials into the front-end product.
CWE-798 is a base-level weakness in MITRE’s Common Weakness Enumeration, with a MITRE likelihood of exploit of High. Applicable platforms: Language: Not Language-Specific; Technology: Mobile; Technology: ICS/OT.
Source: MITRE CWE (CWE-798 definition, reproduced verbatim). Counts and linkage below are Threadlinqs data.
Consequences
- Access Control — Bypass Protection Mechanism. If hard-coded passwords are used, it is almost certain that malicious users will gain access to the account in question. Any user of the product that hard-codes passwords may be able to extract the password. Client-side systems with hard-coded passwords pose even more of a threat, since the extraction of a password from a binary is usually very simple.
- Integrity, Confidentiality, Availability, Access Control, Other — Read Application Data, Gain Privileges or Assume Identity, Execute Unauthorized Code or Commands, Other. This weakness can lead to the exposure of resources or functionality to unintended actors, possibly providing attackers with sensitive information or even execute arbitrary code. If the password is ever discovered or published (a common occurrence on the Internet), then anybody with knowledge of this password can access the product. Finally, since all installations of the product will have the same password, even across different organizations, this enables massive attacks such as worms to take…
Source: MITRE CWE, common consequences.
How CWE-798 is exploited in the wild
Threadlinqs maps 26 CVEs to CWE-798, published between 2019-11-21 and 2026-11-05. 6 are listed in CISA’s Known Exploited Vulnerabilities catalog, the authoritative record of exploitation in the wild, and 1 is tied to ransomware campaigns. By CVSS v3 severity the set splits into 13 critical, 4 high, 5 medium. The highest EPSS score in the set is 98.1% (CVE-2024-3272), the modelled probability of exploitation in the next 30 days. 189 tracked threats reference CWE-798 directly or through a CVE it covers; the most recent is “Bitdefender Threat Debrief Nov 2026: AI-assisted ransomware actors N0n and Azazel (MCP reverse-shell C2), BYOD, Booba Team” (2026-11-10). Affected products concentrate in Solarwinds (4), Dell (3), Cisco (2), among 19 vendors in total.
Vulnerabilities (CVEs)
All 26 CVEs mapped to CWE-798, CISA KEV first, then by CVSS score.
- CVE-2026-22769 — CISA KEV · CVSS 10 critical · EPSS 13.3% · published 2026-02-17
- CVE-2024-3272 — CISA KEV · CVSS 9.8 critical · EPSS 98.1% · published 2024-04-04
- CVE-2025-14611 — CISA KEV · CVSS 9.8 critical · EPSS 53.3% · published 2025-12-12
- CVE-2023-6448 — CISA KEV · CVSS 9.8 critical · EPSS 2.0% · published 2023-12-05
- CVE-2024-28987 — CISA KEV · CVSS 9.1 critical · EPSS 93.2% · published 2024-08-21
- CVE-2019-6693 — CISA KEV · CVSS 6.5 medium · EPSS 6.6% · published 2019-11-21
- CVE-2025-20309 — CVSS 10 critical · EPSS 1.1% · published 2025-07-02
- CVE-2026-54472 — CVSS 9.8 critical · EPSS 0.5% · published 2026-10-06
- CVE-2026-76466 — CVSS 9.8 critical · EPSS 0.4% · published 2026-10-21
- CVE-2026-61421 — CVSS 9.8 critical · EPSS 0.3% · published 2026-10-06
- CVE-2026-28255 — CVSS 9.8 critical · EPSS 0.3% · published 2026-03-12
- CVE-2025-63823 — CVSS 9.8 critical · EPSS 0.2% · published 2026-08-05
- CVE-2026-73519 — CVSS 9.8 critical · published 2026-08-12
- CVE-2026-67568 — CVSS 9.1 critical · EPSS 0.2% · published 2026-08-11
- CVE-2024-23473 — CVSS 8.6 high · EPSS 1.0% · published 2024-05-14
- CVE-2025-40537 — CVSS 7.5 high · EPSS 0.5% · published 2026-01-28
- CVE-2026-92450 — CVSS 7.5 high · EPSS 0.3% · published 2026-10-22
- CVE-2026-85451 — CVSS 7.1 high · EPSS 0.2% · published 2026-09-03
- CVE-2026-25600 — CVSS 6.4 medium · EPSS 0.0% · published 2026-06-01
- CVE-2024-28990 — CVSS 6.3 medium · EPSS 0.4% · published 2024-09-12
- CVE-2026-88979 — CVSS 5.8 medium · EPSS 0.2% · published 2026-11-05
- CVE-2026-86150 — CVSS 4.1 medium · EPSS 0.2% · published 2026-09-05
- CVE-2026-42251 — EPSS 0.3% · published 2026-06-01
- CVE-2026-49201 — EPSS 0.3% · published 2026-05-29
- CVE-2026-75754 — EPSS 0.2% · published 2026-09-04
- CVE-2026-13043 — EPSS 0.1% · published 2026-10-01
Affected vendors
- Solarwinds — 4 CVEs
- Dell — 3 CVEs
- Cisco — 2 CVEs
- ASUS — 1 CVE
- Acer — 1 CVE
- D-Link — 1 CVE
- Fortinet — 1 CVE
- Gladinet — 1 CVE
- KAMSOFT — 1 CVE
- Kiloview — 1 CVE
- Quanovate Tech Inc. (operating as Mira / Mira Care) — 1 CVE
- Tenda — 1 CVE
Threat activity
189 tracked threats cite CWE-798; the 25 most recent are listed.
- Bitdefender Threat Debrief Nov 2026: AI-assisted ransomware actors N0n and Azazel (MCP reverse-shell C2), BYOD, Booba TeamHIGH
- GhostAction Supply Chain Campaign Expands: Malicious GitHub Actions Workflow Steals Cloud and AI Credentials from Tens of Thousands of RepositoriesHIGH
- Remus Infostealer 1.3.9 Markets Persistent Gmail Access Feature (Enterprise Tier)HIGH
- Backdoored ARTEX Docker Hub images (tomicdd/artex and clones) expose 62 consoles to unauthenticated root shell; CERT-In CIAD-2026-0058 flags AI-assisted actor Crafty FalconCRITICAL
- Threat actors use agentic AI tooling (ARTEX) to find and abuse exposed secrets in GitHub and AzureHIGH
- CVE-2026-113618: Improper Certificate Validation in KAMSOFT ZSIRep CLIENT libraryMEDIUM
- CISA KEV Addition: SonicWall SonicOS SSLVPN Single-Factor Authentication / SAML Bypass Vulnerability (CVE-2026-19868)CRITICAL
- BOSSAI: AI-Augmented Multi-Agent Attack Campaign Exposes Taiwan Emergency Dispatch and Patient RecordsHIGH
- ARTEX AI-Powered Pentest Platform Abused for Autonomous Cybercrime Campaigns (Apple Certificates, Crypto Draining, Gaming Credentials)HIGH
- Praetorian Brutus: Open-Source Multi-Protocol Credential Testing Engine Expands to 14 New Protocols with People Enumeration and Credential PersistenceMEDIUM
- CVE-2026-25600: Hard-coded Cryptographic Secret in Trac d.o.o. PDBM (Process Database Manager) 1.0.0.0 Enables Administrative Credential DecryptionMEDIUM
- Q3 2026 Ransomware Leak-Site Surge: 30% More Victims Driven by 43 New Groups, With Questionable ClaimsHIGH
- Key Eater: Stolen Microsoft Entra ID Application Credentials Used to Breach 27 OrganizationsHIGH
- AI agent frameworks ARTEX (Vapor Panda, Storm-0940) and CyberStrikeAI scale China-linked intrusion campaignsHIGH
- NCSC CTO Weekly Summary (week ending 2026-09-13): actively exploited Cisco FMC (CVE-2026-20079/20316), PaperCut NG/MF (CVE-2026-81578/82078), MikroTik RouterOS and FortiGate (CVE-2025-25249) flaws; NetScaler SAML bypass (CVE-2026-19490); BlueMoon exploit kitCRITICAL
- Credential Layer Exposure: Hardcoded and Long-Lived Secrets Sprawl Across Repos, CI/CD, Laptops and Secrets ManagersMEDIUM
- AI-Enabled Cyberattack Campaigns Against Japan: Three Cases Beyond ARTEX (CyberStrikeAI, LLM-Assisted Intrusions, AI-Written Tooling)HIGH
- Infostealer Logs Expose Binance Corporate Identities Linked to Okta, Kibana, Git and JetBrains AccessMEDIUM
- GhostAction GitHub Actions Supply-Chain Campaign: October 2026 Wave Largely Blocked, Attackers Retain Access to ~1,800 Compromised AccountsHIGH
- AI-assisted reverse engineering (OpenAI Codex + Binary Ninja MCP) defeats encryption in NetacFileLock, SecZure YutianDun, KakaSoft USB Copy Protection and Nexcopy Copy Secure USB drive softwareMEDIUM
- AI-Enabled Ransomware and Extortion Economics: Stolen AI Credentials, Aurora Ransomware and GTG-50014 Affiliate OperationsHIGH
- LiteLLM Supply Chain Compromise (litellm 1.107.0) Targets AI Developer CredentialsCRITICAL
- CVE-2026-21660: Hardcoded Credentials in Johnson Controls Frick Controls Quantum HD Industrial Refrigeration ControllerMEDIUM
- Attackers Hijacked Over 300 Tor Exit Relays to Intercept SSH Connections (Ebury 1.8.3)HIGH
- Common default passwords used to protect malware-sample archives and encrypted malicious documents (Hexacorn research, incl. Excel VelvetSweatshop)LOW
Mitigations
- Architecture and Design: For outbound authentication: store passwords, keys, and other credentials outside of the code in a strongly-protected, encrypted configuration file or database that is protected from access by all outsiders, including other local users on the same system. Properly protect the key (CWE-320). If you cannot use encryption to protect the file, then make sure that the permissions are as restrictive as possible [REF-7]. In Windows environments, the Encrypted File System (EFS) may provide some protection.
- Architecture and Design: For inbound authentication: Rather than hard-code a default username and password, key, or other authentication credentials for first time logins, utilize a "first login" mode that requires the user to enter a unique strong password or key.
- Architecture and Design: If the product must contain hard-coded credentials or they cannot be removed, perform access control checks and limit which entities can access the feature that requires the hard-coded credentials. For example, a feature might only be enabled through the system console instead of through a network connection.
- Architecture and Design: For inbound authentication using passwords: apply strong one-way hashes to passwords and store those hashes in a configuration file or database with appropriate access control. That way, theft of the file/database still requires the attacker to try to crack the password. When handling an incoming password during authentication, take the hash of the password and compare it to the saved hash. Use randomly assigned salts for each separate hash that is generated. This increases the amount of computation that an attacker needs to conduct a brute-force attack, possibly limiting the effectiveness of the rainbow table method.
- Architecture and Design: For front-end to back-end connections: Three solutions are possible, although none are complete. The first suggestion involves the use of generated passwords or keys that are changed automatically and must be entered at given time intervals by a system administrator. These passwords will be held in memory and only be valid for the time intervals. Next, the passwords or keys should be limited at the back end to only performing actions valid for the front end, as opposed to having full access. Finally, the messages sent should be tagged and checksummed with time sensitive values so as to prevent replay-style attacks.
Source: MITRE CWE, potential mitigations.
Detection methods (MITRE CWE)
- Black Box (effectiveness: Moderate): Credential storage in configuration files is findable using black box methods, but the use of hard-coded credentials for an incoming authentication routine typically involves an account that is not visible outside of the code.
- Automated Static Analysis: Automated white box techniques have been published for detecting hard-coded credentials for incoming authentication, but there is some expert disagreement regarding their effectiveness and applicability to a broad range of methods.
- Manual Static Analysis: This weakness may be detectable using manual code analysis. Unless authentication is decentralized and applied throughout the product, there can be sufficient time for the analyst to find incoming authentication routines and examine the program logic looking for usage of hard-coded credentials. Configuration files could also be analyzed.
- Manual Dynamic Analysis: For hard-coded credentials in incoming authentication: use monitoring tools that examine the product's process as it interacts with the operating system and the network. This technique is useful in cases when source code is unavailable, if the product was not developed by you, or if you want to verify that the build phase did not introduce any new weaknesses. Examples include debuggers that directly attach to the running process; system-call tracing utilities such as truss (Solaris) and strace…
- Automated Static Analysis - Binary or Bytecode (effectiveness: SOAR Partial): According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: Bytecode Weakness Analysis - including disassembler + source code weakness analysis Binary Weakness Analysis - including disassembler + source code weakness analysis
- Manual Static Analysis - Binary or Bytecode (effectiveness: High): According to SOAR [REF-1479], the following detection techniques may be useful: Highly cost effective: Binary / Bytecode disassembler - then use manual analysis for vulnerabilities & anomalies
- Dynamic Analysis with Manual Results Interpretation (effectiveness: SOAR Partial): According to SOAR [REF-1479], the following detection techniques may be useful: Cost effective for partial coverage: Network Sniffer Forced Path Execution
- Manual Static Analysis - Source Code (effectiveness: High): According to SOAR [REF-1479], the following detection techniques may be useful: Highly cost effective: Focused Manual Spotcheck - Focused manual analysis of source Manual Source Code Review (not inspections)
Source: MITRE CWE, detection methods. Threadlinqs detection rules for the threats above are Blue tier and higher.