Spying on bacteria for rapid diagnostic applications