Skip to content

Commit

Permalink
New Atomic - Clear PowerShell Session History (#3011)
Browse files Browse the repository at this point in the history
Co-authored-by: Hare Sudhan <[email protected]>
  • Loading branch information
krdmnbrk and cyberbuff authored Dec 10, 2024
1 parent e5cbc11 commit ddaf498
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions atomics/T1070.003/T1070.003.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,15 @@ atomic_tests:
cleanup_command: |
Set-PSReadLineOption -AddToHistoryHandler $null
name: powershell
- name: Clear PowerShell Session History
description: |
This technique involves using the Clear-History cmdlet in PowerShell to remove all records of previously executed commands.
This action is often performed by attackers to eliminate traces of their activities, making incident detection and forensic
investigation more challenging. By clearing the session history, adversaries aim to obfuscate their operational footprint.
supported_platforms:
- windows
executor:
command: |
Clear-History
name: powershell
elevation_required: false

0 comments on commit ddaf498

Please sign in to comment.