Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add artifacts for Powershell command history and logs #399

Open
sa3eed3ed opened this issue Jul 31, 2020 · 0 comments
Open

Add artifacts for Powershell command history and logs #399

sa3eed3ed opened this issue Jul 31, 2020 · 0 comments

Comments

@sa3eed3ed
Copy link
Contributor

Some of the interesting artifacts (availability may depend on PS version and configurations):

  • Powershell Command History
    %%users.userprofile%%\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadline\ConsoleHost_history.txt

  • PowerShell Transcript: For PowerShell versions 2, 3, 4 & 5
    If configured, records transcript of everything entered during a PowerShell session + command output
    Default Path: %%users.homedir%%\My Documents\PowerShell_transcript..txt

  • Script Block logging
    Microsoft-WindowsPowerShell%4Operational.evtx
    Event number: 4103, 4104
    Logs suspicious scripts by default in PS v5

  • Authenticating User
    Microsoft-WindowsPowerShell%4Operational.evtx
    53504

  • Local initiation of powershell
    Microsoft-WindowsPowerShell%4Operational.evtx
    40961, 40962

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant