Hello,
That is quite weird. Is the dome light staying on as well? That could indicate a bad door sensor or an open door/trunk. If not, it could be the security light module. Lucky for you I am parting out a Corolla and have all the components you could need including the security light module and door sensors.