Two Pakistani nationals were on Monday charged before a Nairobi court over allegations of spying to carry out an act of terrorism.
Police suspect that the two might be international spies scouting the area to determine where they could stage a terror attack.
The two men, Gull Mohammed Irfan and HusenShaahed, were arrested by police in Nyeri town.
According to police records, the two had camped at the Narumoru market hawking second-hand clothes.
An alarm was raised after it was alleged that the two men were suspiciously taking photos of churches and schools in the area.
Police requested for detention orders to allow for proper-verification of their identities.
The investigating officer told the court that the two did not provide work permits.
"We believe that the two are on a spying mission to mark their target areas, Your Honor, and we need time to investigate further," the investigating officer told the court.
He further told the court that the Immigration Department had not yet confirmed the legality of their stay in the country.
Senior Resident Magistrate Elector Riany granted five days to carry out the investigation.
The magistrate ordered that the two main to be detained in custody untill the case is mentioned on July 27, 2018.