A Cobrat is an enemy in the Nintendo Entertainment System video game Yume Kōjō: Doki Doki Panic and its remake Super Mario Bros. 2. In the video game, they would pop out of what seems to be pipes (not the familiar green pipes from other Mario games) and sand. Their main form of attack is to spit out black spheres that will be aimed at your character. They are red snakes who appear only in the desert levels.
The name Cobrat is a portmanteau of the words cobra and brat (an annoying person, usually a child). It is assumed that one of the boss enemies Tryclyde is a variation of a Cobrat, though this is not official.