Code detection method, apparatus, device, medium, and product
AssigneeBeijing Volcano Engine Technology Co., Ltd.
InventorsJun MA, Yuefeng LI
Life of this patent
Estimating the term…
Loading patent…
AssigneeBeijing Volcano Engine Technology Co., Ltd.
InventorsJun MA, Yuefeng LI
Estimating the term…
The present application provides a code detection method and apparatus, a device, a medium, and a product. The method includes: obtaining first code; performing tokenization on the first code to obtain a plurality of tokens; and inputting the plurality of tokens into a Mixture-of-Experts model, and receiving a code detection result output by the Mixture-of-Experts model, wherein the Mixture-of-Experts model includes a first expert model configured to extract a feature related to a first-type attack, a second expert model configured to extract a feature related to obfuscated code, and a third expert model configured to extract a feature related to language model-generated code, the code detection result is determined based on at least one consisting of: the feature related to the first-type attack, the feature related to the obfuscated code, and the feature related to the language model-generated code.
A code detection method, comprising:
An electronic device, characterized in that the electronic device comprises a processor and a memory;
A non-transitory computer-readable storage medium, characterized by comprising instructions, wherein the instructions instruct an electronic device to perform a code detection method,
Dependencies are inferred from the claim text.