def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").endswith(":Zone.Identifier"),
            not event.deep_get("Image", default="")
            in [
                "C:\\Program Files\\PowerShell\\7-preview\\pwsh.exe",
                "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
                "C:\\Windows\\explorer.exe",
                "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
                "C:\\Windows\\SysWOW64\\explorer.exe",
                "C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe",
            ],
            not any(
                [
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
                        "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
                    ],
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe",
                        "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
                    ],
                    event.deep_get("Image", default="")
                    in [
                        "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
                        "C:\\Program Files\\Microsoft\\Edge\\Application\\msedge.exe",
                    ],
                ]
            ),
        ]
    ):
        return True
    return False
