@Edent

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