What is this!?

Found on top of wardrobe - having some trouble with moths so hoping it’s not moth larvae - yellow discharge when squashed