def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") in [2005, 2073],
            not any(
                [
                    event.deep_get("ApplicationPath", default="").endswith(
                        "\\AppData\\local\\microsoft\\teams\\current\\teams.exe"
                    ),
                    event.deep_get("ApplicationPath", default="").endswith(
                        "\\AppData\\Local\\Keybase\\keybase.exe"
                    ),
                    event.deep_get("ApplicationPath", default="").endswith(
                        "\\AppData\\Local\\Programs\\Messenger\\Messenger.exe"
                    ),
                    all(
                        [
                            ":\\Users\\" in event.deep_get("ApplicationPath", default=""),
                            "\\AppData\\Local\\Programs\\Opera\\"
                            in event.deep_get("ApplicationPath", default=""),
                            "\\opera.exe" in event.deep_get("ApplicationPath", default=""),
                        ]
                    ),
                    all(
                        [
                            ":\\Users\\" in event.deep_get("ApplicationPath", default=""),
                            "\\AppData\\Local\\BraveSoftware\\Brave-Browser\\Application\\brave.exe"
                            in event.deep_get("ApplicationPath", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
