Device, method and attack end for detecting light source locking vulnerability of phase-coded QKD device

By designing the attack end structure in the phase encoding QKD device, using attack light pulses of different wavelengths and phase differences to detect and replace the attacked signal, the problem of the inability to effectively detect the light source injection lock vulnerability in the existing technology is solved, and phase encoding is achieved. High-precision safety testing of equipment.

CN114697009BActive Publication Date: 2024-09-06QUANTUMCTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011616492.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-09-06
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

The existing technology cannot effectively detect the light source locking vulnerability of phase-encoded QKD equipment, and cannot be used in QKD systems with other encoding schemes, resulting in insufficient security.

Method used

An attack end structure is designed, including a light source module, an unequal arm interferometer, an optical path control module, a filter, a measurement module and an optical pulse preparation module. By generating attack light pulses of different wavelengths, they are divided into attack light pulse components with phase differences. , and only allow light pulses with changed wavelengths to pass through the filter, measure and prepare pseudo-state light pulse pairs to replace the attacked signal light, ensuring the reliability of the detection results.

Benefits of technology

It achieves accurate detection of light source locking vulnerabilities in phase-encoded QKD equipment, avoids detection inaccuracies caused by count rate decreases and wavelength changes, and ensures the safety of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114697009B
    Figure CN114697009B
Patent Text Reader

Abstract

The present invention proposes an attack end structure that can be used to detect the light source locking vulnerability of a phase-coded QKD device, as well as a detection device and method based on the attack end structure. With the design of the attack end of the present invention, it is possible to first intercept the attacked phase-coded signal light pair and measure it to obtain key information, and then prepare a pseudo-state light pulse pair with the same phase-coded information and a central wavelength under normal working conditions to replace the attacked phase-coded signal light pair whose key information has been stolen and send it to the Bob end, thereby realizing the detection of the light source locking vulnerability of the phase-coded QKD device, while avoiding the defects of inaccurate detection caused by the decrease in the measurement count rate and the change in wavelength of the receiving party, thereby achieving high detection accuracy of the light source locking vulnerability of the phase-coded QKD device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum secure communication, and in particular to a device, method and attack end for detecting light source locking vulnerabilities of a phase-coded QKD device. Background Art

[0002] Quantum communication technology provides an unconditionally secure confidential communication method and is currently the only known confidential communication method that can resist quantum computers. After years of development, quantum communication technology has gradually matured and entered the market.

[0003] Although the security of quantum communication can be proven in theory, the physical characteristics of actual devices are not perfect, and it is inevitable that some characteristics deviate from theoretical requirements, affecting the security of actual systems. Finding out the possible vulnerabilities in actual devices can promote the understanding of the physical characteristics of real devices in academia and industry, and then design targeted security protection methods to improve the security of real quantum key distribution (QKD) devices.

[0004] Recently, scientists have discovered an important vulnerability - the light source injection lock vulnerability, that is, the laser used as the light source in the QKD device may be injected and locked by an externally injected optical signal, causing the output wavelength to change, thereby leaking key-related information. Specifically, when using the injection lock vulnerability to attack the polarization-encoded QKD device, the third party (attacker) Eve inputs a strong light pulse with a specific polarization state to the QKD device sender Alice through the optical fiber channel (its polarization state is randomly selected, and the center wavelength is different from the center wavelength of the light pulse sent by the sender Alice). If the polarization state selected by the attacker Eve on the light pulse injected into the sender Alice is consistent with the polarization state selected by Alice on the polarization-encoded signal light sent, then the injected light pulse can enter Alice's laser, and under the condition of appropriate energy, it can lock Alice's laser, causing the center wavelength of the light pulse output by Alice's laser to change. If the polarization state selected by Eve is inconsistent with the polarization state selected by Alice, then the energy that can enter Alice's laser is relatively low, and Alice's laser cannot be locked, and the center wavelength sent by Alice will not change. Then, Eve adds a filter to the optical path, which only allows light pulses with changed wavelength to pass through, and light pulses with unchanged wavelength cannot pass through. In this way, the light pulses transmitted to Bob's end are all light pulses with changed central wavelength, and their polarization states are known to the third party Eve. At this time, the third party Eve obtains all the key information carried by the polarization-coded signal light sent by Alice, the sender of the QKD device. In the above-mentioned injection lock vulnerability detection process, if the receiver Bob of the QKD device can measure the valid count when a third party exists and launches an injection lock attack, it means that the QKD device has a security vulnerability; if Bob cannot detect the valid count by adjusting the wavelength and intensity of the optical signal used by the third party Eve, it means that the QKD device can protect against this security vulnerability. Summary of the invention

