There are billions of books that in recent and in ancient times have been produced by the human race containing evidence of its intellectual and cultural efforts. Even when stored in libraries, not all these books survive over time undamaged, because in the biosphere their materials are potential nutrients. This is the unfortunate case of the History and Historical Documentation Library of the University of Milan, where biological agents have badly affected rare and valuable old books. An entomological monitoring was carried out using sticky traps and collecting insects during inspections. The beetle Gastrallus pubens Fairmaire, rarely identified in European libraries so far, was the main biological agent responsible for the book damage, since several tunnels due to larval activity and holes made by adults were observed. Using the Illumina MiSeq sequencing technology, Proteobacteria, Firmicutes and Actinobacteria were found to be the most abundant phyla. Ascomycota was the dominant phylum among three fungal phyla. As bacteria and fungi spread by the insects are primary indications of the insect presence in the library, in this paper a potential biomarker able to detect the G. pubens presence before visible infestation was searched for among the bacterial and fungal community peculiar in the insect frass and gut, but also found on books and the surfaces of shelves. Symbiotaphrina, an ascomycete fungus described as one of the symbiotic levuliform fungi, present in the anobiid beetles' gut, was the only one found in all samples analyzed and has therefore been proposed as a putative biomarker.