Yucca help/advice needed!

Hello all. I rescued a large yucca that someone was throwing out. It has a little rot. I’ve cut back the “squidgy” bits, but I’m not sure if the green inside the branches is rot, or normal?

Any advice appreciated.