Vishvarupa is the son of Tvashtri, the artisan of the gods, and he is described as having three heads. The tradition puts them to work: one head drinks soma, one drinks liquor, one eats food, and the image is memorable enough that his other name, Trishiras, the three headed one, travels as far as the first.
The trouble is his mother. She is of the asura side, and Vishvarupa, who serves as the chaplain of the gods and speaks their portion of the sacrifice aloud, is said to have promised the offering to the gods with his voice and to have given a share to his mother's kin in secret. It is a very precise kind of offence. He does not attack anybody, he does not defect, and the sacrifice he conducts is conducted correctly. What he does is misdirect the share, which in a religion whose central act is the correct allotment of an offering is the worst thing an officiant can do, and it is exactly the failure that the Aditya gods of contract and apportionment exist to punish.
Indra kills him for it, and in the older telling Trita Aptya is involved in the killing or takes the guilt of it. The heads come off, and in some versions birds fly out of them. What the tradition does not do is treat the episode as a straightforward victory. Vishvarupa is a brahmin and a priest, killed while holding an office, and the atlas holds him as a divine figure rather than a monster for that reason: the shape of the story is a murder inside the sacrificial system, not a dragon slaying. The dragon slaying is the next thing that happens, and it happens because of this.