The early monitoring and inactivation of bacteria are of crucial importance in preventing the further spread of foodborne pathogens. Staphylococcus aureus (S. aureus), a prototypical foodborne pathogen, is widely present in the natural environment and has the capability to trigger a range of diseases at low concentrations. In this work, we designed Fe3O4@SiO2-Au core-shell-satellite nanocomposites (NCs) modified with aptamer for efficient capture, high-sensitivity surface-enhanced Raman scattering (SERS) detection, and photothermal therapy (PTT) against S. aureus. Fe3O4@SiO2-Au NCs with tunable Au nanocrystal nanogaps were prepared. By combining the finite-difference time-domain (FDTD) method and experimental results, we studied the electric field distribution of Fe3O4@SiO2-Au under different Au nanogaps and ultimately obtained the optimal SERS substrate FSA-60. The modification of aptamer on the surfaces of FSA-60 could be used for the specific capture and selective detection of S. aureus, achieving a detection limit of as low as 50 cfu/mL. Furthermore, Apt-FSA-60 possessed excellent photothermal properties, demonstrating the strong photothermal killing ability against S. aureus. Therefore, Apt-FSA-60 is a promising high-sensitivity SERS substrate and efficient photothermal agent and is expected to be widely applied and promoted in future disease prevention and treatment.