def rule(event):
    if all(
        [
            event.deep_get("TargetObject", default="").endswith(
                "\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\\logon"
            ),
            event.deep_get("Details", default="").endswith(".dll"),
        ]
    ):
        return True
    return False
