NVISO Labs has a deep and technical article about the attack known as ConsentFix (a.k.a. AuthCodeFix). This attack, like its cousin ClickFix, relies on both social engineering and a lack of specific technical controls. Helpfully, the author Stamatis Chatzimangou provides some mitigations. Read the article for full mitigation details, but in summary they are:
1) Create service principals for the affected Microsoft first-party applications (such as the Azure CLI and Azure PowerShell) and…