The WA Police Union says two officers are lucky to be alive after a bullet fired at Armadale police station narrowly missed them.
_The West Australian _ understands the general duties officers were doing paperwork about 1.45am on Sunday when they heard a bang as the bullet hit a window of the station on Prospect Road.
They initially believed someone threw a rock and ran outside to investigate but later found the bullet in a chair leg.
Union president George Tilbury said it was obviously a deliberate and targeted attack on the officers.
"The bullet narrowly missed two police officers as it pierced through the external window before entering the front office," Mr Tilbury said.
The shooting was recorded on the police dispatch system about 2.15am on Sunday, but it is believed it could have happened up to 30 minutes earlier.
It is believed the bullet passed within about 2m of one officer as he sat at a desk next to the window that smashed.
Detectives have been scouring security camera footage from the station and nearby homes and businesses for clues. They believe the shot was fired from a car as it passed the station.
Detectives will also investigate recent threats directed at Armadale police officers, though it is not known whether the shooting was random.
Mr Tilbury said the shooting highlighted the need to upgrade security at police stations - an issue in the union's pre-election wish list presented to politicians yesterday.
In October, the union commissioned a report into officers' personal and vehicle security after an officer's car was torched outside Forrestfield police station. It recommended security cameras be installed outside all police stations.
Cameras are mounted outside the Armadale station but it is not known whether they recorded the shooting.
Mr Tilbury said CCTV outside stations would give police a valuable line of inquiry.
Anyone with information, particularly of suspicious vehicle movements near the police station early on Sunday, are asked to contact Crime Stoppers on 1800 333 000.