def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\RazerInstaller.exe"),
            event.deep_get("IntegrityLevel", default="") in ["System", "S-1-16-16384"],
            not event.deep_get("Image", default="").startswith(
                "C:\\Windows\\Installer\\Razer\\Installer\\"
            ),
        ]
    ):
        return True
    return False
