Keith Lough opened the scoring for Penicuik in the sixth minute with a superb first-time volley off a corner kick – and it would the first of many for Athletic.
Just three minutes later, an under-hit pass by Aaron Somerville was intercepted by Ross Crawford but his shot was beaten away by keeper Billy Bald.
Then a pinpoint cross by Wayne Sproule was headed wide by Lough.
In the 12th minute, Somerville added a second from the penalty spot after being pulled down in the box.
Five minutes later, following a corner to Penicuik, both Lough and then Somerville saw their efforts come back off the woodwork.
It was all Penicuik now with the home side pinned back in defence – but Penicuik could not add to their tally. Yet.
It took two minutes for the floodgates to open as Penicuik came out with all guns firing and Andy Forbes combined with Ryan McCallum to get round the back of the Livingston defence.
His low cross into the six yard box was tapped home by Lough.
In the 49th minute, a long cross by Sproule to the back post found Craig Hume, who slipped the ball to McCallum, who calmly side-footed the ball into the net.
McCallum’s cross was knocked home by substitute Stephen Scott for the first of his four goals.
Then Livi goalkeeper Mark McArthur pulled off an excellent save to deny Hume.
It was now backs to the wall defending by Livingston and Scott almost added another, but his shot was deflected away for a corner.
In the 66th minute, the same player dragged a shot just wide of the post.
In the 65th minute, Penicuik added a sixth when McCallum slotted home.
Then, in the 71st minute, Scott headed home for his second goal of the match.
In the 78th minute, a driving run by Chris Inglis released Ross Montgomery on the left and his low cross was tapped past McArthur by Scott for his hat-trick.
Three minutes later, Kyle Scott crossed the ball in from the right wing that came off centreback John Duncan and brother Stephen latched on to the loose ball to thump the it into the roof of the net.
With minutes to go, Kyle Scott won a header that set McCallum free and he coolly chipped the ball over keeper McArthur only to see the ball come back off the crossbar.