It doesn't get any clearer than this:
Yes, the Combat Infantryman Badge (CIB) is a prestigious individual award of the U.S. Army, not a unit award.
Or this:
A recipient
must be personally present and under hostile fire while serving in an assigned infantry or SF primary duty in a unit actively engaged in ground combat with the enemy.