---
title: "CWE-224: Obscured Security-relevant Information by Alternate Name"
url: https://radicalnotion.ai/cwe/cwe-224
type: cwe
description: "The product records security-relevant information according to an alternate name of the affected entity, instead of the canonical name."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-224: Obscured Security-relevant Information by Alternate Name

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 0
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The product records security-relevant information according to an alternate name of the affected entity, instead of the canonical name.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |
| Operation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Non-Repudiation, Access Control | Hide Activities, Gain Privileges or Assume Identity | - |

## Demonstrative examples

### Example 1

This code prints the contents of a file if a user has permission.

Bad code:

```php
function readFile($filename){
    $user = getCurrentUser();
    $realFile = $filename;

    //resolve file if its a symbolic link
    if(is_link($filename)){
        $realFile = readlink($filename);
    }

    if(fileowner($realFile) == $user){
        echo file_get_contents($realFile);
        return;
    }
    else{
        echo 'Access denied';
        writeLog($user . ' attempted to access the file '. $filename . ' on '. date('r'));
    }
}
```

While the code logs a bad access attempt, it logs the user supplied name for the file, not the canonicalized file name. An attacker can obscure their target by giving the script the name of a link to the file they are attempting to access. Also note this code contains a race condition between the is\_link() and readlink() functions (CWE-363).

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2002-0725 | Chain: File system allows local attackers to hide file usage activities via a hard link (CWE-65) to the target file, which causes the link to be recorded in the audit trail instead of the target file (CWE-221). |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-221](https://radicalnotion.ai/cwe/cwe-221) | Information Loss or Omission |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Obscured Security-relevant Information by Alternate Name | - | - |

## Frequently asked questions

### What is CWE-224?

The product records security-relevant information according to an alternate name of the affected entity, instead of the canonical name.

### What are the consequences of CWE-224?

Exploiting CWE-224 can lead to: Hide Activities, Gain Privileges or Assume Identity.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/224.html)

---

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