import re


def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\curl.exe"),
                    event.deep_get("OriginalFileName", default="") == "curl.exe",
                ]
            ),
            any(
                [
                    re.match(r"\\s-H\\s", event.deep_get("CommandLine", default="")),
                    "--header" in event.deep_get("CommandLine", default=""),
                ]
            ),
            "User-Agent:" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
