The comet-like composition of a protoplanetary disk as revealed by complex cyanides