LPC55 Debuging Ports Security Solution

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC55 Debuging Ports Security Solution

LPC55 Debuging Ports Security Solution

Background:

 IP protection is important for most customers, Kinetis, LPC54 series and i.MX RT have necessary security features that help us to win customers and markets.
LPC55 series is a new generation of IoT MCU which is used for consumer and industrial market. LPC55 non-S parts are adopted by most customers due to its low-cost and easy-to-use features, but its secure features are different with S parts and is significantly simplified.
LPC55 is designed for secured IoT application, so it’s supposed to hide the SWD/ISP ports after development work is finished. If the SWD/ISP ports are secured, they couldn’t be used any more. While for LPC54 & Kinetis MCU, mass erase command can be used to recover the MCU after the MCU is secured.
However, Customers need the feature to secure the debugging/ISP ports, but they also need to recover them in some cases:
- Reprogramming to update firmware
- Investigate and analyze failed parts returned from end market
- Rescue the MCU if it’s locked and stuck
According to customers’ requirements, NXP support team raised the proposal to implement a solution which can be used to secure and recover the SWD/ISP ports with an IAP backdoor
method.

Solution:

By Operating PFR region, LPC55 could switch between secure and recovery mode.

 

  1. lpc5506_debug_isp_test_20220714: demonstrate how to operate this region to lock Debug Port then how to recovery it. The user interaction could be raised by UART or button;
daweiyou_1-1663116501262.png

        2.hmac_test_20220714: demonstrate one full security flow, 

daweiyou_0-1663116450931.png

 

 

This is a complete solution to secure & recovery debugging/ISP ports on LPC55, and it uses
host machine challenge mechanism to implement security features:
Challenge Host machine against unknown host probe;
Generates dynamic seeds, so that the final encrypt information will be dynamically changed;
The image hash value is device related, that avoids same encrypt info for different image/product;


Customer also could clip the solution to simplify application complexity:
Use UUID for device information only, no seed is needed;
Host machine can use fixed keys instead of image hash values to do info encryption;
Host machine can use UUID lookup table to find out verification key; Every device is programmed with dedicated verification key during production. 

Demonstration:

The attached demos could run at LPC55S06 EVK, and could easily migrate to other LPC55 series.

