Chemical warfare agents such as organophosphorus nerve agents, mustard agents, and psychotomimetic agent like 3-quinuclidinylbenzilate degrade in the environment and form acidic degradation products, the analysis of which is difficult under normal analytical conditions. In the present work, a simultaneous extraction and derivatization method in which the analytes are butylated followed by gas chromatography and mass spectrometric identification of the analytes from aqueous and soil samples was carried out. The extraction was carried out using ion-pair solid-phase extraction with tetrabutylammonium hydroxide followed by gas chromatography with mass spectrometry in the electron ionization mode. Various parameters such as optimum concentration of the ion-pair reagent, pH of the sample, extraction solvent, and type of ion-pair reagent were optimized. The method was validated for various parameters such as linearity, accuracy, precision, and limit of detection and quantification. The method was observed to be linear from 1 to 1000 ng/mL range in selected ion monitoring mode. The extraction recoveries were in the range of 85-110% from the matrixes with the limit of quantification for alkyl phosphonic acids at 1 ng/mL, thiodiglycolic acid at 20 ng/mL, and benzilic acid at 50 ng/mL with intra- and interday precisions below 15%. The developed method was applied for the samples prepared in the scenario of challenging inspection.