[0005] Through in-depth analysis of existing injection lock vulnerability detection schemes, the inventors found that the probability that the polarization state selected by the third party Eve is the same as the polarization state selected by Alice is about 25%. Therefore, Eve will introduce an additional loss of at least 6dB during operation, resulting in a more than 4-fold reduction in the effective count at Bob. This phenomenon can be discovered by both communicating parties and the existence of the third party Eve can be determined. On the other hand, if the receiving party Bob can accurately measure the central wavelength of the input optical signal, it is also possible to discover the attack operation of the third party Eve. It can be seen that the injection lock vulnerability attack and the corresponding detection scheme implemented by the attacking end Eve in the prior art are defective and insufficient to detect potential vulnerability risks. In addition, the existing light source injection lock vulnerability detection scheme cannot be used to detect QKD systems based on other coding schemes, such as phase-coded QKD systems.

[0006] To address this problem, the present invention proposes an attack end structure that can be used to detect the light source locking vulnerability of a phase-coded QKD device, as well as a detection device and method implemented based on the attack end structure, so as to accurately detect the light source locking vulnerability of a phase-coded QKD device and ensure the reliability of the detection results and the security of the QKD device.

[0007] A first aspect of the present invention relates to an attack end for detecting a light source locking vulnerability of a phase-coded QKD device, wherein a phase-coded signal light pair sent by a transmitter of the phase-coded QKD device under normal operation has a first wavelength λ Alice , characterized in that:

[0008] The attack end includes a light source module, an unequal-arm interferometer, an optical path control module, a filter, a measurement module, and an optical pulse preparation module;

[0009] The light source module is configured to generate an attack light pulse having a wavelength different from the first wavelength λ Alice The second wavelength λ Eve ;

[0010] The unequal-arm interferometer is configured to divide the attack light pulse into a first and a second attack light pulse component having a preset time interval, and randomly form a phase difference between the first and second attack light pulse components, wherein the preset time interval is the same as the time interval between two phase-encoded signal lights in the phase-encoded signal light pair;

[0011] The optical path control module is configured to realize an optical path connection between the unequal-arm interferometer and the sender, and an optical path connection between the sender and the filter;

[0012] The filter is set so that the central wavelength it allows to pass is only the third wavelength λ change , the third wavelength λ change is the wavelength of the phase-coded signal light pair sent by the sender when attacked by the attack light pulse;

[0013] The measuring module is configured to measure the phase-coded signal light pair output by the filter;

[0014] The optical pulse preparation module is configured to prepare a pseudo-state optical pulse pair whose phase difference is the same as the phase difference of the measured phase-encoded signal optical pair, and send it to a receiver of the phase-encoded QKD device, wherein the pseudo-state optical pulse pair has the first wavelength λ Alice .

[0015] Furthermore, the optical path control module has a first port, a second port and a third port, and the optical signal input through the first port is output through the second port, and the optical signal input through the second port is output through the third port; and the first port, the second port and the third port of the optical path control module are respectively connected to the unequal-arm interferometer, the transmitter and the filter.

[0016] Optionally, the optical path control module includes a circulator, a beam splitter or a coupler.

[0017] Further, the optical pulse preparation module is configured to: when the measurement module measures the optical pulse having the third wavelength λ change After the phase-coded signal light pair is generated, the pseudo-state light pulse pair is prepared according to the phase difference formed on the first and second attack light pulse components.

[0018] Furthermore, the optical pulse preparation module is configured to be able to adjust the intensity of the pseudo-state optical pulse pair so that it has the same intensity as the phase-coded signal light pair input into the optical path control module.

[0019] Optionally, the optical pulse preparation module includes a laser with adjustable intensity, an intensity modulator, or an adjustable attenuator.

[0020] The second aspect of the present invention relates to a detection device for a light source locking vulnerability of a phase-coded QKD device, which includes the above-mentioned attack end and a judgment module; the judgment module is configured to determine whether the phase-coded QKD device has a light source locking vulnerability based on the measurement results of the pseudo-state optical pulse pair by the receiver.

[0021] Furthermore, the measurement result includes a detection count of the pseudo-state optical pulse pair; and the judgment module is configured to judge that the phase-coded QKD device has a light source locking vulnerability when the detection count of the pseudo-state optical pulse pair exceeds a preset threshold.

