def rule(event):
    if any(
        [
            any(
                [
                    "\\purplesharp" in event.deep_get("Image", default=""),
                    event.deep_get("OriginalFileName", default="") == "PurpleSharp.exe",
                ]
            ),
            any(
                [
                    "xyz123456.exe" in event.deep_get("CommandLine", default=""),
                    "PurpleSharp" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
