@Edent
In cryptography, it's called "man-in-the-middle attack":https://en.m.wikipedia.org/wiki/Man-in-the-middle_attack