{"id":471,"date":"2016-06-09T12:44:30","date_gmt":"2016-06-09T12:44:30","guid":{"rendered":"http:\/\/sites.nyuad.nyu.edu\/dfx\/?page_id=471"},"modified":"2016-06-10T15:07:23","modified_gmt":"2016-06-10T15:07:23","slug":"design-for-secure-testability","status":"publish","type":"page","link":"https:\/\/sites.nyuad.nyu.edu\/dfx\/research-topics\/design-for-secure-testability\/","title":{"rendered":"Design-for-Secure-Testability"},"content":{"rendered":"<p>[et_pb_section admin_label=&#8221;section&#8221; background_color=&#8221;#6f9a48&#8243; inner_shadow=&#8221;on&#8221; fullwidth=&#8221;on&#8221; transparent_background=&#8221;off&#8221; allow_player_pause=&#8221;off&#8221; parallax=&#8221;off&#8221; parallax_method=&#8221;off&#8221; padding_mobile=&#8221;off&#8221; make_fullwidth=&#8221;off&#8221; use_custom_width=&#8221;off&#8221; width_unit=&#8221;on&#8221; make_equal=&#8221;off&#8221; use_custom_gutter=&#8221;off&#8221;][et_pb_fullwidth_header admin_label=&#8221;Fullwidth Header&#8221; title=&#8221;Design-for-Secure-Testability&#8221; background_layout=&#8221;dark&#8221; text_orientation=&#8221;left&#8221; header_fullscreen=&#8221;off&#8221; header_scroll_down=&#8221;off&#8221; parallax=&#8221;off&#8221; parallax_method=&#8221;off&#8221; content_orientation=&#8221;center&#8221; image_orientation=&#8221;center&#8221; custom_button_one=&#8221;off&#8221; button_one_letter_spacing=&#8221;0&#8243; button_one_use_icon=&#8221;default&#8221; button_one_icon_placement=&#8221;right&#8221; button_one_on_hover=&#8221;on&#8221; button_one_letter_spacing_hover=&#8221;0&#8243; custom_button_two=&#8221;off&#8221; button_two_letter_spacing=&#8221;0&#8243; button_two_use_icon=&#8221;default&#8221; button_two_icon_placement=&#8221;right&#8221; button_two_on_hover=&#8221;on&#8221; button_two_letter_spacing_hover=&#8221;0&#8243; subhead_font_size=&#8221;1px&#8221;] [\/et_pb_fullwidth_header][\/et_pb_section][et_pb_section admin_label=&#8221;Section&#8221; fullwidth=&#8221;off&#8221; specialty=&#8221;off&#8221;][et_pb_row admin_label=&#8221;Row&#8221;][et_pb_column type=&#8221;1_3&#8243;][et_pb_image admin_label=&#8221;Scan arch key Image&#8221; src=&#8221;https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-content\/uploads\/2016\/06\/scan_arch_key.png&#8221; alt=&#8221;Scan arch key&#8221; title_text=&#8221;Scan arch key&#8221; show_in_lightbox=&#8221;off&#8221; url_new_window=&#8221;off&#8221; use_overlay=&#8221;off&#8221; animation=&#8221;off&#8221; sticky=&#8221;off&#8221; align=&#8221;left&#8221; force_fullwidth=&#8221;off&#8221; always_center_on_mobile=&#8221;on&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;] [\/et_pb_image][et_pb_image admin_label=&#8221;iterative core Image&#8221; src=&#8221;https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-content\/uploads\/2016\/06\/iterative_core.png&#8221; alt=&#8221;iterative core&#8221; title_text=&#8221;iterative core&#8221; show_in_lightbox=&#8221;off&#8221; url_new_window=&#8221;off&#8221; use_overlay=&#8221;off&#8221; animation=&#8221;off&#8221; sticky=&#8221;off&#8221; align=&#8221;left&#8221; force_fullwidth=&#8221;off&#8221; always_center_on_mobile=&#8221;on&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;] [\/et_pb_image][\/et_pb_column][et_pb_column type=&#8221;2_3&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; text_font_size=&#8221;16&#8243; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<p><strong>Scan is NOT Secure<br \/>\n<\/strong><\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<p>While testing is required to screen out defective Integrated Circuits (ICs), any design effort to improve testability may compromise the security of the ICs. To enhance the testability, the test infrastructure provides internal access to the IC. However, an attacker can leverage the test mode to hack into secure-critical ICs. An IC may embed a secret key used to perform on-chip encryption\/decryption, or a microprocessor may have an Intellectual Property (IP) instruction set hardcoded into its ROM; such security-critical data must be protected from attacks that misuse test infrastructure.<\/p>\n<p>While scan delivers the desired access into flip flops of the design, it also reveals the intermediate computations within a security-critical chip. In-field testing and debug is thus enabled at the expense of potential security compromise. Access to scan chains can be misused by an attacker to <em>leak<\/em> data that can infer on-chip secret information; this attack is known as <em>scan-based side-channel attack<\/em>, where the attacker applies plaintext input from the primary inputs in the functional mode, and then switches to the test mode to shift out the intermediate results through the scan interface.<\/p>\n<p>Scan-based side channel attack relies on the condition that the intermediate results should be preserved upon a switch between the normal mode and the test mode. However, the widely used simple <em>mode-reset countermeasure<\/em>, i.e., an automatic reset operation upon a switch between the normal mode and the test mode, successfully thwarts these attacks.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row admin_label=&#8221;Row&#8221;][et_pb_column type=&#8221;4_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; text_font_size=&#8221;16&#8243; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<p><strong>Test-Mode-Only (TMO) Attack for Basic Scan [<a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c72<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c73<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c79<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c84<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c85<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c86<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c89<\/a>]<br \/>\n<\/strong><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row admin_label=&#8221;Row&#8221;][et_pb_column type=&#8221;1_3&#8243;][et_pb_image admin_label=&#8221;boundary scan Image&#8221; src=&#8221;https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-content\/uploads\/2016\/06\/boundary-scan.png&#8221; alt=&#8221;boundary scan&#8221; title_text=&#8221;boundary scan&#8221; show_in_lightbox=&#8221;off&#8221; url_new_window=&#8221;off&#8221; use_overlay=&#8221;off&#8221; animation=&#8221;off&#8221; sticky=&#8221;off&#8221; align=&#8221;left&#8221; force_fullwidth=&#8221;off&#8221; always_center_on_mobile=&#8221;on&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;] [\/et_pb_image][et_pb_image admin_label=&#8221;mapping Image&#8221; src=&#8221;https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-content\/uploads\/2016\/06\/mapping.png&#8221; alt=&#8221;mapping&#8221; title_text=&#8221;mapping&#8221; show_in_lightbox=&#8221;off&#8221; url_new_window=&#8221;off&#8221; use_overlay=&#8221;off&#8221; animation=&#8221;off&#8221; sticky=&#8221;off&#8221; align=&#8221;left&#8221; force_fullwidth=&#8221;off&#8221; always_center_on_mobile=&#8221;on&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;] [\/et_pb_image][\/et_pb_column][et_pb_column type=&#8221;2_3&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<p>The mode-reset countermeasure can only be circumvented if the scan attack remains in the test mode. In the presence of boundary scan DfT, however, the attacker has no direct access to the primary inputs in the test mode. Rather, the attacker has only access to the scan input pins to feed the cipher round register.<\/p>\n<p>Also, the mapping between scan cells to round registers is unknown as the physical placement tools decide how these flip-flops are connected. We propose an attack, Test-Mode-Only attack, that uses the JTAG port and the basic test capabilities. The scan-attack comprises only shift and capture operations, all performed within the test mode, in order to first identify the mapping between the registers and the scan cells, and next to infer the secret key from the intermediate results.<\/p>\n<p>Test-mode-only attack for basic scan architecture can identify the unknown mapping between the scan cells and the inputs of the AES by creating test vectors to launch the desired bit-flips and observing their effect on the output bits as we show in our papers <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c72<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c73<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c79<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c84<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c85<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c86<\/a>, and <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c89<\/a>.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row admin_label=&#8221;Row&#8221;][et_pb_column type=&#8221;4_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; text_font_size=&#8221;16&#8243; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<p><strong>Test-Mode-Only (TMO) Attack in the Presence of Scan Compression [<a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c81<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c82<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c83<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">j43<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">j51<\/a>]<br \/>\n<\/strong><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row admin_label=&#8221;Row&#8221;][et_pb_column type=&#8221;1_3&#8243;][et_pb_image admin_label=&#8221;scan compression Image&#8221; src=&#8221;https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-content\/uploads\/2016\/06\/scan-compression-1.png&#8221; alt=&#8221;scan compression&#8221; title_text=&#8221;scan compression&#8221; show_in_lightbox=&#8221;off&#8221; url_new_window=&#8221;off&#8221; use_overlay=&#8221;off&#8221; animation=&#8221;off&#8221; sticky=&#8221;off&#8221; align=&#8221;left&#8221; force_fullwidth=&#8221;off&#8221; always_center_on_mobile=&#8221;on&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;] [\/et_pb_image][\/et_pb_column][et_pb_column type=&#8221;2_3&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<p>In contemporary test infrastructures that support scan compression, due to the correlation induced by the stimulus decompressor, the attacker may no longer be able to apply the desired test patterns to launch the desired bit-flips; a single bit-flip may trigger an unwanted bit-flip in other locations, resulting in ambiguous or incorrect deductions in the scan attack. A stimulus decompressor and a response<br \/>\ncompactor thus end up acting as a natural fortuitous countermeasure for the proposed test-mode-only attacks as they reside on the scan path, further complicating the test-mode-only attack.<\/p>\n<p>In our work in <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c81<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c82<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">c83<\/a>, <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">j43<\/a>, and <a href=\"https:\/\/sites.nyuad.nyu.edu\/dfx\/publications\/\">j51<\/a>, we identified the conditions for a successful attack in the presence of a scan decompressor and a compactor, and developed countermeasures (decompressor output swapping and scan cell swapping) to ensure that these conditions are never met. The techniques we propose deliver design-for-secure-testability.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scan is NOT Secure While testing is required to screen out defective Integrated Circuits (ICs), any design effort to improve testability may compromise the security of the ICs. To enhance the testability, the test infrastructure provides internal access to the IC. However, an attacker can leverage the test mode to hack into secure-critical ICs. An [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":125,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"class_list":["post-471","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-json\/wp\/v2\/pages\/471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-json\/wp\/v2\/comments?post=471"}],"version-history":[{"count":27,"href":"https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-json\/wp\/v2\/pages\/471\/revisions"}],"predecessor-version":[{"id":524,"href":"https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-json\/wp\/v2\/pages\/471\/revisions\/524"}],"up":[{"embeddable":true,"href":"https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-json\/wp\/v2\/pages\/125"}],"wp:attachment":[{"href":"https:\/\/sites.nyuad.nyu.edu\/dfx\/wp-json\/wp\/v2\/media?parent=471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}