The nation's president Daniel Noboa emerged without injury following his official convoy was attacked by stone-throwing demonstrators and what officials described as potential shots.
Noboa was inaugurating a water purification facility in the country's central region when his motorcade was attacked by a sizeable crowd protesting against rising energy costs.
About 500 people showed up and were hurling rocks at him, and there are clearly gunshot impacts on the president's car
commented the country's environment minister.
Authorities reported that five people were detained and would stand court proceedings on terrorism accusations – an offense carrying a maximum punishment of three decades in prison.
Recorded material released by the government depicts demonstrators positioned in the street, draped in flags, scrambling to gather large stones and building blocks.
As the official vehicle drove by, projectiles thudded into the exterior and shattered glass.
A voice could be heard yelling: "Heads down! Get down!" as the vehicle sped away.
Authorities said they were continuing to examine whether some of the impact marks on Noboa's armored vehicle were caused by bullet impacts.
The alleged attack occurred amid several days of progressively aggressive demonstrations triggered by a administration's move to increase fuel costs.
Demonstrators have initiated work stoppages, blocked roads and abducted 16 soldiers – who were eventually released without injury.
Ecuador's largest Indigenous organization reported that a demonstrator had been killed by security personnel during a the protests.
More than 100 people, including protesters and law enforcement, are believed to have been hurt in the violence.
The president has imposed a state of emergency across multiple regions.
Noboa's office said on digital platforms after the attack that "cowardly acts will not deter" the leader.
The head of the regional organization said that "these actions are an attack on democratic principles, peace, and the spirit of harmonious living that must prevail in our nations."
Noboa is attempting to reduce fuel support to save about $1bn in government spending, diverting much of the savings to safety initiatives.
The nation, once considered one of the region's most secure countries, has experienced a significant increase in criminal activity in recent years.
Strategically located between Colombia and Peru, both the planet's biggest cocaine producers, the country has become a major transit hub for narcotics.
Officials have accused drug gangs of exacerbating the protests, suggesting that illegal organizations are taking advantage of the demonstrations to disrupt the country.
It is estimated that 70% of the world's cocaine supply passes through the country, a large portion of it headed for the United States.
This business has attracted international criminal organizations, including Mexico's Sinaloa Cartel, Italian mafia groups, and Albania's mafia.
Their competition for dominance of trafficking routes has turned the nation into one of the region's highest-risk locations.
The president has called for a public vote to permit the presence of American military to the nation, repealing a 2009 ban on foreign bases.
A seasoned betting analyst with over a decade of experience in sports betting and statistical modeling.