The invention relates to the technical field of
network security, and discloses a multi-agent cooperative RESTful API
vulnerability test method. Constructing a parameter structured representation by analyzing an API interface specification, generating a test value conforming to service
semantics by using a large
language model, and establishing a semantic request baseline representing normal service logic; constructing a multi-agent collaborative architecture including
vulnerability reasoning, case generation,
test execution,
test analysis and
test management; all the agents are coordinated to carry out iterative
vulnerability testing through a
signal mechanism and a
state transition table, and API service analysis,
test strategy customization, use case directional variation and execution, result study and judgment and strategy optimization are achieved; and finally generating a structured vulnerability report. According to the method, the problems of semantic blind areas, shallow analysis
layers, insufficient
adaptive capacity and the like are solved, security risks such as
business logic vulnerabilities and sensitive data leakage in the RESTful API can be deeply detected, and the accuracy and coverage rate of
vulnerability detection are remarkably improved.