def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 5145,
            event.deep_get("ObjectType", default="") == "File",
            event.deep_get("RelativeTargetName", default="").endswith("\\desktop.ini"),
            any(
                [
                    "WriteData" in event.deep_get("AccessList", default=""),
                    "DELETE" in event.deep_get("AccessList", default=""),
                    "WriteDAC" in event.deep_get("AccessList", default=""),
                    "AppendData" in event.deep_get("AccessList", default=""),
                    "AddSubdirectory" in event.deep_get("AccessList", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
