I'm in a box, full of that which is most rare.
But I'm not a flute, and I'm not some hair.
Though soft be my bed, I'm as hard as a rock.
While dull in the dark, I glisten once unlocked.
Answer: Jewel.
This riddle appears in the following downloadable PDF files: