COSAC (Cometary Sampling and Composition) is a system specially designed for the detection of complex organic (carbon-bearing) molecules. It was designed so that material from the surface of the comet would be fed into the instrument from the SD2 instrument, combusted, and the resultant gas fed into the analysis section, consisting of a gas chromatograph and a mass spectrometer. In principle it is similar to the Ptolemy instrument also found on the Philae lander. After landing, COSAC was the instrument chosen to receive the single drill sample available before the primary battery failed.

The COSAC instrument. Copyright Max Planck Institute
For further information and sources visit:
http://sci.esa.int/rosetta/31445-instruments/?fbodylongid=895