[KongchangAI]
· 2 min read· 1,498 words

DeepSeek Hermes AI-Driven Automated Bug Hunting: From Deployment to SRC in Practice

DeepSeek Hermes AI-Driven Automated Bug Hunting: From Deployment to SRC in Practice

Install a penetration testing plugin on the DeepSeek Hermes desktop client to complete the full SRC vulnerability hunting workflow within authorized boundaries.

The article introduces a hands-on workflow shared by a Bilibili creator for using an AI Agent in security testing. The core idea is to bypass the safety guardrails common to general-purpose Agents by choosing the less restrictive DeepSeek model paired with the Hermes desktop client (DSH), and installing a dedicated penetration testing mode plugin from an open-source GitHub repository so the Agent works within an authorized framework. The workflow covers downloading and installing DSH, phone number login and bonus credit, Agent preset selection, and the three installation methods for penetration mode plus the restart step. The hands-on section targets a teaching range and demonstrates DeepAgent multi-threaded delegation of two sub-Agents to perform port scanning and Web enumeration respectively, ultimately generating a report with exploration chain, vulnerability, and asset views. The article emphasizes that SRC scenarios must specify safety boundaries in the instructions, and that the authorization scope directly determines the number of vulnerabilities found.

AI large models are moving from code assistance into security testing scenarios. This workflow shared by a Bilibili creator demonstrates how to use the DeepSeek Hermes (hereafter DSH) desktop client to complete the entire chain from environment deployment to SRC vulnerability hunting. The core idea is not to have the model directly "jailbreak," but rather to install a dedicated penetration testing mode plugin that constrains the Agent to work within an authorized testing framework.

The AI Agent Free-for-All: Why Choose DeepSeek for Security Testing

The market for general-purpose Agent tools is already quite crowded: Claude Code, Codex, Hermes Agent, Mills, Doll, and domestic players like WorkBuddy, Tray, Alibaba Qwen Office, and DeepSeekAd Hermes. For cybersecurity practitioners, the common obstacle with these tools is the built-in safety guardrails of large models—directly asking them to perform penetration testing is usually refused.

The conventional way to bypass restrictions is "armor-breaking," i.e., using prompt engineering tricks to punch through the model's safety limits and get it to generate offensive security testing content. The creator offers another path: choose a model with relatively looser restrictions. DeepSeek has lower restrictions in the cybersecurity domain, and combined with Hermes' Agent capabilities, it is better suited to carry penetration testing tasks. This also explains why the entire workflow revolves around DSH rather than other Agents.

Also on the desktop

Safety Guardrails are a set of alignment mechanisms deployed by large model vendors during training and inference, aimed at intercepting potentially harmful requests before the model outputs. Common implementations include reinforcement learning from human feedback (RLHF), behavior constraints at the system prompt level, and an independent classifier review layer. For "dual-use" requests like penetration testing, guardrails often struggle to distinguish authorized testing from malicious attacks, so they tend to refuse across the board. The strictness of guardrails varies greatly across vendors: OpenAI and Anthropic models are stricter on offensive security content, while some domestic models have relatively looser interception thresholds in the cybersecurity domain. This difference directly affects which model security practitioners choose to carry Agent-based testing tasks.

Deploying the DSH Desktop Client: Installation and Initial Configuration

The installation itself has a very low barrier. Visit the Hermes desktop page, download the Windows 64-bit or macOS version, double-click the installer, choose the installation location, and click Install Now; a launch icon will be created on the desktop when finished.

The first launch requires logging in with a phone number. After registration, the page grants a 6.00 yuan bonus balance that can be used to offset model invocation fees; top up when it runs out. After entering the main interface, you can see entries for new sessions, plugin management, workspace, and more. The model selection defaults to DeepSeek V4.1 Flash, and permission settings offer options such as "view-only modifications within the workspace" and "full permissions."

The settings page is divided into general settings, models, built-in plugins, and Agent presets. Agent presets include Standard mode, PTC mode, Minimal mode, and Creative mode. Standard mode is sufficient for everyday tasks, while penetration testing requires adding a separate mode.

Agent Preset is a set of pre-configured behavior templates in the Agent desktop client, typically including system prompts, available tool sets, permission levels, and execution policies. After a user selects a preset, the Agent's reasoning style, the range of callable plugins, and operational boundaries all switch accordingly. Standard mode is geared toward everyday Q&A and file processing, with converged permissions and a streamlined tool set; the penetration testing mode, by contrast, mounts dedicated tools such as scanning, enumeration, and report generation, and requires the Agent to record target and authorization information before acting. The significance of the preset mechanism is that it packages "capability" and "constraint" together, sparing users from manually assembling prompts and permissions each time, and making it easier to audit which policy a given session ran under.

