def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").startswith("/etc/sudoers.d/"),
            not all(
                [
                    event.deep_get("Image", default="").endswith("/usr/bin/dpkg"),
                    event.deep_get("TargetFilename", default="")
                    == "/etc/sudoers.d/README.dpkg-new",
                ]
            ),
        ]
    ):
        return True
    return False
