It is now known that most cosmic rays are atomic nuclei.
Most are hydrogen nuclei, some are helium nuclei, and the rest heavier elements.
The relative abundance changes with cosmic ray energy -- the highest energy cosmic rays tend to be heavier nuclei.
Although many of the low energy cosmic rays come from our Sun, the origins of the highest energy cosmic rays remains unknown and a topic of much research.