def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("EventID", default="") in [4663, 4656],
                    any(
                        [
                            event.deep_get("ObjectName", default="").endswith(".bluesky"),
                            "DECRYPT FILES BLUESKY" in event.deep_get("ObjectName", default=""),
                        ]
                    ),
                ]
            ),
            all(
                [
                    event.deep_get("EventID", default="") == 5145,
                    any(
                        [
                            event.deep_get("RelativeTargetName", default="").endswith(".bluesky"),
                            "DECRYPT FILES BLUESKY"
                            in event.deep_get("RelativeTargetName", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
