Motorists are being warned to be on their guard after a driver was flagged down on a dark, secluded road by what he thought was a police car.
Social media is being used to alert others to the scam amid fears that similar incidents have taken place in the area.
A Facebook post describes how the unnamed man from Dalkeith was driving his van on the Elphinstone to Dalkeith road at 8.15pm last Thursday when he pulled over after seeing blue flashing lights.
Moray Johnstone posted what he said was his friend’s account of the incident: “I pulled over thinking they were going to overtake me but they pulled in behind me. The country road is pitch black so you can’t see outside at all.
“Next thing I know some guy is trying to open my door, pretty violently I may add. Luckily I had 2 things on my side...my van doors lock automatically when I start to drive and my trusty 20oz estwing hammer was on the passenger seat next to me.
“When I opened the door the lights in the van have came on and this chap seeing the hammer....runs back to his car and speeds off.
Police Scotland said: “Police in Midlothian are investigating a suspicious incident on the evening of January 30, where a report was made of a car with flashing lights following a vehicle, and the driver of this suspicious car, described as a maroon VW Passat, then attempting to enter the victim’s vehicle.
“Inquiries into the full circumstances are ongoing.”
Read more in this week’s Advertiser, out now.