def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\WinSCP.exe"),
                    event.deep_get("OriginalFileName", default="") == "winscp.exe",
                ]
            ),
            any(
                [
                    "-command" in event.deep_get("CommandLine", default=""),
                    "/command" in event.deep_get("CommandLine", default=""),
                    "–command" in event.deep_get("CommandLine", default=""),
                    "—command" in event.deep_get("CommandLine", default=""),
                    "―command" in event.deep_get("CommandLine", default=""),
                ]
            ),
            "open " in event.deep_get("CommandLine", default=""),
            "ftp://" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
