def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\brave.exe"),
                    event.deep_get("Image", default="").endswith("\\chrome.exe"),
                    event.deep_get("Image", default="").endswith("\\msedge.exe"),
                    event.deep_get("Image", default="").endswith("\\opera.exe"),
                    event.deep_get("Image", default="").endswith("\\vivaldi.exe"),
                ]
            ),
            "--headless" in event.deep_get("CommandLine", default=""),
            "dump-dom" in event.deep_get("CommandLine", default=""),
            "http" in event.deep_get("CommandLine", default=""),
            not any(
                [
                    all(
                        [
                            any(
                                [
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files (x86)\\Microsoft\\EdgeCore\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files (x86)\\Microsoft\\EdgeWebView\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files\\Microsoft\\Edge\\Application\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files\\Microsoft\\EdgeCore\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files\\Microsoft\\EdgeWebView\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files\\WindowsApps\\Microsoft.MicrosoftEdge"
                                    ),
                                ]
                            ),
                            any(
                                [
                                    event.deep_get("Image", default="").endswith("\\msedge.exe"),
                                    event.deep_get("Image", default="").endswith(
                                        "\\msedgewebview2.exe"
                                    ),
                                    event.deep_get("Image", default="").endswith(
                                        "\\MicrosoftEdge.exe"
                                    ),
                                ]
                            ),
                            "--headless --disable-gpu --disable-extensions --disable-plugins --mute-audio --no-first-run --incognito --aggressive-cache-discard --dump-dom"
                            in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            any(
                                [
                                    "\\AppData\\Local\\Microsoft\\WindowsApps\\"
                                    in event.deep_get("Image", default=""),
                                    "\\Windows\\SystemApps\\Microsoft.MicrosoftEdge"
                                    in event.deep_get("Image", default=""),
                                ]
                            ),
                            any(
                                [
                                    event.deep_get("Image", default="").endswith("\\msedge.exe"),
                                    event.deep_get("Image", default="").endswith(
                                        "\\MicrosoftEdge.exe"
                                    ),
                                ]
                            ),
                            "--headless --disable-gpu --disable-extensions --disable-plugins --mute-audio --no-first-run --incognito --aggressive-cache-discard --dump-dom"
                            in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
