2024-06-20 · Company News
Background: Automation of Security Testing
In June 2024, "AI + security" became a hot topic — LLMs can "understand code," "generate exploits," "execute penetration testing." Traditional penetration testing: manual script writing, manual execution, manual analysis. AI penetration testing: LLM understands target system, automatically selects attack path, generates exploit, executes and analyzes results. FengZheng Tech explored AI for penetration testing, radio and wired protocol decoding in June 2024.
Technical Approach: LLM + Tool Calling
LLM Role: Use GPT-4 (2023-03) as the "brain" of penetration testing. Input: "target system description + testing requirements," output: "testing plan + execution steps."
Tool Calling: LLM calls "external tools" to execute tests. Tool list:
Network Scanning: nmap (port scanning), nikto (web vulnerability scanning). LLM generates "scan commands," executes, then "parses results."
Vulnerability Exploitation: Metasploit (vulnerability exploitation framework). LLM generates "exploit commands," executes, then "analyzes results."
Protocol Decoding: Wireshark (network protocol analysis). LLM generates "capture commands," executes, then "parses protocols."
Radio Decoding: SDR (Software Defined Radio) + custom decoding scripts. LLM generates "decoding logic," executes, then "analyzes signals."
Design Philosophy: Why "LLM + Tool Calling" Instead of "Pure LLM"
In June 2024, the industry trend was "pure LLM" (let LLM directly "think + execute"). Reasons FengZheng chose "LLM + tool calling":
First, "LLM cannot execute": LLM is a "language model," cannot "execute code," "send network requests," "read hardware signals." Need "external tools" as the "execution layer."
Second, "tools are 'standardized'": nmap, Metasploit, Wireshark are "standard tools," "stable interfaces," "well-documented." LLM only needs to "generate commands," not "implement tools."
Third, "auditable": "LLM generates commands" → "manual review" → "execute tools" → "log everything." Every step can be "audited," "rolled back," "traced." "Pure LLM" "black box execution" cannot be audited.
References: Academic Background
AutoGPT (2023-04): "Autonomous agent" framework, core is "LLM + tool calling + loop." AutoGPT proved that "LLMs can autonomously execute complex tasks."
Function Calling (2023-06): OpenAI's "function calling," allowing "LLMs" to "call external functions." Function calling is the foundation of "LLM + tools."
ReAct (2022-10): Princeton's "Reasoning + Acting" framework, core is "LLM alternates between 'thinking' and 'acting'." ReAct is an early implementation of "LLM Agent."
Industry Practice: Enterprise Security Testing
In June 2024, FengZheng's AI penetration testing was deployed for 2 clients:
A Bank Web Application: Deployed "AI penetration testing" for "web vulnerability scanning." LLM generates "testing plan" (SQL injection, XSS, CSRF), calls "nmap + nikto" to execute scans, discovers 3 high-severity vulnerabilities (SQL injection, file upload vulnerability, privilege escalation). Manual review confirms 2 vulnerabilities (1 false positive).
An IoT Device: Deployed "AI protocol decoding" for "radio protocol analysis." LLM generates "decoding logic" (identify protocol type, parse frame structure), calls "SDR" to capture signals, successfully decodes 3 protocols (Zigbee, Z-Wave, LoRa). Discovers 1 "unencrypted communication" vulnerability.
Summary
The core of FengZheng's AI penetration testing is not "stronger LLM," but "automated security testing" via "LLM + tool calling." LLM as the "brain" (understand target, generate plan), tools as the "hands and feet" (execute scans, capture signals). In June 2024, FengZheng's AI penetration testing positioning was "automated enterprise security testing solution" — not "replacing humans," but "assisting humans."