What am I?

In a tunnel of darkness lies a beast or iron. It can only attack when pulled back. What is it?