The presence of polyoxymethylene (POM) in cometary grains has been debated years ago. Although never proven, its presence can not be excluded. Rosetta, the ESA mission to comet 67P/Churyumov–Gerasimenko, may answer this question. On board the spacecraft, COSIMA (COmetary Secondary Ion Mass Analyzer) will analyze the grains ejected from the nucleus using a Time Of Flight Secondary Ion Mass Spectrometer (TOF-SIMS). In this paper we report the extent to which COSIMA will be able to detect POM if this compound is present on cometary grains. We have analyzed two kinds of POM polymers with a laboratory model of COSIMA. Positive mass spectra display alternating sequence of peaks with a separation of 30.011 Da between 1 and 600 Da related to formal...