DNA carries genetic information and can serve as an important biomarker for the early diagnosis and assessment of the disease prognosis. Here, we propose a bottom-up assembly method for a silica nanowire-filled glass microporous (SiNWs@ GMP) sensor and develop a universal sensing platform for the ultrasensitive and specific detection of DNA. The three-dimensional network structure formed by SiNWs provides them with highly abundant and accessible binding sites, allowing for the immobilization of a large amount of capture probe DNA, thereby enabling more target DNA to hybridize with the capture probe DNA to improve detection performance. Therefore, the SiNWs@ GMP sensor achieves ultrasensitive detection of target DNA. In the detection range of 1 aM to 100 fM, there is a good linear relationship between the decrease rate of current signal and the concentration of target DNA, and the detection limit is as low as 1 aM. The developed SiNWs@GMP sensor can distinguish target DNA sequences that are 1-, 3-, and 5-mismatched, and specifically recognize target DNA from complex mixed solution. Furthermore, based on this excellent selectivity and specificity, we validate the universality of this sensing strategy by detecting DNA (H1N1 and H5N1) sequences associated with the avian influenza virus. By replacing the types of nucleic acid aptamers, it is expected to achieve a wide range and low detection limit sensitive detection of various biological molecules. The results indicate that the developed universal sensing platform has ultrahigh sensitivity, excellent selectivity, stability, and acceptable reproducibility, demonstrating its potential application in DNA bioanalysis.