def rule(event):
    if all(
        [
            "Software\\Microsoft\\Office\\" in event.deep_get("TargetObject", default=""),
            event.deep_get("TargetObject", default="").endswith("\\Excel\\Options"),
            event.deep_get("Details", default="").startswith("/R "),
            event.deep_get("Details", default="").endswith(".xll"),
        ]
    ):
        return True
    return False
