To study these fungi, “you really have to be in the right place at the right time,” Kasson says. For him, the time was May 2016, when billions of periodical cicadas emerged throughout the northeastern United States. He and his colleagues collected around 150 of the unfortunate saltshakers. And a year later, a colleague supplemented this collection with infected banger-wing cicadas—a different species that emerges annually.

Greg Boyce, a member of Kasson’s team, looked at all the chemicals found in the white fungal plugs of the various cicadas. And to his shock, he found that the banger-wings were loaded with psilocybin—the potent hallucinogen found in magic mushrooms. “At first, I thought: There’s absolutely no way,” he says. “It seemed impossible.” After all, no one has ever detected psilocybin in anything other than mushrooms, and those fungi have been evolving separately from Massospora for around 900 million years.

The surprises didn’t stop there. “I remember looking over at Greg one night and he had a strange look on his face,” Kasson recalls. “He said, ‘Have you ever heard of cathinone?’” Kasson hadn’t, but a quick search revealed that it’s an amphetamine. It had never been found in a fungus before. Indeed, it was known only from the khat plant that has long been chewed by people from the Middle East and the Horn of Africa. But apparently, cathinone is also produced by Massaspora as it infects periodical cicadas.

The team took great pains to check that Massospora really does contain these unexpected drugs. They showed that the substances are found only in the infected cicadas and not in the uninfected ones. They found that the fungus has the right genes for making these chemicals, and contains the precursor substances that you’d expect.

And at some point during this work, it dawned on Kasson that he was working with illicit substances. Psilocybin, in particular, is a Schedule I drug, and researchers who study it need a permit from the Drug Enforcement Administration. “I thought: Oh, crap,” he says. “Then I thought: OH CRAP. The DEA is going to come in here, tase me, and confiscate my flying saltshakers.”

He sent them an email. “This is … interesting,” read the initial response. “You have to understand that this is not something we normally get emails about.” After some discussion, the agency decided that no permit was required, since the drug is found in such small quantities within the cicadas, and since Kasson had no plans for concentrating it.

I asked Kasson if it’s possible to get high by eating Massospora-infected cicadas. Surprisingly, he didn’t say no. “Based on the ones we looked at, it would probably take a dozen or more,” he said. But it’s possible that earlier in the infections, before the conspicuous saltshaker stage, the fungus might pump out higher concentrations of these chemicals. Why? Kasson suspects that the drugs help the fungus control its hosts.