I don't think it's confirmed what he's made out of, I think it's confirmed that truth seeking balls are a fusion of all basic elements reinforced by sage chakra, I think Kaguya doesn't posses sage chakra so it make sense by fusing the five basic elements and using yin yang chakra black zetsu created, but I think see subconsciously created him.