Foods that are rich in DIM and can enhance the immune system include broccoli, cauliflower, cabbage, kale, and Brussels sprouts. These cruciferous vegetables are not only rich in DIM but also packed with other nutrients that support immune health.