A theoretical solution is a gadget that can read the chemical composition of a powder placed in front of its sensor, and digitally sign it... obviously there's a MITM attack there, if I can go between the sensor and the CPU, I can tell the CPU "the sensors read these values..."