Metasedimentary rocks from Isua, West Greenland (over 3,700 million years old) contain 13C-depleted carbonaceous compounds, with isotopic ratios that are compatible with a biogenic origin. Metamorphic garnet crystals in these rocks contain trails of carbonaceous inclusions that are contiguous with carbon-rich sedimentary beds in the host rock, where carbon is fully graphitized. Previous studies have not been able to document other elements of life (mainly hydrogen, oxygen, nitrogen and phosphorus) structurally bound to this carbonaceous material. Here we study carbonaceous inclusions armoured within garnet porphyroblasts, by in situ infrared absorption on approximately 10-21 m3 domains within these inclusions. We show that the absorption spectra are consistent with carbon bonded to nitrogen and oxygen, and probably also to phosphate. The levels of C-H or O-H bonds were found to be low. These results are consistent with biogenic organic material isolated for billions of years and thermally matured at temperatures of around 500 °C. They therefore provide spatial characterization for potentially the oldest biogenic carbon relics in Earth's geological record. The preservation of Eoarchean organic residues within sedimentary material corroborates earlier claims for the biogenic origins of carbon in Isua metasediments.