def rule(event):
    if all(
        [
            any(
                [
                    "--meshServiceName" in event.deep_get("CommandLine", default=""),
                    "meshagent" in event.deep_get("OriginalFileName", default=""),
                ]
            ),
            not event.deep_get("Image", default="").endswith("\\meshagent.exe"),
        ]
    ):
        return True
    return False
