def rule(event):
    if event.deep_get("TargetObject", default="").endswith("\\Software\\firm\\soft\\Name"):
        return True
    return False
