Based on the provided reference, the intercostal muscles are associated with the ribs but the reference does not explicitly mention which muscles rotate the ribs. However, the intercostal muscles are responsible for helping with the overall movement of the rib cage during respiration.
The reference mentions the external intercostals, stating:
The external intercostals extend from the tubercles of the ribs dorsally to the costochondral junctions ventrally, and their fibers are oriented obliquely, downward, and forward, from the rib above to the rib below.
While this describes the location and orientation of the external intercostals, it doesn't directly state they are responsible for rib rotation. To properly answer this question, it would be necessary to know if the rotation is during inspiration or expiration.