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?