def rule(event):
    if all(
        [
            any(
                [
                    "Invoke-RestMethod " in event.deep_get("CommandLine", default=""),
                    "Invoke-WebRequest " in event.deep_get("CommandLine", default=""),
                    "IRM " in event.deep_get("CommandLine", default=""),
                    "IWR " in event.deep_get("CommandLine", default=""),
                ]
            ),
            "http" in event.deep_get("CommandLine", default=""),
            "OutFile" in event.deep_get("CommandLine", default=""),
            ".dll" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
