We present results of the propagation of high-energy cosmic rays (CRs) and their secondaries in the intracluster medium (ICM). To this end, we employ three-dimensional cosmological magnetohydrodynamical simulations of the turbulent intergalactic medium to explore the propagation of CRs with energies between 1014 and 1019 eV. We study the interaction of test particles with this environment considering all relevant electromagnetic, photohadronic, photonuclear, and hadronuclear processes. Finally, we discuss the consequences of the confinement of high-energy CRs in clusters for the production of gamma rays and neutrinos.