The wild twists and turns to this bombshell story continue. CIA director David Petraeus resigned suddenly on late Friday afternoon, following revalations that he had carried on an affair with his biographer, Paula Broadwell. Here’s what we know so far:

Initial reports stated that the FBI began investigating a string of threatening emails to a longtime Petraeus family friend, Jill Kelley, of Tampa, Florida. So far, the married Kelley has denied their relationship was anything other than plutonic. The emails were apparently serious enough for Kelley to contact the FBI.

This is where it starts to get murky. The first reports merely said that Kelley was receiving threatening emails, which were eventually traced to Broadwell. There, the FBI saw Petraeus’s name and found other explicit emails describing the affair. However, The Wall Street Journal is reporting that the investigation began out of suspiscion that someone was using Petreaus’ Gmail account to send the messages to Kelley. This, in turn, led them to discover the affair with Broadwell, a married mother of two.

Fatal Attraction?

During the investigation, an FBI employee contacted Republican House Majority Leader Eric Cantor, concerned about the potential national security implications of the inquiry. Cantor has since confirmed that his office had spoken with the source, described as a whistleblower, and have known about the investigation since the end of October.

The fact that it was Petraus’s personal email account, and not his official government account, that was being investigated did little to make the situation any less serious. As the Wall Street Journal piece states:

The computer-security investigation—which raised questions about a potential compromise to national security—points to one reason Mr. Petraeus and the White House decided he couldn’t remain in the senior intelligence position. An extramarital affair has significant implications for an official in a highly sensitive post, because it can open an official to blackmail. Security officials are sensitive to misuse of personal email accounts—not only official accounts—because there have been multiple instances of foreign hackers targeting personal emails.

The latest information indicates that Kelley was accused of having an “inappropriate relationship,” but the emails did not indicate Petraeus by name, prompting her to contact the FBI, instead of Petraeus himself. The ensuing investigation led to the discovery of a gmail account that Petraeus had set up, using a pseudonym.

After monitoring Broadwell’s email account, the FBI finally determined that she was having an affair with Petraeus. This led to concerns that classified information was potentially at risk, leading to the whistleblower contacting Congressman Cantor.