The middle layer is attached medially to the tips of the transverse processes of the lumbar vertebrae and intertransverse ligaments—inferiorly, it is attached to the iliac crest and, superiorly, to the lower border of rib XII.