During the McCarthy era there was a TV show "I Led Three Lives" about an FBI agent who was supposed to be a family man, a communist party member, as well as an undercover FBI agent. The Red Scare was real at the time. There was lots of literature about how to discover who was a communist, etc
Lee Harvey Oswald is reported to have loved that show.