def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("OriginalFileName", default="") == "Plink",
                    all(
                        [
                            " -l forward" in event.deep_get("CommandLine", default=""),
                            " -P " in event.deep_get("CommandLine", default=""),
                            " -R " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            not event.deep_get("Image", default="").endswith("\\plink.exe"),
        ]
    ):
        return True
    return False
