AI Vulnerability Discovery for Beginners: From Environment Setup to Real-World SRC Practice

The course breaks down four code auditing bottlenecks, offers a five-step Claude Code agent path for AI vulnerability discovery, and stresses authorization compliance.
Centered on Bilibili creator Teacher Xingkong's course introduction, the article covers why AI is needed in vulnerability discovery and how to learn it. Traditional code auditing suffers from low efficiency, coverage blind spots, repetitive labor, and a talent gap; AI agents can automate repetitive checks. The course divides AI's security role into assisted Q&A, copilot, and agent levels, with Claude Code in the autonomous agent tier. The five-step path: install Node.js, configure model providers with CC Switch, get Skills from GitHub, connect browser debugging via MCP, and practice on a self-built range. It also stresses that unauthorized testing is illegal and AI is an efficiency amplifier, not a replacement.
Why Traditional Vulnerability Discovery Needs AI
The bottlenecks of traditional code auditing are clearly broken down in the course by Bilibili creator "Teacher Xingkong". A medium-sized project easily runs to hundreds of thousands of lines of code, and manual auditing takes days to weeks — inefficient and prone to fatigue. A more insidious problem is coverage blind spots: researchers tend to focus on high-risk paths, leaving many peripheral modules unaudited, and vulnerabilities like CSRF and SSRF often hide precisely in peripheral logic, where chaining them can produce high-impact operations. In addition, repeatedly checking the same vulnerability types, stitching together filters, and writing reports are high-intensity repetitive labor, and the talent gap makes security auditing hard to scale and replicate.

These pain points are the natural entry point for AI. The course's core thesis is not "AI replaces humans," but rather using agents to automate repetitive labor so people can focus on defining objectives and reviewing conclusions.
Three Modes of AI Participation in Security Work
To understand AI vulnerability discovery, you first need to distinguish the levels of AI's role in security work. In the course introduction, Teacher Xingkong lays out three modes, and this division is very helpful for beginners building a cognitive framework.
Assisted Mode: Conversational Q&A
The most basic level is conversational Q&A. The AI only outputs text and does not call local tools. If you ask it on a web page to "open a certain URL for me," it may reply that it has opened it, but in reality it cannot operate any program on your computer. At this level, AI is an "advisor," not an "executor."

Copilot Mode: In-IDE Generation
The second level is copilot mode, where AI is embedded in the development environment and makes local extensions based on the human's ideas, such as generating a POC skeleton or completing code snippets. The human remains in the driver's seat; AI plays the role of "accelerating the draft."
Agent Mode: Autonomous Closed Loop
The third level is agent mode, and it is the star of this course. The human sets the goal, draws the boundaries, and reviews the conclusions, while the AI plans, executes, and verifies autonomously, forming a closed loop. The tool chosen for the course is Claude Code, which is also the core around which the subsequent environment setup revolves.
The core difference between an agent and a large model lies in "action capability." A large model is essentially a function that predicts output from input and can only generate text; an agent, on top of the large model, adds a planning module, tool-calling interfaces, and a memory mechanism, enabling it to break down goals, select tools, execute operations, and adjust the next step based on feedback. Take Claude Code as an example: it can not only understand natural language instructions but also read and write files, execute terminal commands, and call external APIs, thereby forming an "observe—think—act—verify" closed loop. This architecture transforms AI from a passive responder into an execution entity to which tasks can be delegated, but it also means permission management and operational boundaries must be set in advance — otherwise, the greater the autonomy, the higher the risk of misoperations or privilege escalation.
Course System: A Five-Step Learning Path
The course splits the learning path into five stages: "lay the foundation, configure the engine, install the weapons, expand capabilities, and do real combat." The logic is fairly clear.
Lay the Foundation: Node.js and Conceptual Distinctions
Before installing Claude Code, you must first install Node.js and configure environment variables — this is the runtime dependency of the agent. At the same time, you need to distinguish between large models and agents — how far the models on the market have developed, what agents can do — because if these concepts are unclear, confusion will follow.

Configure the Engine: CC Switch for Managing Model Providers
After installing Claude Code, use CC Switch to configure model providers, supporting one-click switching and hot management. The course uses DeepSeekAd as an example, but third-party models such as GLM, Kimi, and Volcano Engine can also be connected. This step solves the question of "which brain the agent uses."

