This is the most innovative part of ALAPA-Agent. The system streams structured reconnaissance data to the Ollama daemon via a local Socket, which is analyzed by the locally deployed Qwen 3.5 9B model.
To ensure the determinism and parsability of the output, the system uses zero-temperature parameters and strict system prompts to forcefully suppress the model's chain-of-thought generation and directly output structured JSON-formatted vulnerability tags. These tags include common web vulnerability types such as SQL injection (sqli), cross-site scripting (xss), local file inclusion (lfi), etc.
The key advantage of this design is: the model does not generate attack payloads, but performs logical reasoning—judging which endpoints may have which types of vulnerabilities based on reconnaissance data. This architecture that separates the "brain" from the "fists" not only leverages the reasoning advantages of LLM but also avoids the risk of directly generating potentially harmful content.