April 28, 2021

Why does power shell syntax allow obfuscation

I’ve been learning about powershell obfuscation and how you can bypass windows defender by obfuscating tokens, and I can’t help but wonder, why didn’t the developers just make powershell more strict in its syntax. What non malicious use case would require inserting arbitrary backticks and quotes inside of tokens and changing the cases, and why couldn’t they just make the tokenizer case sensitive and strict, making it impossible for obfuscation attacks to even have a chance. I wonder similar things about sql and etc. if the only way to input a comment was with “—“, it would be much easier to sanitize input.

Can anyone explain to me why these features would be added in?

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: By filling this form and submitting your commen, you acknowledge, agree and comply with our terms of service. In addition you acknowledge that you are willingly sharing your email address with AiOWikis and you might receive notification emails from AiOWikis for comment notifications. AiOWiksi guarantees that your email address WILL NOT be used for advertisement or email marketting purposes.

This site uses Akismet to reduce spam. Learn how your comment data is processed.