def rule(event):
    if all(
        [
            any(
                [
                    ":\\Windows\\Microsoft.NET\\Framework\\" in event.deep_get("Image", default=""),
                    ":\\Windows\\Microsoft.NET\\Framework64\\"
                    in event.deep_get("Image", default=""),
                    ":\\Windows\\Microsoft.NET\\FrameworkArm\\"
                    in event.deep_get("Image", default=""),
                    ":\\Windows\\Microsoft.NET\\FrameworkArm64\\"
                    in event.deep_get("Image", default=""),
                ]
            ),
            event.deep_get("Image", default="").endswith("\\aspnet_compiler.exe"),
            any(
                [
                    "\\Users\\Public\\" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\Local\\Temp\\" in event.deep_get("CommandLine", default=""),
                    "\\AppData\\Local\\Roaming\\" in event.deep_get("CommandLine", default=""),
                    ":\\Temp\\" in event.deep_get("CommandLine", default=""),
                    ":\\Windows\\Temp\\" in event.deep_get("CommandLine", default=""),
                    ":\\Windows\\System32\\Tasks\\" in event.deep_get("CommandLine", default=""),
                    ":\\Windows\\Tasks\\" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
