What am I?

In a tunnel of darkness lies a beast of iron. I can only attack when pulled back. What am I?