Cosmic rays, and muons in particular, are hard to detect because they are traveling very fast and pass through most materials without interacting. The trick to detecting them is to take advantage of the fact that they are charged particles.