def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\cmd.exe"),
                            event.deep_get("Image", default="").endswith("\\powershell.exe"),
                            event.deep_get("Image", default="").endswith("\\pwsh.exe"),
                        ]
                    ),
                    event.deep_get("OriginalFileName", default="")
                    in ["Cmd.Exe", "PowerShell.EXE", "pwsh.dll"],
                ]
            ),
            event.deep_get("ParentImage", default="").endswith("\\elevation_service.exe"),
            event.deep_get("IntegrityLevel", default="") in ["System", "S-1-16-16384"],
        ]
    ):
        return True
    return False
