def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\curl.exe"),
            any(
                [
                    "socks5h://" in event.deep_get("CommandLine", default=""),
                    "socks5://" in event.deep_get("CommandLine", default=""),
                    "socks4a://" in event.deep_get("CommandLine", default=""),
                ]
            ),
            ".onion" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
