def rule(event):
    if any(
        [
            event.deep_get("Image", default="").endswith("\\SharpSuccessor.exe"),
            event.deep_get("OriginalFileName", default="") == "SharpSuccessor.exe",
            "SharpSuccessor" in event.deep_get("CommandLine", default=""),
            all(
                [
                    " add " in event.deep_get("CommandLine", default=""),
                    " /impersonate" in event.deep_get("CommandLine", default=""),
                    " /path" in event.deep_get("CommandLine", default=""),
                    " /account" in event.deep_get("CommandLine", default=""),
                    " /name" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
