A biosensor for the detection of biological warfare agents (Bacillus anthracis spores) was developed that combines the phage display technique with a magnetoelastic wireless detection platform. The affinity-based biosensor utilizes a phage-derived diagnostic probe as the biomolecular recognition element to capture target agents multivalently. Upon binding of the target agent to the sensor surface, the resonance frequency of the magnetoelastic biosensors decreases due to the additional mass of the target agent. Scanning electron microscopy was used to confirm binding of spores to the sensor surface. The sensitivity of the magnetoelastic acoustic sensor was tested to be 130 Hz per order of magnitude of spore concentration with a detection limit of 10 <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">3</sup> spores/ml. The specificity of the sensors was tested against spores of other closely related Bacillus species and a large preferential binding to Bacillus anthracis spores was observed. The longevity of the phage based biosensor was compared to traditional antibody based biosensors and found to exhibit a much longer life