Forensic chemists are often criticised for the lack of quantitative support for the conclusions of their examinations. While scholars advocate for the use of a Bayes factor to quantify the weight of forensic evidence, it is often impossible to assign the necessary probability measures to perform likelihood‐based inference on chemical data. To address this issue, we leverage the properties of kernel functions to offer a method that allows for statistically supporting the inference of the identity of source of sets of trace and control objects by way of a single test. Our method is generic in that it can be easily tailored to any type of data encountered in forensic chemistry, and our method does not depend on the dimension or the type of the considered data. The application of our method to paint evidence analysed by FTIR shows that this type of evidence carries substantial probative value. Finally, our approach can easily be extended to other types of chemical evidence such as glass, fibres, and dust.