Installing the Penetration Testing Mode: Three Methods and Restart to Take Effect

The penetration testing mode comes from an open-source repository on GitHub. The repository is currently read-only but remains usable. Its positioning is clear: a penetration testing mode for DSH that records target exploration clues, verification results, assets, and vulnerabilities within the authorized scope, and displays them in a web interface as exploration chains, vulnerability views, and asset views.

There are three installation methods: install via the dsh plugin command when npm is available locally; install from a release URL; or download and install from a local file. The creator used the release URL method, handing the link directly to DSH to execute automatically. Note in particular that if you choose the web installation method, it does not work for the desktop client; the desktop client should use the corresponding command.

We are going to use the cybersecurity penetration testing mode

A permission request will appear during installation; click Allow. To avoid repeated authorizations, you can switch to full permissions. After installation, DSH must be restarted; once restarted, "Penetration Mode" will appear in the Agent presets on the settings page. Select it to truly enter a usable state.

SRC in Practice: Using Penetration Mode Against a Teaching Range

The hands-on portion uses an online education range (intranet address 192.168.10.140) as the target. After creating a new session, enter an instruction such as "Help me check this server and stop after finding the first vulnerability," along with safety boundary constraints such as not creating users and not performing in-depth testing.

In the process of clicking submit

This step's safety boundary design deserves elaboration. The creator explicitly warns that if the Agent is left to dig up all vulnerabilities, extra users may appear in the system and permissions may be altered, causing real impact. Therefore, in SRC scenarios, the authorization scope should be constrained as much as possible rather than pursuing "finding as many as possible."

After the instruction is submitted, DSH's penetration mode first records the target and authorization, then creates two sub-Agents: one responsible for host port scanning and service fingerprinting, and another responsible for Web enumeration and attack point verification. Behind this is DeepAgent's multi-threaded delegation mechanism, where each sub-Agent is assigned a different penetration testing execution task and advances in parallel.

Let's write it a bit more concisely

After the two sub-Agents wrap up, the session produces a final report containing exploration chain, vulnerabilities, assets, and report views, with host, purpose, intent, facts, vulnerabilities, and other information all viewable intuitively. In this demonstration, the report showed "no vulnerabilities found"—not because the tool failed, but because the authorized scope was too small; results differ once authorization is loosened.

DeepAgent Multi-Threaded Delegation Mechanism is an architecture that lets the main Agent break down complex tasks and dispatch them to multiple sub-Agents for parallel execution. The main Agent handles planning and aggregation, while each sub-Agent holds its own independent context and tool permissions and focuses on a single sub-goal, such as port scanning or Web path enumeration. Because sub-Agents do not share intermediate state with one another, the main Agent must clearly write the necessary target information, authorization boundaries, and stop conditions when delegating; otherwise sub-Agents may overstep or duplicate work. The advantage of this architecture is shorter overall time and reduced burden on a single context; the disadvantage is that it places high demands on task decomposition quality and result aggregation logic—if the delegation description is vague, the final report may contain omissions or misjudgments.

Usage Recommendations and Boundary Reminders

The value of this workflow lies in turning the AI Agent from a chat tool into an auditable penetration execution unit: exploration chains are traceable, assets and vulnerabilities have views, and reports can be exported. But its demands on the user are not low—authorization scope, safety boundaries, and constraints such as whether creating users is allowed all need to be clearly written in the instruction. The role of the penetration testing mode is to let the Agent work efficiently within a legal framework, not to replace responsibility-based judgment about the target system.

For readers with zero background, you can first reproduce the entire workflow on a local range, familiarize yourself with the sub-Agent delegation logic and report structure, and then migrate to real SRC projects.

Authorized Testing Framework refers to the scope explicitly defined in writing or electronically by the target system owner before penetration testing begins, typically including the list of testable IPs/domains, permitted techniques (such as whether brute force is allowed, whether account creation is allowed), the time window, and emergency contacts. In scenarios involving AI Agents, this framework needs to be translated into instruction constraints the Agent can understand, such as "do not create users," "stop upon finding the first vulnerability," and "do not perform in-depth exploitation." The reason is that the Agent lacks common-sense judgment about business impact; if boundaries are not written into the instruction, it may perform operations with side effects in order to fulfill the goal of "finding vulnerabilities." Therefore, the authorization framework is not only a legal compliance document but also the first technical guardrail constraining Agent behavior.

#DeepSeek Hermes#AI penetration testing#SRC vulnerability hunting#AI Agent#safety guardrails#DeepAgent#authorized testing
Share:

Related articles