def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 4663,
            event.deep_get("ObjectType", default="") == "File",
            "\\AppData\\Roaming\\Signal\\" in event.deep_get("ObjectName", default=""),
            any(
                [
                    event.deep_get("ObjectName", default="").endswith("\\config.json"),
                    event.deep_get("ObjectName", default="").endswith("\\db.sqlite"),
                ]
            ),
            not any(
                [
                    event.deep_get("ProcessName", default="").endswith("\\signal-portable.exe"),
                    event.deep_get("ProcessName", default="").endswith("\\signal.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
