A Dawlat Zadran wide from the last ball handed Pakistan a nervous victory by a six-wicket margin.
After recently qualifying for next year's World Twenty20, Afghanistan at least proved they could be capable of springing a surprise when the world's best gather in Bangladesh.
Najibullah Zadran's 38 from 30 balls helped the minnows post 137 for eight with Junaid Khan claiming three for 24.
Pakistan always appeared on course to reel in the total, although with six needed from the final over top-scorer Mohammad Hafeez (42 not out) and Shahid Afridi took the match to the final ball.
Zadran had already been called for a wide on height in the over and when he again infringed after bowling too short to Afridi, Afghan hopes of a first win against a full-member nation were dashed.
- Sports & Recreation
- Dawlat Zadran
- Shahid Afridi
- Junaid Khan