He was really into the Spanish Civil War, and probably hooked up with the Stalinistas when he was in Spain.
I would net that K. Edgar Hoover knew all about Hemmingway precisely because of his Spanish Civil War activities, and his earlier associations while in Paris. The Soviets would have been fools to send an important ‘handler’ anywhere near him.