def rule(event):
    if all(
        [
            ":3389" in event.deep_get("CommandLine", default=""),
            any(
                [
                    " -L " in event.deep_get("CommandLine", default=""),
                    " -P " in event.deep_get("CommandLine", default=""),
                    " -R " in event.deep_get("CommandLine", default=""),
                    " -pw " in event.deep_get("CommandLine", default=""),
                    " -ssh " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
