Text this: Secure performance analysis and detection of pilot attack in massive multiple-input multiple-output system