Firefighters in Western Australia's Goldfields will no longer attend fires at an Aboriginal community without a police escort after being pelted with bricks and rocks while on a job.

Officers from Kalgoorlie Fire Station were responding to a fire at the Ninga Mia Aboriginal community, around 5km east of Kalgoorlie-Boulder, on Tuesday afternoon when the attack began.

The firefighters were driving out of the community when two men began attacking their trucks.

Firefighter Jarrod Colvin was behind the wheel of one when his front window was hit by a brick.

"It was pretty intense; it didn't miss by much and if it had come through the windshield, it would have definitely knocked me out, or worse," he said.

"They were huge bricks."

Firefighter Jarrod Colvin was driving when a brick narrowly missed the front windscreen. ( ABC Goldfields-Esperance: Jarrod Lucas )

No firefighters were injured, but both of their fire trucks suffered significant damage which will take weeks to repair.

Station officer Darryl Browning said he was at a loss to explain why the men targeted the firefighters.

"I haven't experienced this level of aggression towards emergency services before," he said.

"They were standing in the middle of the road hurling rocks at us.

"I'm not sure why [they were] so angry and aggressive; we were simply going about our task of extinguishing the fire."

Second attack in recent months

Due to the ongoing safety risk, Department of Fire and Emergency Services (DFES) personnel would no longer attend and extinguish fires at Ninga Mia without a police escort.

Fire crews were pelted with rocks and bricks by two men in Ninga Mia. ( ABC Goldfields-Esperance: Jarrod Lucas )

The attack is the second on firefighters attending the community after an incident midway through last year.

At that time, fire officers had been attempting to extinguish a burning car across the road from the community when they were assaulted.

"A gentleman attacked them with rocks and a star picket," Mr Browning said.

A man was arrested and charged over that assault, while Kalgoorlie detectives are investigating Tuesday's incident.

The ABC visited the Ninga Mia community and spoke to residents but they did not wish to be interviewed.