The DNAzyme-based nanomachines can be used for highly selective and sensitive detection of nucleic acids. This article describes a detailed protocol for the design of DNAzyme-based nanomachines with a 10-23 core using free software and their application in the detection of an Epstein-Barr virus fragment as an example.