Mitigating Security Risks in Large Language Models: A Full Lifecycle Perspective | AMiner