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

Usage of encoded string in PowerShell #191

Open
zabrowski opened this issue Aug 28, 2020 · 1 comment
Open

Usage of encoded string in PowerShell #191

zabrowski opened this issue Aug 28, 2020 · 1 comment

Comments

@zabrowski
Copy link

zabrowski commented Aug 28, 2020

Description
The program generates base 64 string in powershell completely unnecessary. Such behavior is suspected and will catch a red flag in all intrusion prevention systems. You get under the definition of MITRE TA005 https://attack.mitre.org/tactics/TA0005/.

Steps to reproduce
Just run program.
4. See error
powershell -NoProfile -NonInteractive –ExecutionPolicy Bypass -EncodedCommand
BASE64 CODE (...)ACIAQwA6AFwAVQBzAGUAcgBzAFwAVwBBAEwAVABFAFIAfgAxAC4ATABVAFMAXABBAHAAcABEAGEAdABhAFwATABvAGMAYQBsAFwAVABlAG0AcABcAHMAbQBlAC0AcgBlAHMAdQBsAHQALQAyADAAMgAwADcAMgA4AC0AMgA0ADQAMgA4AC0AegA0AG4AZwBpAHAALgBoAGEAMQBrAGgALgBoAHQAbQBsAGAAIgAiAA== (Decoded: Start ""C:\Users\(...)\AppData\Local\Temp\sme-result-xxx-xxx-z4ngip.ha1kh.html"")

Expected behavior
Clear text PS command

Environment

  • Win 10
  • source-map-explorer Version 2.5.0
@zabrowski zabrowski changed the title Usage of encoded string in PowerShall Usage of encoded string in PowerShell Aug 28, 2020
@volago
Copy link

volago commented Sep 23, 2020

Perhaps minimizing files in folder /src/lib/vendor and withdrawal base64 codding could solve this issue

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

2 participants