def rule(event):
    if any(
        [
            event.deep_get("ParentImage", default="").endswith("\\ftp.exe"),
            all(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\ftp.exe"),
                            event.deep_get("OriginalFileName", default="") == "ftp.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=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
