def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\cmd.exe"),
                    event.deep_get("OriginalFileName", default="") == "Cmd.Exe",
                ]
            ),
            any(
                [
                    "del " in event.deep_get("CommandLine", default=""),
                    "erase " in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    any(
                        [
                            " -f" in event.deep_get("CommandLine", default=""),
                            " /f" in event.deep_get("CommandLine", default=""),
                            " –f" in event.deep_get("CommandLine", default=""),
                            " —f" in event.deep_get("CommandLine", default=""),
                            " ―f" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    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=""),
                        ]
                    ),
                    any(
                        [
                            " -q" in event.deep_get("CommandLine", default=""),
                            " /q" in event.deep_get("CommandLine", default=""),
                            " –q" in event.deep_get("CommandLine", default=""),
                            " —q" in event.deep_get("CommandLine", default=""),
                            " ―q" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
