Khurram Shahzad has been ruled out of the remainder of the Test series in Australia due to a rib stress fracture and abdominal muscle tear.