CRISPR-based diagnostics leverage the CRISPR-Cas system to identify specific genetic sequences in a sample. This is typically achieved using a guide RNA (gRNA) that is complementary to the target sequence. When the Cas protein, guided by the gRNA, binds to the target DNA or RNA, it can cleave or modify the sequence, generating a detectable signal.