def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("/dscl"),
            " -append " in event.deep_get("CommandLine", default=""),
            " /Groups/admin " in event.deep_get("CommandLine", default=""),
            " GroupMembership " in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
