It absorbs the iron it finds in the rock while clinging to the ceiling. It shoots spikes when in danger.
When threatened, it attacks by shooting a barrage of spikes, which gives it a chance to escape by rolling away.