For when officers stopped the car driven by Nerin Tafani, just north of Beattock, they detected the smell of the drug and uncovered ten vacuum sealed bags in the boot.
And in the dock on Tuesday, 27-year-old Tafani, described as a prisoner at Kilmarnock, admitted being concerned in the supply of the drug in September.
He also admitted having in his possession a false Bulgarian driving licence under the name of Todor Tashev.
Sheriff Brian Mohan deferred sentence for a month for background reports.