Sorry. I forgot to add “(Vanity)” to the title.
Definitely moth pupae.
A Google image search for moth pupae will show a number of similar examples.