
Collisionless shocks are ubiquitous in space plasmas throughout the Universe and are widely believed to be primary sites of cosmic ray acceleration1,2. The prevailing mechanism, diffusive shock acceleration, requires particles to repeatedly cross the shock front, gaining energy with each crossing.