Triacetone triperoxide (TATP) is a highly potent homemade explosive commonly used in terrorist attacks. Its detection poses a significant challenge due to its volatility, and the lack of portability of current sensing techniques. To address this issue, we propose a novel approach based on single-molecule TATP detection in the air using a device where tunneling current in N-terminated carbon-nanotubes nanogaps is measured. By employing the density functional theory combined with the non-equilibrium Green's function method, we show that current of tens of nanoamperes passes through TATP trapped in the nanogap, with a discrimination ratio of several orders of magnitude even against prevalent indoor volatile organic compounds (VOCs). This high tunneling current through TATP's highest occupied molecular orbital (HOMO) is facilitated by the strong electric field generated by N-C polar bonds at the electrode ends and by the hybridization between TATP and the electrodes, driven by oxygen atoms within the probed molecule. The application of the same principle is discussed for graphene nanogaps and break-junctions.