CAPEC-191
Read Sensitive Constants Within an Executable
An adversary engages in activities to discover any sensitive constants present within the compiled code of an executable. These constants may include literal ASCII strings within the file itself, or possibly strings hard-coded into particular routines that can be revealed by code refactoring methods including static and dynamic analysis.
On this page
One specific example of a sensitive string is a hard-coded password. Typical examples of software with hard-coded passwords include server-side executables which may check for a hard-coded password or key during a user's authentication with the server. Hard-coded passwords can also be present in client-side executables which utilize the password or key when connecting to either a remote component, such as a database server, licensing server, or otherwise, or a processes on the same host that expects a key or password. When analyzing an executable the adversary may search for the presence of such strings by analyzing the byte-code of the file itself. Example utilities for revealing strings within a file include 'strings,' 'grep,' or other variants of these programs depending upon the type of operating system used. These programs can be used to dump any ASCII or UNICODE strings contained within a program. Strings can also be searched for using a hex editors by loading the binary or object code file and utilizing native search functions such as regular expressions.
Additionally, sensitive numeric values can occur within an executable. This can be used to discover the location of cryptographic constants.
Ask an AI about this attack pattern
Show the prompt
Explain the attack pattern CAPEC-191: Read Sensitive Constants Within an Executable: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/191.html and https://cve.bz/cve/capec/191?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.
Prerequisites
Access to a binary or executable such that it can be analyzed by various utilities.
Resources required
Binary analysis programs such as 'strings' or 'grep', or hex editors.
Weaknesses it exploits
- CWE-798 Use of Hard-coded Credentials
Recent CVEs with these weaknesses
- 9.8CVE-2026-108122
A flaw was found in FreeIPA. When NT hash generation is disabled, the `ipaNTHash` attribute written on the next password change is a predictable all-zero value instead of being left unset. FreeIPA's Samba passdb backend accepts this value …
- 5.5CVE-2026-138427
A vulnerability was identified in SourceCodester Real Estate Property Listing App 1.0. This vulnerability affects unknown code of the file admin/login.php of the component Admin Login. Such manipulation leads to hard-coded credentials. It …
- 6.9CVE-2026-138078
A weakness has been identified in 0x2E fusion up to 1.3.0. Affected is an unknown function of the file backend/internal/handler/fever.go of the component Fever API. Executing a manipulation can lead to hard-coded credentials. The attack ca…
- 8.7CVE-2026-137963
ToolJet before 3.21.96-LTS contains a hard-coded credentials vulnerability where the Helm chart values.yaml sets secret_key_base and lockbox_key to a static published constant. Unauthenticated attackers can sign session tokens with the kno…
- 8.6CVE-2026-137704
D-Link DWM-222W developed by D-Link Corporation has a Use of Hard-coded Credentials vulnerability. Unauthenticated adjacent network attackers can use the administrator account embedded in the firmware to access the configuration backup end…
- 3.4CVE-2026-123923
VMware Avi Load Balancer contains a sensitive information disclosure vulnerability. Broadcom has evaluated the severity of the issue to be in the Low severity range with a maximum CVSSv3 base score of 3.4. Affected versions: VMware Avi Loa…
- 6.3CVE-2026-131816
ChargePoint Home Flex ssh Hard-coded Credentials Authentication Bypass Vulnerability. This vulnerability allows network-adjacent attackers to bypass authentication on affected installations of ChargePoint Home Flex EV chargers. Authenticat…
- 5.5CVE-2026-136733
A weakness has been identified in EduardoPires EquinoxProject up to 1.10. This vulnerability affects the function BuildToken of the file src/Equinox.Services.Api/appsettings.Development.json of the component JWT Bearer Authentication. This…
The newest records naming one of them. Each weakness's page lists them all.
Related attack patterns
- Part of
- CAPEC-167 White Box Reverse Engineering
MITRE's words, unchanged: CAPEC-191 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.