def rule(event):
    if all(
        [
            any(
                [
                    "findstr" in event.deep_get("CommandLine", default=""),
                    event.deep_get("Image", default="").endswith("findstr.exe"),
                    event.deep_get("OriginalFileName", default="") == "FINDSTR.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=""),
                ]
            ),
            any(
                [
                    " -i " in event.deep_get("CommandLine", default=""),
                    " /i " in event.deep_get("CommandLine", default=""),
                    " –i " in event.deep_get("CommandLine", default=""),
                    " —i " in event.deep_get("CommandLine", default=""),
                    " ―i " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
