The invention discloses a malicious anchor node detection method based on an isolated forest and a
sequential probability ratio test. The malicious anchor node detection method combines an isolated forest
algorithm and a voting mechanism to obtain reliable information in anchor nodes, and builds a detection model through the reliable information. According to the malicious anchor node detection method, only a single
ranging algorithm is needed for
ranging, and multiple
ranging algorithms do not need to be used for ranging, and meanwhile, the assumption that one of multiple ranging methods is not attacked completely is avoided, so that the malicious anchor node detection method is more suitable for being used in a
real field, that is, it does not need to assume that the malicious anchor node detection method is not attacked completely. Normal samples are screened by utilizing an isolated forest, and reference anchor nodes in the normal samples are screened by utilizing a voting mechanism to realize multiple selection, and the reliability of the reference anchor nodes is ensured, so that the subsequent process of obtaining malicious anchor nodes according to the reference anchor nodes is indirectly ensured; and the difference value information is used for sequential probability ratio inspection, so that the detection of malicious anchor nodes is further improved, and the detection accuracy of the anchor nodes is improved, and the final positioning accuracy of subsequent target nodes is also improved.