This letter considers the physical layer security of a pilot-based massive multiple-input multiple-output (MaMIMO) system in presence of a multi-antenna jammer. We propose a new jamming detection method that makes use of a generalized likelihood ratio tes