NewsGuard, the purportedly impartial media rating service that has created a blacklist of disfavored news organization, boasted of its ties to the intelligence community and to other arms of the federal government in a pitch to Twitter before Elon Musk bought the company.