---
title: "CAPEC-191: Read Sensitive Constants Within an Executable"
url: https://radicalnotion.ai/capec/capec-191
type: capec
description: "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."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-191: Read Sensitive Constants Within an Executable

- **Abstraction:** Detailed
- **Status:** Draft
- **Typical severity:** Low
- **CAPEC catalog version:** 3.9

## Description

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.

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.

## 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.

## Related weaknesses (CWE)

- [CWE-798](https://radicalnotion.ai/cwe/cwe-798): Use of Hard-coded Credentials

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-167](https://radicalnotion.ai/capec/capec-167) | White Box Reverse Engineering |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| ATTACK | Unsecured Credentials:Credentials in files | 1552.001 |

## Frequently asked questions

### What is CAPEC-191?

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.

### What weaknesses does CAPEC-191 target?

CAPEC-191 exploits one CWE weakness: CWE-798 (Use of Hard-coded Credentials).

### How severe is CAPEC-191?

MITRE rates CAPEC-191 as Low severity.

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/191.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-191). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
