They are molds crafted from layers of foam sheets glued together and then covered in one layer epoxy and a touch of hot glue to add some grip.
The bottom one is molded to fit the groves in the helmet, and the top one is molded to hold the light assembly. The two are joined by the flat side. The whole thing is held by the down force of the velcro.
I might add pics later.