def rule(event):
    if all(
        [
            event.deep_get("EventID", default="") == 5156,
            event.deep_get("DestPort", default="") == 88,
            not all(
                [
                    any(
                        [
                            event.deep_get("Application", default="").startswith(
                                "\\device\\harddiskvolume"
                            ),
                            event.deep_get("Application", default="").startswith("C:"),
                        ]
                    ),
                    event.deep_get("Application", default="").endswith(
                        "\\Windows\\System32\\lsass.exe"
                    ),
                ]
            ),
            not any(
                [
                    all(
                        [
                            any(
                                [
                                    event.deep_get("Application", default="").startswith(
                                        "\\device\\harddiskvolume"
                                    ),
                                    event.deep_get("Application", default="").startswith("C:"),
                                ]
                            ),
                            any(
                                [
                                    event.deep_get("Application", default="").endswith(
                                        "\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
                                    ),
                                    event.deep_get("Application", default="").endswith(
                                        "\\Program Files\\Google\\Chrome\\Application\\chrome.exe"
                                    ),
                                ]
                            ),
                        ]
                    ),
                    all(
                        [
                            any(
                                [
                                    event.deep_get("Application", default="").startswith(
                                        "\\device\\harddiskvolume"
                                    ),
                                    event.deep_get("Application", default="").startswith("C:"),
                                ]
                            ),
                            any(
                                [
                                    event.deep_get("Application", default="").endswith(
                                        "\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"
                                    ),
                                    event.deep_get("Application", default="").endswith(
                                        "\\Program Files\\Mozilla Firefox\\firefox.exe"
                                    ),
                                ]
                            ),
                        ]
                    ),
                    event.deep_get("Application", default="").endswith(
                        "\\tomcat\\bin\\tomcat8.exe"
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
