Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may match or approximate the name or location of legitimate files, Registry keys, or other resources when naming/placing them.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 251% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 3% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-13 | ✗→✓ | ▲ Improved | -21% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -46% | 0% |
> Sub-technique of: T1036
Adversaries may match or approximate the name or location of legitimate files, Registry keys, or other resources when naming/placing them. This is done for the sake of evading defenses and observation.
This may be done by placing an executable in a commonly trusted directory (ex: under System32) or giving it the name of a legitimate, trusted program (ex: svchost.exe). Alternatively, a Windows Registry key may be given a close approximation to a key used by a legitimate program. In containerized environments, a threat actor may create a resource in a trusted namespace or one that matches the naming convention of a container pod or cluster.
Platforms: Containers, ESXi, Linux, macOS, Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Create and execute a process from a directory masquerading as the current parent directory (... instead of normal ..)
Supported Platforms: macos, linux
bashmkdir $HOME/... cp $(which sh) $HOME/... $HOME/.../sh -c "echo #{test_message}"
Launch an executable that attempts to masquerade as a legitimate executable.
Supported Platforms: windows
powershellAdd-Type -TypeDefinition @' public class Test { public static void Main(string[] args) { System.Console.WriteLine("tweet, tweet"); } } '@ -OutputAssembly "#{executable_filepath}" Start-Process -FilePath "#{executable_filepath}"
This test simulates an adversary renaming cmd.exe to VEDetector.exe to masquerade as a legitimate application. The test copies cmd.exe, renames it to VEDetector.exe, adds a registry run key for persistence, and executes the renamed binary. This technique may be used to evade detection by mimicking legitimate software names or locations.
Expected Output:
References:
Supported Platforms: windows Elevation Required: Yes
powershell# Copy and rename cmd.exe to VEDetector.exe Copy-Item -Path "#{source_file}" -Destination "#{ved_path}\VEDetector.exe" -Force # Create registry run key for persistence New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "VEDetector" -Value "#{ved_path}\VEDetector.exe" -PropertyType String -Force # Start the renamed process Start-Process -FilePath "#{ved_path}\VEDetector.exe" Start-Sleep -Seconds 5
Dependencies:
If Atomic Red Team tests are not applicable, manually verify the technique by:
Use file system access controls to protect folders such as C:\Windows\System32.
Use tools that restrict program execution via application control by attributes other than file name for common operating system utilities that are needed.
Require signed binaries and images.
| Finding | Severity | Impact | | --------------------------------------------------------------- | -------- | --------------- | | Match Legitimate Resource Name or Location technique applicable | High | Defense Evasion |
| CWE ID | Title | | ------- | ---------------------------- | | CWE-693 | Protection Mechanism Failure |
Other measured skills in the registry, with their headline benchmark lift.