Install the Weapons: Obtain Skills from GitHub
Skills are skill packages. Without Skills, the AI's discovery ideas will be limited. The course recommends pulling high-star open-source Skill projects from GitHub, performing point-to-point fixes after installation, and then putting them into use.
A Skill is essentially a wrapper around a set of predefined tool functions or operational workflows, giving the agent a callable "action library" in specific scenarios. In vulnerability discovery scenarios, Skills can encapsulate common operations such as port scanning, directory brute-forcing, parameter fuzzing, and POC template generation, so the agent does not need to reason out every step from scratch but instead executes according to validated procedures. Without Skills, the agent's behavior depends heavily on the model's own reasoning ability and the quality of context, making it easy to miss standard steps or produce hallucinations; with high-quality Skills introduced, the discovery process comes closer to standardized, rule-based work. The course recommends selecting high-star open-source Skill projects from GitHub because community-validated skill packages usually cover common toolchains and exception-handling logic — but after installation, point-to-point fixes are still needed to adapt to the local environment and the authorized scope of the target.
Expand Capabilities: MCP for Browser Debugging
MCP (Model Context Protocol) enables the agent to call a browser for debugging and interface requests, expanding the agent's operational boundaries. Section 7 of the course is specifically devoted to MCP installation and its role.
MCP (Model Context Protocol) is an open protocol used to standardize the way agents connect to external tools and data sources. You can think of it as the agent's "USB interface": whether the outside world is a browser, a database, a file system, or a third-party API, as long as an MCP server is implemented, the agent can discover and call these capabilities in a unified way. In vulnerability discovery, connecting MCP to a browser means the agent can proactively initiate page visits, intercept requests, modify parameters, and observe responses, thereby completing interactive testing that traditionally required a human in Burp Suite or browser developer tools. Compared with having the model "imagine" the results of HTTP requests, the real execution channel provided by MCP greatly reduces the risk of hallucination and also makes the agent's verification stage produce reproducible operation logs.
Real Combat: Full-Process Discovery on a Comprehensive Range
The final step is to use the configured Claude Code on a self-built comprehensive range to complete the full process from information gathering to vulnerability verification. The course repeatedly emphasizes that all demonstrations are conducted on authorized ranges.
Red Line Rules: Authorized Testing Is a Prerequisite
The course introduction devotes considerable space to emphasizing compliance. Unauthorized testing of others' systems is illegal; for sensitive operations, you must ask yourself whether they are within the authorized scope; discovered vulnerabilities should be reported rather than exploited destructively; backdoors must not be left, and details must not be disseminated. This reminder is especially important against the backdrop of AI lowering the barrier to attack — the stronger the tool, the more indispensable the awareness of boundaries.
In China, the legal boundaries of authorized testing are mainly defined by the Cybersecurity Law, Articles 285 and 286 of the Criminal Law, and the Data Security Law. Unauthorized scanning, penetration, or vulnerability verification against others' systems, even without causing actual damage, may constitute the crime of illegally intruding into computer information systems or the crime of illegally obtaining computer information system data. Compliant vulnerability discovery usually requires a written authorization letter specifying the test scope, time window, permitted technical means, and data handling methods. In scenarios involving AI agents, because tools can autonomously execute multi-step operations, the authorization scope should be further refined to specific domain names, IP ranges, and interfaces, to avoid the agent "incidentally" testing assets outside the scope during its planning process. The correct approach after discovering a vulnerability is to report it through the designated channel and cooperate with remediation, rather than disclosing details publicly or retaining access.
Practical Value for Beginners
The value of this course lies in integrating scattered tutorials into a complete chain: Node.js installation and verification, Claude Code installation, model configuration, Skill acquisition, MCP expansion, and range practice. Tutorials about Claude Code online are indeed scattered — one here, one there — and beginners easily get stuck at the environment stage. The course strings them together systematically, lowering the barrier to entry.
What needs to be viewed rationally is that the course currently releases only the introduction; the practical effect depends on the subsequent range design and Skill quality. AI vulnerability discovery is not "one-click vulnerability finding" — the agent's planning ability is still constrained by model level, Skill coverage, and target complexity. Treating it as an efficiency amplifier rather than a replacement is the more reasonable expectation.
One-line Summary
The course breaks down the four major bottlenecks of traditional code auditing, proposes a five-step path to build an AI vulnerability discovery chain with the Claude Code agent, and emphasizes authorization and compliance.
Paragraph Summary
Centered on the course introduction by Bilibili creator "Teacher Xingkong," the article outlines the necessity of AI involvement in vulnerability discovery and the learning path. Traditional code auditing has four major bottlenecks: low efficiency, coverage blind spots, repetitive labor, and the talent gap, and AI agents can automate repetitive checking. The course divides AI's role in security work into three levels — assisted Q&A, copilot, and agent — with Claude Code belonging to the third, autonomous closed-loop mode. The learning path is divided into five steps: install Node.js to lay the foundation, use CC Switch to configure model providers, obtain Skill packages from GitHub, connect to browser debugging via MCP, and complete full-process practice on a self-built range. The article also emphasizes that unauthorized testing is illegal and reminds readers that AI is an efficiency amplifier, not a replacement.
Related articles

athletedata MCP: Connect 40+ Sports & Health Data Sources to Claude and ChatGPT
athletedata MCP connects Garmin, WHOOP, Oura and 40+ sports health apps to Claude and ChatGPT, enabling natural-language queries of training load, HRV, VO2max, and sending generated training plans to your watch.

Free Training Labels Hiding in Chat Logs: A New Approach to Mining Agent Training Samples
A method for automatically extracting Agent training samples from chat logs: using users' active @mentions of an Agent as natural labels, with the first message as input and the mentioned Agent as the target, to build training data at zero cost.

hiCreator: One Link, and AI Handles the Entire Influencer Marketing Workflow
hiCreator is an AI Agent influencer marketing tool: input a product link to discover creators across Instagram, TikTok, YouTube, and X, handle outreach and negotiation, and complete contracts and payments. Available on web, Chrome extension, and AI coding environments like Claude Code.