def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4656,
            event.deep_get("ObjectType", default="") == "Key",
            event.deep_get("ObjectName", default="").endswith("\\SAM"),
        ]
    ):
        return True
    return False
