Ves only managed to detect and unravel the lockbox due to the same advantages he employed so successfully in completing the research projects.
Without his modern scanner that could detect what ancient scanners could not, he wouldn't have been able to detect the lockbox buried underneath the toilet.
Without his advanced knowledge and practical experience of working with various kinds of machines, Ves wouldn't have been able to reverse engineer the mechanical lock and unravel it in the proper method.
Without his modern military-issue comm with a hacking module that could take advantage of many known exploits, he wouldn't have been able to bypass the electronic lock so quickly.
"A Senior Mech Designer that went through so much effort to hide something inside such a lockbox must be hiding something remarkable."