The autocatalytic formation of isopeptide bonds by ligation of peptidyl-lysine and peptidyl-asparagine residues; known to occur in the capsid of some bacteriophage, such as HK97, where it is thought to provide a mechanism for stabilizing the capsid.