The sprig of green onions it holds is its weapon. It is used much like a metal sword.
It can’t live without the stalk it holds. That’s why it defends the stalk from attackers with its life.