[0022] A third aspect of the present invention relates to a method for detecting a light source lock vulnerability of a phase-coded QKD device, wherein the phase-coded signal light pair sent by the transmitter of the phase-coded QKD device under normal operation has a first wavelength λ Alice ,

[0023] The method is characterized by comprising a light source locking attack step, a pseudo-state light pulse preparation step and a judgment step:

[0024] In the light source locking attack step, first and second attack light pulse components are injected into the sender, and the first and second attack light pulse components have wavelengths different from the first wavelength λ Alice The second wavelength λ Eve, and a phase difference is randomly formed between the two;

[0025] In the pseudo-state optical pulse preparation step, the phase-coded signal light pair sent by the sender is intercepted, and only the phase-coded signal light pair having the third wavelength λ is intercepted. change The signal light pair is measured; and when the signal light having the third wavelength λ is measured change When the phase-coded signal light pair is prepared, according to the phase difference between the first and second attack light pulse components, a light having the same phase difference and having the first wavelength λ Alice The pseudo-state optical pulse pair is sent to the receiving party, wherein the third wavelength λ change is the wavelength of the phase-coded signal light pair sent by the sender when attacked by the first and second attacking optical pulse components;

[0026] In the judging step, it is judged whether the phase-coded QKD device has a light source locking vulnerability based on the measurement result of the pseudo-state optical pulse pair by the receiver.

[0027] Furthermore, the pseudo-state light pulse preparation step further comprises adjusting the light intensity of the pseudo-state light pulse pair to be equal to the measured light intensity having a third wavelength λ change The phase-encoded signal light has the same intensity step.

[0028] Furthermore, the detection method of the present invention may further include adjusting the second wavelength λ of the first and second attack light pulse components when it is determined that there is no light source injection lock vulnerability. Eve and / or light intensity, repeating the steps of light source locking attack, pseudo-state light pulse preparation and judgment.

[0029] Optionally, the first and second attacking light pulse components are formed by equally dividing the attacking light pulse through an unequal-arm interferometer.

[0030] Preferably, the detection method of the present invention can be implemented with the aid of the above-mentioned detection device. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The specific implementation modes of the present invention are further described in detail below in conjunction with the accompanying drawings.

