The US government created a secret database tracking journalists, activists and social media influencers tied to a caravan of Central American migrants, according to a report published Wednesday.

Documents obtained by NBC San Diego reportedly show how government agents targeted the journalists who reported on and the activists who helped the caravan as it made its way to the US-Mexico border in late 2018.

Several of the journalists on the list told the outlet that they were targeted for secondary screenings by border officials.

In some cases, alerts were placed on the passports of some of the individuals on the list, the report said.

The database appeared to have been used by Customs and Border Protection, Immigration and Customs Enforcement, the US Border Patrol, Homeland Security Investigations and some agents from the San Diego sector of the FBI.

The individuals listed include 10 journalists, seven of whom are US citizens, and 47 other people from the US and other countries labeled as “organizers,” “instigators,” or with the role “unknown.”

Each of them have their photo, either from their passport or social media accounts and personal information. Some have a colored “X” over their photo, indicating whether they were arrested, interviewed or had their visa revoked.

In some cases, dossiers were compiled on the individuals, with the help of intelligence from Mexican officials, the report said.

A CBP spokesperson told NBC News the names in the database are all people who were present when violence broke out at the border in November. They said journalists are being tracked so the agency can learn more about what started the outburst.