Jack of Lies - S2-E6
Continuity mistake: When MacGyver et al. spot the car they will use to escape, the headlights are clean and white. After the commercial break, they are much dirtier and the dirt is only on certain precise spots on the headlights. (00:33:15 - 00:35:25)
Answer: Late one night, Geoffrey used a covert listening device to overhear David explaining his barricade device to Janet which is how he figured it out.
How do we know Geoffrey really did use a covert listening device? They didn't mention him using one.
There was a scene of him using it when David told Janet about his barricade.