The present invention pertains to a method of detection, by mass spectrometry, of at least one marker of at least one mechanism of resistance to at least one antimicrobial, resistance of at least one microorganism contained in a sample, characterised in that the antimicrobial is a cephalosporin, and said resistance markers are proteins or peptides. Preferably, said proteins or peptides are proteins from said microorganism.