This article provides a detailed analysis of the security challenges and threats of BTC Layer 2 technology. As the demand for the Bitcoin network grows, Layer 2 solutions such as Lightning Network, Rootstock, Stacks, etc. are developed to improve transaction speed and scalability, but at the same time bring new security issues, such as channel attacks, smart contract vulnerabilities, double Flower attack etc.