标签 (2)
附件
%3CLINGO-SUB%20id%3D%22lingo-sub-1521316%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC55%20%E8%B0%83%E8%AF%95%E7%AB%AF%E5%8F%A3%E5%AE%89%E5%85%A8%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1521316%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CP%3E%3CSTRONG%3E%E8%83%8C%E6%99%AF%EF%BC%9A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle2%22%3E%E2%9E%A2%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%20%E7%9F%A5%E8%AF%86%E4%BA%A7%E6%9D%83%E4%BF%9D%E6%8A%A4%E5%AF%B9%E5%A4%A7%E5%A4%9A%E6%95%B0%E5%AE%A2%E6%88%B7%E8%80%8C%E8%A8%80%E8%87%B3%E5%85%B3%E9%87%8D%E8%A6%81%E3%80%82Kinetis%E3%80%81LPC54%20%E7%B3%BB%E5%88%97%E4%BB%A5%E5%8F%8A%20i.MX%20RT%20%E5%9D%87%E5%85%B7%E5%A4%87%E5%BF%85%E8%A6%81%E7%9A%84%E5%AE%89%E5%85%A8%E7%89%B9%E6%80%A7%EF%BC%8C%E8%BF%99%E6%9C%89%E5%8A%A9%E4%BA%8E%E6%88%91%E4%BB%AC%E8%B5%A2%E5%BE%97%E5%AE%A2%E6%88%B7%E5%92%8C%E5%B8%82%E5%9C%BA%E3%80%82%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle2%22%3E%20%E2%9E%A2%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3ELPC55%20%E7%B3%BB%E5%88%97%E6%98%AF%E6%96%B0%E4%B8%80%E4%BB%A3%E7%89%A9%E8%81%94%E7%BD%91%E5%BE%AE%E6%8E%A7%E5%88%B6%E5%99%A8%EF%BC%8C%E9%80%82%E7%94%A8%E4%BA%8E%E6%B6%88%E8%B4%B9%E7%94%B5%E5%AD%90%E5%92%8C%E5%B7%A5%E4%B8%9A%E5%B8%82%E5%9C%BA%E3%80%82LPC55%20%E9%9D%9E%20S%20%E7%B3%BB%E5%88%97%E5%9B%A0%E6%88%90%E6%9C%AC%E4%BD%8E%E4%B8%94%E6%98%93%E4%BA%8E%E4%BD%BF%E7%94%A8%EF%BC%8C%E8%A2%AB%E5%A4%A7%E5%A4%9A%E6%95%B0%E5%AE%A2%E6%88%B7%E9%87%87%E7%94%A8%EF%BC%8C%E4%BD%86%E5%85%B6%E5%AE%89%E5%85%A8%E5%8A%9F%E8%83%BD%E4%B8%8E%20S%20%E7%B3%BB%E5%88%97%E4%B8%8D%E5%90%8C%EF%BC%8C%E4%B8%94%E7%BB%8F%E8%BF%87%E4%BA%86%E6%98%BE%E8%91%97%E7%AE%80%E5%8C%96%E3%80%82%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle2%22%3E%20%E2%9E%A2%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%20LPC55%20%E4%B8%93%E4%B8%BA%E5%AE%89%E5%85%A8%E7%89%A9%E8%81%94%E7%BD%91%E5%BA%94%E7%94%A8%E8%AE%BE%E8%AE%A1%EF%BC%8C%E5%9B%A0%E6%AD%A4%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%8C%E6%88%90%E5%90%8E%E5%BA%94%E9%9A%90%E8%97%8F%20SWD%2FISP%20%E7%AB%AF%E5%8F%A3%E3%80%82%E8%8B%A5%20SWD%2FISP%20%E7%AB%AF%E5%8F%A3%E8%A2%AB%E9%94%81%E5%AE%9A%EF%BC%8C%E5%B0%86%E6%97%A0%E6%B3%95%E5%86%8D%E6%AC%A1%E4%BD%BF%E7%94%A8%E3%80%82%E8%80%8C%E5%AF%B9%E4%BA%8E%20LPC54%20%E5%92%8C%20Kinetis%20MCU%EF%BC%8C%E5%8F%AF%E5%9C%A8%20MCU%20%E8%A2%AB%E9%94%81%E5%AE%9A%E5%90%8E%E9%80%9A%E8%BF%87%E6%89%B9%E9%87%8F%E6%93%A6%E9%99%A4%E5%91%BD%E4%BB%A4%E6%81%A2%E5%A4%8D%E3%80%82%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle2%22%3E%20%E2%9E%A2%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%20%E7%84%B6%E8%80%8C%EF%BC%8C%E5%AE%A2%E6%88%B7%E9%9C%80%E8%A6%81%E8%AF%A5%E5%8A%9F%E8%83%BD%E6%9D%A5%E4%BF%9D%E6%8A%A4%E8%B0%83%E8%AF%95%2FISP%20%E7%AB%AF%E5%8F%A3%EF%BC%8C%E4%BD%86%E5%9C%A8%E6%9F%90%E4%BA%9B%E6%83%85%E5%86%B5%E4%B8%8B%E4%B9%9F%E9%9C%80%E8%A6%81%E6%81%A2%E5%A4%8D%E8%BF%99%E4%BA%9B%E7%AB%AF%E5%8F%A3%EF%BC%8C%E5%85%B7%E4%BD%93%E6%83%85%E5%BD%A2%E5%A6%82%E4%B8%8B%EF%BC%9A%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%20-%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%20%E9%87%8D%E6%96%B0%E7%BC%96%E7%A8%8B%E4%BB%A5%E6%9B%B4%E6%96%B0%E5%9B%BA%E4%BB%B6%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%20-%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%20%E8%B0%83%E6%9F%A5%E5%B9%B6%E5%88%86%E6%9E%90%E4%BB%8E%E7%BB%88%E7%AB%AF%E5%B8%82%E5%9C%BA%E9%80%80%E5%9B%9E%E7%9A%84%E6%95%85%E9%9A%9C%E9%83%A8%E4%BB%B6%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22fontstyle0%22%3E-%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22fontstyle0%22%3E%E8%8B%A5%E5%BE%AE%E6%8E%A7%E5%88%B6%E5%99%A8%EF%BC%88MCU%EF%BC%89%E9%94%81%E6%AD%BB%E6%88%96%E5%8D%A1%E6%AD%BB%EF%BC%8C%E8%BF%9B%E8%A1%8C%E6%95%91%E6%8F%B4%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle2%22%3E%20%E2%9E%A2%3C%2FSPAN%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%20%E6%A0%B9%E6%8D%AE%E5%AE%A2%E6%88%B7%E9%9C%80%E6%B1%82%EF%BC%8CNXP%20%E6%94%AF%E6%8C%81%E5%9B%A2%E9%98%9F%E6%8F%90%E5%87%BA%E4%BA%86%E4%B8%80%E9%A1%B9%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%8C%E8%AF%A5%E6%96%B9%E6%A1%88%E5%8F%AF%E9%80%9A%E8%BF%87%20IAP%20%E5%90%8E%E9%97%A8%E6%96%B9%E6%B3%95%E5%AE%9E%E7%8E%B0%20SWD%2FISP%20%E7%AB%AF%E5%8F%A3%E7%9A%84%E4%BF%9D%E6%8A%A4%E4%B8%8E%E6%81%A2%E5%A4%8D%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%9A%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%E9%80%9A%E8%BF%87%E6%93%8D%E4%BD%9CPFR%E5%8C%BA%E5%9F%9F%EF%BC%8CLPC55%E5%8F%AF%E4%BB%A5%E5%9C%A8%E5%AE%89%E5%85%A8%E6%A8%A1%E5%BC%8F%E5%92%8C%E6%81%A2%E5%A4%8D%E6%A8%A1%E5%BC%8F%E4%B9%8B%E9%97%B4%E5%88%87%E6%8D%A2%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3COL%3E%0A%3CLI%3E%3CSPAN%20class%3D%22fontstyle0%22%3Elpc5506_debug_isp_test_20220714%EF%BC%9A%E6%BC%94%E7%A4%BA%E5%A6%82%E4%BD%95%E6%93%8D%E4%BD%9C%E6%AD%A4%E5%8C%BA%E5%9F%9F%E4%BB%A5%E9%94%81%E5%AE%9A%E8%B0%83%E8%AF%95%E7%AB%AF%E5%8F%A3%EF%BC%8C%E7%84%B6%E5%90%8E%E5%A6%82%E4%BD%95%E6%81%A2%E5%A4%8D%E5%AE%83%E3%80%82%E7%94%A8%E6%88%B7%E4%BA%A4%E4%BA%92%E5%8F%AF%E4%BB%A5%E9%80%9A%E8%BF%87UART%E6%88%96%E6%8C%89%E9%92%AE%E6%9D%A5%E8%A7%A6%E5%8F%91%EF%BC%9B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22daweiyou_1-1663116501262.png%22%20style%3D%22width%3A%20621px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22daweiyou_1-1663116501262.png%22%20style%3D%22width%3A%20621px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F193506i6BC6515D1E2962E8%2Fimage-dimensions%2F621x348%3Fv%3Dv2%22%20width%3D%22621%22%20height%3D%22348%22%20role%3D%22button%22%20title%3D%22daweiyou_1-1663116501262.png%22%20alt%3D%22daweiyou_1-1663116501262.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3E2.hmac_test_20220714%EF%BC%9A%E6%BC%94%E7%A4%BA%E4%B8%80%E4%B8%AA%E5%AE%8C%E6%95%B4%E7%9A%84%E5%AE%89%E5%85%A8%E6%B5%81%E7%A8%8B%EF%BC%8C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22daweiyou_0-1663116450931.png%22%20style%3D%22width%3A%20670px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22daweiyou_0-1663116450931.png%22%20style%3D%22width%3A%20670px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F193505iEE2143B59A71A359%2Fimage-dimensions%2F670x377%3Fv%3Dv2%22%20width%3D%22670%22%20height%3D%22377%22%20role%3D%22button%22%20title%3D%22daweiyou_0-1663116450931.png%22%20alt%3D%22daweiyou_0-1663116450931.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%E2%9E%A2%20%3CSPAN%20class%3D%22fontstyle2%22%3E%E8%BF%99%E6%98%AF%E4%B8%80%E4%B8%AA%E5%AE%8C%E6%95%B4%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%8C%E7%94%A8%E4%BA%8E%E4%BF%9D%E6%8A%A4%E5%92%8C%E6%81%A2%E5%A4%8D%20LPC55%20%E4%B8%8A%E7%9A%84%E8%B0%83%E8%AF%95%2FISP%20%E7%AB%AF%E5%8F%A3%EF%BC%8C%E5%B9%B6%E4%BD%BF%E7%94%A8%E4%B8%BB%E6%9C%BA%E8%B4%A8%E8%AF%A2%E6%9C%BA%E5%88%B6%E5%AE%9E%E7%8E%B0%E5%AE%89%E5%85%A8%E5%8A%9F%E8%83%BD%EF%BC%9A%3C%2FSPAN%3E%E2%96%AA%20%3CSPAN%20class%3D%22fontstyle2%22%3E%E5%BA%94%E5%AF%B9%E6%9C%AA%E7%9F%A5%E4%B8%BB%E6%9C%BA%E6%8E%A2%E6%B5%8B%E7%9A%84%E4%B8%BB%E6%9C%BA%E6%8C%91%E6%88%98%EF%BC%9B%3C%2FSPAN%3E%E2%96%AA%20%3CSPAN%20class%3D%22fontstyle2%22%3E%E7%94%9F%E6%88%90%E5%8A%A8%E6%80%81%E7%A7%8D%E5%AD%90%EF%BC%8C%E4%BD%BF%E6%9C%80%E7%BB%88%E7%9A%84%E5%8A%A0%E5%AF%86%E4%BF%A1%E6%81%AF%E5%8A%A8%E6%80%81%E5%8F%98%E5%8C%96%EF%BC%9B%3C%2FSPAN%3E%E2%96%AA%20%3CSPAN%20class%3D%22fontstyle2%22%3E%E5%9B%BE%E5%83%8F%E5%93%88%E5%B8%8C%E5%80%BC%E4%B8%8E%E8%AE%BE%E5%A4%87%E7%9B%B8%E5%85%B3%EF%BC%8C%E9%81%BF%E5%85%8D%E4%B8%8D%E5%90%8C%E5%9B%BE%E5%83%8F%2F%E4%BA%A7%E5%93%81%E7%9A%84%E5%8A%A0%E5%AF%86%E4%BF%A1%E6%81%AF%E7%9B%B8%E5%90%8C%3C%2FSPAN%3E%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22fontstyle0%22%3E%3CSPAN%20class%3D%22fontstyle2%22%3E%3C%2FSPAN%3E%E2%9E%A2%20%3CSPAN%20class%3D%22fontstyle2%22%3E%E5%AE%A2%E6%88%B7%E8%BF%98%E5%8F%AF%E4%BB%A5%E8%A3%81%E5%89%AA%E8%AF%A5%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E4%BB%A5%E7%AE%80%E5%8C%96%E5%BA%94%E7%94%A8%E5%A4%8D%E6%9D%82%E6%80%A7%EF%BC%9A%3C%2FSPAN%3E%E2%96%AA%20%3CSPAN%20class%3D%22fontstyle2%22%3E%E4%BB%85%E4%BD%BF%E7%94%A8%20UUID%20%E8%BF%9B%E8%A1%8C%E8%AE%BE%E5%A4%87%E4%BF%A1%E6%81%AF%EF%BC%8C%E6%97%A0%E9%9C%80%E7%A7%8D%E5%AD%90%EF%BC%9B%3C%2FSPAN%3E%E2%96%AA%20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GO-LABS%20id%3D%22lingo-labs-1521316%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E%E5%B7%A5%E4%B8%9A%E6%8E%A7%E5%88%B6%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E6%8A%80%E6%9C%AF%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
无评分
版本历史
最后更新:
‎09-13-2022 05:49 PM
更新人: