def rule(event):
    if all(
        [
            any(
                [
                    "\\cmd.exe" in event.deep_get("Image", default=""),
                    event.deep_get("OriginalFileName", default="") == "Cmd.EXE",
                ]
            ),
            " net use http" in event.deep_get("CommandLine", default=""),
            "& start /b " in event.deep_get("CommandLine", default=""),
            "\\DavWWWRoot\\" in event.deep_get("CommandLine", default=""),
            any(
                [
                    ".exe " in event.deep_get("CommandLine", default=""),
                    ".dll " in event.deep_get("CommandLine", default=""),
                    ".bat " in event.deep_get("CommandLine", default=""),
                    ".vbs " in event.deep_get("CommandLine", default=""),
                    ".ps1 " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
