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