[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. It is obvious that the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1A structural principle diagram of an attack terminal for detecting light source locking vulnerabilities of a phase-coded QKD device according to the present invention is shown. DETAILED DESCRIPTION

[0034] Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. The following embodiments are provided by way of example so as to fully convey the spirit of the present invention to those skilled in the art to which the present invention belongs. Therefore, the present invention is not limited to the embodiments disclosed herein.

[0035] The present invention proposes an attack end structure for detecting light source locking vulnerabilities of phase-coded QKD equipment, as well as a detection device and method implemented based on the attack end structure, so as to provide more accurate detection results.

[0036] Figure 1 A schematic diagram of the attack end structure for detecting light source locking vulnerabilities of a phase-coded QKD device according to the present invention is shown.

[0037] like Figure 1 As shown, in use, the attacking end Eve is configured to be able to control the communication link between the sender Alice and the receiver Bob of the phase-coded QKD device under test, and intercept the phase-coded signal light pair sent by the sender Alice to the receiver Bob.

[0038] Under normal working conditions, the phase-coded signal light pair sent by the sender Alice has a first wavelength λ Alice .

[0039] The attacking end Eve may include a light source module, an unequal-arm interferometer, an optical path control module, a filter, a measurement module, and an optical pulse preparation module.

[0040] The light source module is used to generate an attack light pulse having a wavelength different from the first wavelength λ Alice The second wavelength λ Eve .

[0041] The unequal-arm interferometer is used to divide the attack light pulse into a first attack light pulse component and a second attack light pulse component with a preset time interval, and randomly form a phase difference between the first and second attack light pulse components. The time interval between the first and second attack light pulse components can be determined by the optical path difference between the two arms of the unequal-arm interferometer, and the phase difference between the two components can be formed by random modulation of the phase modulator in the unequal-arm interferometer. The first and second attack light pulse components have the same intensity.

[0042] In the present invention, the time interval between the first and second attacking optical pulse components is consistent with the time interval between two phase-coded signal lights of the phase-coded signal light pair sent by the sender Alice.

[0043] The optical path control module is used to realize the optical path connection between the unequal-arm interferometer and the sender Alice, and the optical path connection between the sender Alice and the filter.

[0044] like Figure 1 As shown, the optical path control module may have a first port 1 , a second port 2 and a third port 3 , and is configured such that: an optical signal input through the first port 1 is output through the second port 2 , and an optical signal input through the second port 2 is output through the third port 3 .

[0045] exist Figure 1 In the example, the first port 1 of the optical path control module is connected to the unequal-arm interferometer, and the second port 2 is connected to the sender Alice, thereby allowing the first and second attack light pulse components output by the unequal-arm interferometer to be injected into the sender Alice (i.e., the laser light source in Alice for generating phase-coded signal light); the third port 3 of the optical path control module is connected to the filter, thereby allowing the phase-coded signal light pair sent by the sender Alice to reach the filter.

[0046] As an example, the optical path control module may be a circulator, a beam splitter or a coupler.

[0047] Those skilled in the art know that when the attacking end Eve outputs the first and second attacking light pulse components and injects them into Alice, if the phase difference randomly selected on the first and second attacking light pulse components is the same as the phase difference modulated by Alice on the phase-coded signal light pair (i.e., the phase difference to be applied by the phase modulation module in Alice), most of the energy of the first and second attacking light pulse components can enter Alice's laser light source, implement a light source injection locking attack, change the working state of Alice's laser light source, and make the central wavelength of the phase-coded signal light pair sent by Alice change from the first wavelength λ during normal operation to Alice Change to the third wavelength λ change .

[0048] When the phase difference between the first and second attack light pulse components is different from the phase difference modulated on the phase-coded signal light pair, the light pulse energy that can be injected into Alice's light source laser is very low and is not enough to change the working state of Alice's light source laser. The central wavelength of the phase-coded signal light pair sent by Alice is still the first wavelength λ Alice .

[0049] In the attack end of the present invention, the filter is set to allow only the third wavelength λ to pass. change That is, only the wavelength changes to the third wavelength λ due to the injection locking attack of the light source changeThe phase-coded signal light pair can pass through the filter without being affected by the attack and its wavelength remains the first wavelength λ Alice The phase-coded signal light pair cannot pass through the filter.

[0050] Therefore, only the third wavelength λ change The phase-coded signal light pair enters the measurement module, so that the phase-coded information it carries is obtained.

[0051] As described above, when the measurement module receives the phase-coded signal light pair, it indicates that the phase difference carried on the phase-coded signal light pair is the same as the phase difference selected by the attacking end on the first and second attacking light pulse components.

[0052] Since the phase difference formed on the first and second attack optical pulse components selected by the attacking end is known, the optical pulse preparation module can prepare a pseudo optical pulse pair whose phase difference is exactly the same as the phase difference on the measured phase-coded signal optical pair, and send it to the receiver Bob.

[0053] In the present invention, the optical pulse preparation module is further configured to make the prepared pseudo-state optical pulse pair have a first wavelength λ Alice , and the same intensity as the phase-coded signal light pair of the input optical path control module, thereby replicating the phase-coded signal light pair under normal working conditions.

[0054] As an example, the optical pulse preparation module may include an intensity-adjustable laser, or an intensity modulator, or an adjustable attenuator to provide an intensity adjustment function for the pseudo-state optical pulse pair.

[0055] Therefore, with the aid of the attacking end structure of the present invention, the phase encoding information (key information) of the phase encoding signal light pair sent by Alice can be obtained, and at the same time, a pseudo-state optical pulse pair can be sent to Bob. The pseudo-state optical pulse pair has not only the wavelength λ of the normal phase encoding signal light pair, but also the key information of the phase encoding signal light pair. Alice , and the intensity and phase difference are consistent with the phase-coded signal light pair, so Bob cannot detect whether the phase-coded signal light pair is attacked by a third party (attacker) during transmission by changes in counting rate or wavelength. In this way, the disadvantage of easy discovery of attack operations in existing attack detection schemes can be solved, so that the phase-coded QKD device can be more accurately detected to see if there is a light source injection lock vulnerability, ensuring the security of the phase-coded QKD device.

[0056] In order to detect the light source locking vulnerability, in addition to the attack end used to implement the attack operation, the detection device can also include a judgment module, which is used to obtain Bob's measurement results of the pseudo-state light pulse pair, and judge whether the phase-coded QKD device under test has a light source locking vulnerability based on the measurement results.

[0057] In the present invention, the so-called measurement result may include the detection count of the pseudo-state light pulse pairs.

[0058] If the detection count of the pseudo-state optical pulse pair exceeds the preset threshold, it is determined that the detected phase-coded QKD device has a light source locking vulnerability; otherwise, it means that the QKD device is able to protect against the light source locking security vulnerability.

[0059] The following will combine the above-mentioned attack end and detection device to illustrate the detection method for the light source injection lock vulnerability of the phase-coded QKD device according to the present invention by way of example, so as to further understand the working principle of the present invention.

[0060] The detection method for the light source locking vulnerability of the phase-coded QKD device according to the present invention may include a light source locking attack step, a pseudo-state light pulse preparation step and a judgment step. Among them, under normal working conditions, the phase-coded signal light pair sent by the sender Alice of the phase-coded QKD device has a first wavelength λ Alice .

[0061] In the light source locking attack step, first and second attack light pulse components are injected into Alice. The first and second attack light pulse components have different wavelengths λ Alice The second wavelength λ Eve , with a randomly selected phase difference between the two.

[0062] As an example, the first and second attack light pulse components can be made to have a second wavelength λ Eve The attacking light pulse is formed by passing through an unequal-arm interferometer with a phase modulator.

[0063] As mentioned above, when the phase difference between the first and second attack light pulse components is the same as the phase difference on the phase-coded signal light pair, the first and second attack light pulse components can perform an injection locking attack on the light source laser in Alice, causing the wavelength of the phase-coded signal light pair to change from the first wavelength λ to Alice Change to the third wavelength λ change .

[0064] In the pseudo-state optical pulse preparation step, the phase-coded signal light pair sent by Alice is intercepted, and only the phase-coded signal light with the third wavelength λ is change The signal light pair is measured; when the signal light with the third wavelength λ change When the phase-encoded signal light pair is prepared, the first wavelength λ and the first wavelength λ are prepared according to the phase difference between the first and second attack light pulse components. Alice The pseudo-state optical pulse pair is generated and sent to the receiver Bob.

[0065] Furthermore, the light intensity of the pseudo-state light pulse pair can be adjusted to correspond to the measured light intensity of the third wavelength λchange The light intensities of the phase-coded signal light pairs are the same.

[0066] In the judgment step, according to the measurement result of the pseudo-state optical pulse pair by the receiver Bob of the QKD device under test, it is judged whether the QKD device under test has a light source injection lock vulnerability. The measurement result may include a detection count.

[0067] As an example, when the detection count of the pseudo-state optical pulse pair exceeds a preset threshold, it can be determined that the QKD device under test has a light source locking vulnerability; otherwise, there is no light source locking vulnerability.

[0068] Furthermore, when it is determined that there is no light source injection lock vulnerability, the second wavelength λ of the attack light pulse pair may be adjusted. Eve and / or light intensity, repeating the steps of light source locking attack, pseudo-state light pulse preparation and judgment.

[0069] In summary, with the aid of the attack end design of the present invention, it is possible to first intercept the attacked phase-coded signal light pair and measure it to obtain key information, and then prepare a pseudo-state optical pulse pair with the same phase-coded information and a central wavelength under normal working conditions to replace the attacked phase-coded signal light pair whose key information has been stolen and send it to the Bob end, thereby realizing the detection of the light source locking vulnerability of the phase-coded QKD device, and avoiding the defects of inaccurate detection caused by the decrease in the measurement count rate and the change in wavelength of the receiving party, thereby achieving high detection accuracy of the light source locking vulnerability of the phase-coded QKD device.

[0070] Although the present invention has been described above through specific embodiments in conjunction with the accompanying drawings, those skilled in the art will readily recognize that the above embodiments are merely exemplary and are used to illustrate the principles of the present invention, and do not limit the scope of the present invention. Those skilled in the art may make various combinations, modifications and equivalent substitutions to the above embodiments without departing from the spirit and scope of the present invention.

Claims

1. An attack end used to detect the light source injection lock vulnerability of the phase-coded QKD device, where: The phase-coded signal light pair sent by the transmitter of the phase-coded QKD device under normal operation has a first wavelength λ Alice , characterized in that: The attack end includes a light source module, an unequal-arm interferometer, an optical path control module, a filter, a measurement module, and an optical pulse preparation module; The light source module is configured to generate an attack light pulse having a wavelength different from the first wavelength λ Alice The second wavelength λ Eve ; The unequal-arm interferometer is configured to divide the attack light pulse into a first and a second attack light pulse component having a preset time interval, and randomly form a phase difference between the first and second attack light pulse components, wherein the preset time interval is the same as the time interval between two phase-encoded signal lights in the phase-encoded signal light pair; The optical path control module is configured to realize an optical path connection between the unequal-arm interferometer and the sender, and an optical path connection between the sender and the filter; The filter is set so that the central wavelength it allows to pass is only the third wavelength λ change , the third wavelength λ change is the wavelength of the phase-coded signal light pair sent by the sender when attacked by the attack light pulse; The measuring module is configured to measure the phase-coded signal light pair output by the filter; The optical pulse preparation module is configured to prepare a pseudo-state optical pulse pair whose phase difference is the same as the phase difference of the measured phase-coded signal optical pair, and send it to a receiver of the phase-coded QKD device, so that the corresponding detection device determines whether the phase-coded QKD device has a light source injection lock vulnerability according to the measurement result of the pseudo-state optical pulse pair by the receiver, wherein the pseudo-state optical pulse pair has the first wavelength λ Alice .

2. The attacking end according to claim 1, wherein: The optical path control module has a first port, a second port and a third port, and the optical signal input through the first port is output through the second port, and the optical signal input through the second port is output through the third port; and, The first port, the second port and the third port of the optical path control module are respectively connected to the unequal-arm interferometer, the transmitter and the filter.

3. The attacking end according to claim 2, wherein: The optical path control module includes a circulator, a beam splitter or a coupler.

4. The attacking end according to claim 1, wherein: The optical pulse preparation module is configured to: when the measurement module measures the optical pulse having the third wavelength λ change After the phase-coded signal light pair is generated, the pseudo-state light pulse pair is prepared according to the phase difference formed on the first and second attack light pulse components.

5. The attacking end according to claim 4, wherein: The optical pulse preparation module is further configured to adjust the intensity of the pseudo-state optical pulse pair so that it has the same intensity as the phase-encoded signal light pair input into the optical path control module.

6. The attacking end according to claim 5, wherein: The optical pulse preparation module includes a laser with adjustable intensity, an intensity modulator, or an adjustable attenuator.

7. A detection device for a phase-coded QKD device light source injection lock vulnerability, comprising an attack terminal as described in any one of claims 1 to 6, and a judgment module; The judgment module is configured to judge whether the phase-coded QKD device has a light source locking vulnerability according to the measurement result of the pseudo-state optical pulse pair by the receiver.

8. The detection device according to claim 7, wherein: The measurement result includes a detection count of the pseudo-state optical pulse pair; and the judgment module is configured to judge that the phase-coded QKD device has a light source locking vulnerability when the detection count of the pseudo-state optical pulse pair exceeds a preset threshold.

9. A method for detecting a light source lock vulnerability in a phase-coded QKD device, wherein: The phase-coded signal light pair sent by the transmitter of the phase-coded QKD device under normal operation has a first wavelength λ Alice , The method is characterized by comprising a light source locking attack step, a pseudo-state light pulse preparation step and a judgment step: In the light source locking attack step, first and second attack light pulse components are injected into the sender, and the first and second attack light pulse components have wavelengths different from the first wavelength λ Alice The second wavelength λ Eve , and a phase difference is randomly formed between the two; In the pseudo-state optical pulse preparation step, the phase-coded signal light pair sent by the sender is intercepted, and only the phase-coded signal light pair having the third wavelength λ is intercepted. change The signal light pair is measured; and when the signal light having the third wavelength λ is measured change When the phase-coded signal light pair is prepared, according to the phase difference between the first and second attack light pulse components, a light having the same phase difference and having the first wavelength λ Alice The pseudo-state optical pulse pair is sent to the receiving party, wherein the third wavelength λ change is the wavelength of the phase-coded signal light pair sent by the sender when attacked by the first and second attacking optical pulse components; In the judging step, it is judged whether the phase-coded QKD device has a light source locking vulnerability based on the measurement result of the pseudo-state optical pulse pair by the receiver.

10. The detection method according to claim 9, wherein: The pseudo-state light pulse preparation step further includes adjusting the light intensity of the pseudo-state light pulse pair to be equal to the measured light intensity of the third wavelength λ change The phase-encoded signal light has the same intensity step.

11. The detection method according to claim 9, further comprising adjusting the second wavelength λ of the first and second attack light pulse components when it is determined that there is no light source injection lock loophole Eve and / or light intensity, repeating the steps of light source locking attack, pseudo-state light pulse preparation and judgment.

12. The detection method according to claim 9, wherein: The first and second attacking light pulse components are formed by equally dividing the attacking light pulse through an unequal-arm interferometer.

13. The detection method according to claim 9, which is implemented by means of the detection device according to claim 7.