The nation's leader Daniel Noboa emerged without injury after his presidential convoy was targeted by stone-throwing demonstrators and what officials described as possible shots.
The president was inaugurating a water treatment plant in central Ecuador when his convoy was attacked by a sizeable crowd demonstrating against rising energy costs.
About 500 people appeared and were hurling rocks at him, and there are obviously bullet marks on the official vehicle
stated the country's environmental official.
Officials reported that five people were detained and would face court proceedings on terrorism charges – an offense carrying a highest penalty of three decades in jail.
Video footage made public by the government depicts demonstrators standing in the road, covered in flags, scrambling to gather sizeable rocks and building blocks.
When the presidential SUV drove by, projectiles slammed into the exterior and broke glass.
Someone could be audible shouting: "Heads down! Heads down!" as the car accelerated from the scene.
Authorities said they were still investigating whether some of the damage on the president's protected vehicle were caused by bullet impacts.
This reported attack came amid days of progressively aggressive protests triggered by a government decision to increase diesel prices.
Protesters have initiated work stoppages, blocked roads and abducted sixteen military personnel – who were subsequently released unharmed.
The country's largest Indigenous organization reported that a protester had been killed by security personnel during a the protests.
More than one hundred individuals, including protesters and law enforcement, are believed to have been injured in the violence.
Noboa has imposed a state of emergency across multiple regions.
The presidential administration stated on social media following the attack that "cowardly acts will not deter" the president.
A senior official of the regional organization commented that "these actions are an attack on democratic principles, stability, and the principle of peaceful coexistence that must prevail in our societies."
The recently re-elected president is attempting to cut fuel support to conserve about $1bn in government spending, redirecting a significant portion of the funds to security funding.
Ecuador, once considered one of the region's most secure countries, has experienced a dramatic surge in violence in the past few years.
Strategically located between two neighboring countries, both the world's largest drug manufacturers, Ecuador has become a major transportation center for illegal drugs.
Officials have accused cartels of exacerbating the protests, implying that illegal organizations are exploiting the protests to destabilize the nation.
It is estimated that 70% of the world's cocaine supply passes through Ecuador, much of it headed for the United States.
This business has attracted international criminal organizations, including Mexico's Sinaloa Cartel, Italy's 'Ndrangheta, and Albania's mafia.
Their competition for dominance of smuggling corridors has turned Ecuador into one of the region's most dangerous locations.
The president has proposed a referendum to permit the presence of American military to the nation, overturning a previous restriction on foreign bases.