def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\cmd.exe"),
                    event.deep_get("OriginalFileName", default="") == "Cmd.Exe",
                ]
            ),
            any(
                [
                    "-s" in event.deep_get("CommandLine", default=""),
                    "/s" in event.deep_get("CommandLine", default=""),
                    "–s" in event.deep_get("CommandLine", default=""),
                    "—s" in event.deep_get("CommandLine", default=""),
                    "―s" in event.deep_get("CommandLine", default=""),
                ]
            ),
            "dir " in event.deep_get("CommandLine", default=""),
            not "rmdir" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
