Ireland face a fight to avoid a heavy loss in their inaugural cricket Test after getting bowled out for 130 and being asked to follow on by Pakistan on day three.
The Irish fought back on Sunday to reach 0-64 at stumps in their second innings, but are still 116 runs behind with two days to play.
"Whenever you're asked to follow on and you can go 60 for none at the close, that shows big balls," Ireland player Gary Wilson said.
"So I think we can take good confidence from that."
Ed Joyce (39 not out) and William Porterfield (23 not out) were there at the close of play, having been part of a batting lineup that was ripped apart by Pakistan in the first innings, in response to the tourists' 9-310 declared.
Mohammad Abbas had 4-44 while Mohammad Amir and Shadab Khan took five wickets between them as the Irish were bowled out 31 runs short of the target needed to avoid the follow-on.
Kevin O'Brien made 40 and was one of only four Ireland players to get into double figures at Malahide in the first innings.
Amir came off late in the final session because of a left knee problem and will be assessed.
"He has got a chronic knee problem, which has slightly flared up," bowling coach Azhar Mahmood said.
The Irish are playing in their first match in the longest format after being awarded Test status last June.
Pakistan resumed on their overnight score of 6-268 and Test debutant Faheem Ashraf (83) and Khan (55) put on 117 for the seventh wicket. Tim Murtagh was the pick of the Irish bowlers with 4-45.
The first day was washed out.