Dark Mode
Capec-36 Detail
Using Unpublished Interfaces or Functionality
Standard Software Hardware Likelihood: Medium Typical Severity: High
Parents: 113
Threats: T62
An adversary searches for and invokes interfaces or functionality that the target system designers did not intend to be publicly available. If interfaces fail to authenticate requests, the attacker may be able to invoke functionality they are not authorized for.
Adversaries can also search for undocumented bits on a hardware device, commonly known as "chicken bits". These bits are used to enable/disable certain functionality, but are not published. Adversaries can reverse engineer firmware to identify hidden features and change these bits at runtime to achieve malicious behavior.
| External ID | Source | Link | Description |
|---|---|---|---|
| CAPEC-36 | capec | https://capec.mitre.org/data/definitions/36.html | |
| CWE-306 | cwe | http://cwe.mitre.org/data/definitions/306.html | |
| CWE-693 | cwe | http://cwe.mitre.org/data/definitions/693.html | |
| CWE-695 | cwe | http://cwe.mitre.org/data/definitions/695.html | |
| CWE-1242 | cwe | http://cwe.mitre.org/data/definitions/1242.html |
Explore
-
Identify services: Discover a service of interest by exploring service registry listings or by connecting on a known port or some similar means.
-
Authenticate to service: Authenticate to the service, if required, in order to explore it.
-
Identify all interfaces: Determine the exposed interfaces by querying the registry as well as probably sniffing to expose interfaces that are not explicitly listed.
| Techniques |
|---|
| Search via internet for known, published services. |
| Use automated tools to scan known ports to identify internet-enabled services. |
| Dump the code from the chip and then perform reverse engineering to analyze the code. |
| Techniques |
|---|
| Use published credentials to access system. |
| Find unpublished credentials to access service. |
| Use other attack pattern or weakness to bypass authentication. |
| Techniques |
|---|
| For any published services, determine exposed interfaces via the documentation provided. |
| For any services found, use error messages from poorly formed service calls to determine valid interfaces. In some cases, services will respond to poorly formed calls with valid ones. |
Experiment
-
Attempt to discover unpublished functions: Using manual or automated means, discover unpublished or undocumented functions exposed by the service.
| Techniques |
|---|
| Manually attempt calls to the service using an educated guess approach, including the use of terms like' 'test', 'debug', 'delete', etc. |
| Use automated tools to scan the service to attempt to reverse engineer exposed, but undocumented, features. |
Exploit
-
Exploit unpublished functions: Using information determined via experimentation, exploit the unpublished features of the service.
| Techniques |
|---|
| Execute features that are not intended to be used by general system users. |
| Craft malicious calls to features not intended to be used by general system users that take advantage of security flaws found in the functions. |
- The architecture under attack must publish or otherwise make available services that clients can attach to, either in an unauthenticated fashion, or having obtained an authentication token elsewhere. The service need not be 'discoverable', but in the event it isn't it must have some way of being discovered by an attacker. This might include listening on a well-known port. Ultimately, the likelihood of exploit depends on discoverability of the vulnerable service.
- None: No specialized resources are required to execute this type of attack. Web service digging tools may be helpful.
| Low |
|---|
| A number of web service digging tools are available for free that help discover exposed web services and their interfaces. In the event that a web service is not listed, the attacker does not need to know much more in addition to the format of web service messages that they can sniff/monitor for. |
| Authorization | Access Control | Confidentiality |
|---|---|---|
| Gain Privileges | Gain Privileges | Read Data |
| Gain Privileges |
- To an extent, Google services (such as Google Maps) are all well-known examples. Calling these services, or extending them for one's own (perhaps very different) purposes is as easy as knowing they exist. Their unencumbered public use, however, is a purposeful aspect of Google's business model. Most organizations, however, do not have the same business model. Organizations publishing services usually fall back on thoughts that Attackers "will not know services exist" and that "even if they did, they wouldn't be able to access them because they're not on the local LAN." Simple threat modeling exercises usually uncovers simple attack vectors that can invalidate these assumptions.