---
title: "CAPEC-635: Alternative Execution Due to Deceptive Filenames"
url: https://radicalnotion.ai/capec/capec-635
type: capec
description: "The extension of a file name is often used in various contexts to determine the application that is used to open and use it. If an attacker can cause an alternative application to be used, it may be able to execute malicious code, cause a denial of service or expose sensitive information."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-635: Alternative Execution Due to Deceptive Filenames

- **Abstraction:** Standard
- **Status:** Draft
- **Typical severity:** High
- **CAPEC catalog version:** 3.9

## Description

The extension of a file name is often used in various contexts to determine the application that is used to open and use it. If an attacker can cause an alternative application to be used, it may be able to execute malicious code, cause a denial of service or expose sensitive information.

## Prerequisites

- The use of the file must be controlled by the file extension.

## Mitigations

- Applications should insure that the content of the file is consistent with format it is expecting, and not depend solely on the file extension.

## Related weaknesses (CWE)

- [CWE-162](https://radicalnotion.ai/cwe/cwe-162): Improper Neutralization of Trailing Special Elements

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-165](https://radicalnotion.ai/capec/capec-165) | File Manipulation |
| Child | [CAPEC-11](https://radicalnotion.ai/capec/capec-11) | Cause Web Server Misclassification |
| Child | [CAPEC-649](https://radicalnotion.ai/capec/capec-649) | Adding a Space to a File Extension |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| ATTACK | Masquerading: Double File Extension | 1036.007 |

## Frequently asked questions

### What is CAPEC-635?

The extension of a file name is often used in various contexts to determine the application that is used to open and use it. If an attacker can cause an alternative application to be used, it may be able to execute malicious code, cause a denial of service or expose sensitive information.

### How do you prevent CAPEC-635?

Applications should insure that the content of the file is consistent with format it is expecting, and not depend solely on the file extension.

### What weaknesses does CAPEC-635 target?

CAPEC-635 exploits one CWE weakness: CWE-162 (Improper Neutralization of Trailing Special Elements).

### How severe is CAPEC-635?

MITRE rates CAPEC-635 as High severity.

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

---

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