def rule(event):
    if all(
        [
            " tunnel " in event.deep_get("CommandLine", default=""),
            "cleanup " in event.deep_get("CommandLine", default=""),
            any(
                [
                    "-config " in event.deep_get("CommandLine", default=""),
                    "-connector-id " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
