The invention relates to the technical field of biosensors, in particular to a biosensor for detecting glutathione (GSH) by a gold nanoparticle-based DNA molecule machine. The biosensor comprises a hairpin probe HAP (stem-modified disulfide bond), a composite probe P, a P3 probe, heme, potassium ion, a target object GSH, nanometer gold and a buffer liquid, wherein the composite probe P is modifiedonto a surface of the nanometer gold by polyA modification. A hairpin structure is damaged by a cracking function of the target object GSH on the disulfide bond, a Walker nucleic acid chain is released, P2 can be replaced from the composite probe P through strand displacement reaction of a support point medium by the released Walker nucleic acid chain and the P3 probe, the P2 is a sequence rich with G-quadruplet, G-quadruplet / heme DNA enzyme is formed in the presence of the heme, so that an aptamer biosensor is built. The reaction of the sensor is finished only in one step, thus, the sensor has the advantages of rapid detection speed, low cost, low detection limit, high specificity and the like and is simple and convenient to operate.