In recent papers, we show how accretion disks around massive black holes could act as dynamos producing magnetic jets similar to the jets that create spheromaks in the laboratory. In this paper, we discuss how these magnetic astrophysical jets might naturally produce runaway ion beams accelerated to 10 20 eV or more, finally ejected as ultra high energy cosmic rays (UHECRs) long regarded as one of the mysteries of astrophysics. The acceleration is mainly due to the drift cyclotron loss cone kinetic instability known from plasma research. Experiments and simulations are suggested to verify the acceleration process.