Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adversaries may delete files left behind by the actions of their intrusion activity.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 6% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 172% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -63% | 0% |
| case-11 | ✗→✓ | ▲ Improved | -4% | 0% |
> Sub-technique of: T1070
Adversaries may delete files left behind by the actions of their intrusion activity. Malware, tools, or other non-native files dropped or created on a system by an adversary (ex: Ingress Tool Transfer) may leave traces to indicate to what was done within a network and how. Removal of these files can occur during an intrusion, or as part of a post-intrusion process to minimize the adversary's footprint.
There are tools available from the host operating system to perform cleanup, but adversaries may use other tools as well. Examples of built-in Command and Scripting Interpreter functions include <code>del</code> on Windows, <code>rm</code> or <code>unlink</code> on Linux and macOS, and rm on ESXi.
Platforms: ESXi, Linux, macOS, Windows
The following tests are from Atomic Red Team and provide actionable ways to test this technique:
Delete a single file from the temporary directory
Supported Platforms: linux, macos
bashrm -f #{file_to_delete}
Dependencies:
Recursively delete the temporary directory and all files contained within it
Supported Platforms: linux, macos
bashrm -rf #{folder_to_delete}
Dependencies:
Use the shred command to overwrite the temporary file and then delete it
Supported Platforms: linux
bashshred -u #{file_to_shred}
Dependencies:
Delete a single file from the temporary directory using cmd.exe. Upon execution, no output will be displayed. Use File Explorer to verify the file was deleted.
Supported Platforms: windows
cmddel /f #{file_to_delete}
Dependencies:
Recursively delete a folder in the temporary directory using cmd.exe. Upon execution, no output will be displayed. Use File Explorer to verify the folder was deleted.
Supported Platforms: windows
cmdrmdir /s /q #{folder_to_delete}
Dependencies:
If Atomic Red Team tests are not applicable, manually verify the technique by:
No specific mitigations documented for this technique.
| Finding | Severity | Impact | | ---------------------------------- | -------- | --------------- | | File Deletion technique applicable | Low | Defense Evasion |
| CWE ID | Title | | ------- | ---------------------------- | | CWE-693 | Protection Mechanism Failure |
Other measured skills in the registry, with their headline benchmark lift.