def rule(event):
    if all(
        [
            "Remove-MpPreference" in event.deep_get("CommandLine", default=""),
            any(
                [
                    "-ControlledFolderAccessProtectedFolders "
                    in event.deep_get("CommandLine", default=""),
                    "-AttackSurfaceReductionRules_Ids "
                    in event.deep_get("CommandLine", default=""),
                    "-AttackSurfaceReductionRules_Actions "
                    in event.deep_get("CommandLine", default=""),
                    "-CheckForSignaturesBeforeRunningScan "
                    in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
