dsh-plugin-ctf: Organizing CTF Problem-Solving Skills by Challenge Type in DeepSeek Harness

Introduction

In authorized ranges or CTF competitions, challenge descriptions, attachments, analysis scripts, and writeups are often scattered across multiple directories; Web, cryptography, reverse engineering, Pwn, and other challenge types each depend on different toolchains. If you only ask scattered questions in a general conversation, the model lacks a unified way to create challenge profiles, skill entry points, and browser/script configuration, making review and reproduction costs relatively high.

DeepSeek Harness (DSH) extends session modes and skills through plugins. dsh-plugin-ctf, maintained by ClassicXTx and categorized as admin-security in the community catalog, provides a CTF Competition mode for DSH: it loads skills by challenge type and comes with Python analysis scripts and a Playwright MCP browser interface. The following introduces its positioning, capabilities, and installation/enablement methods.

What Is This

dsh-plugin-ctf is a CTF mode plugin for DeepSeek Harness (repository ClassicXTx/dsh-plugin-ctf). The README states that it covers Web, cryptography, reverse engineering, Pwn, forensics, and miscellaneous directions.

The plugin declares support for DeepSeek Harness 0.2.1-rc.2 (engines.dsh in package.json is =0.2.1-rc.2). Select CTF Competition in a new session to use this mode. The current package version is 1.2.1 and the license is MIT.

Core Features

Skill List

Skills are loaded with the CTF mode. The skills and their purposes given in the README are as follows:

Skill Purpose
ctf-workbench Challenge profiling, attachment inspection, tool selection
ctf-web Web vulnerabilities and protocol analysis
ctf-crypto Cryptographic algorithms, number theory, and constraint solving
ctf-reverse Static analysis, dynamic debugging, and emulation
ctf-pwn Binary vulnerabilities and exploitation
ctf-forensics Traffic, logs, files, and steganography
ctf-misc Encoding, restricted environments, and other miscellaneous topics
ctf-writeup Solving process and reproduction instructions
ctf-evidence-review Evidence verification, log timelines
ctf-audio-signals Audio channels, spectra, and audio steganography
ctf-web-state-timing Session state and timing experiments

Each topic entry corresponds to an adjacent guide.md and reference files, containing algorithms, commands, and examples.

How It Works

The README requires providing the challenge description, attachment locations, target scope, and flag format at the start. Raw attachments, analysis artifacts, and solving scripts are stored separately in the challenge directory.

The plugin is intended for authorized ranges and competitions. Target scope, rate limits, and specific rules of regions, organizations, and events should be written into the project’s AGENTS.md; the mode’s default prompt can be found in the repository at prompts/ctf.md.

Built-in Tools and Dependencies

The plugin provides 4 Python analysis scripts and a Playwright MCP browser interface. Python toolkits, WSL, Sage, Pwndbg, radare2, TShark, etc. need to be installed separately according to the needs of each challenge.

The Node-side dependency is @playwright/mcp (consistent between README and package.json). The reference materials for 7 topics come from ljagiello/ctf-skills (MIT); browser capabilities depend on Microsoft Playwright MCP. Licenses and attributions are in the repository’s THIRD_PARTY_NOTICES.md, and source versions and checksums are in sources.json.

Installation and Enablement

Installation commands should follow the README.

Plugin Manager

Enter the following in the DSH plugin manager:

https://github.com/ClassicXTx/dsh-plugin-ctf

Web CLI

dsh plugin --profile web add github:ClassicXTx/dsh-plugin-ctf#v1.2.1

Desktop CLI

Desktop requires launching once to create a profile, then exiting the app and using the Desktop’s built-in CLI to install. Example default path on Windows:

$desktopDsh = Join-Path $env:LOCALAPPDATA 'Programs/DeepSeek Harness/resources/runtime/cli/bin/dsh.cmd'
& $desktopDsh plugin --profile desktop add 'github:ClassicXTx/dsh-plugin-ctf#v1.2.1'

Reopen DSH after installation. The plugin is listed under the dsh-plugin topic on the GitHub community plugin topic page; the independent site catalog page is dsh-plugin-ctf on SkillHub.

Python Environment and Browser

Create a virtual environment in the plugin directory and install Python dependencies:

python -m venv .venv
# Linux/macOS
.venv/bin/python -m pip install -r requirements.txt
# Windows
.venv/Scripts/python.exe -m pip install -r requirements.txt

Download Chromium or reuse an existing browser:

npm run install:browser

Check tool entry points:

npm run doctor

Copy examples/ctf-plugin.json to $DSH_HOME/ctf-plugin.json and fill in the actual paths; you can also use the environment variable DSH_CTF_CONFIG to specify the config file. Browser connection methods, parameters, and output limits can be found in docs/configuration.md.

Typical Usage

  1. Install the plugin as described above and complete the ctf-plugin.json (or DSH_CTF_CONFIG) configuration.
  2. Create a new DSH session and select the CTF Competition mode.
  3. Provide the challenge description, attachment paths, target scope, and flag format in the conversation; ctf-workbench and other skills assist with profiling and tool selection.
  4. Use the corresponding skill for each challenge type (e.g., ctf-web, ctf-crypto); use Playwright MCP when a browser is needed; maintain analysis artifacts and solving scripts in the challenge directory when scripts are needed.
  5. For wrapping up, use ctf-writeup and ctf-evidence-review to organize the process and evidence chain.

The repository’s test instructions use synthetic attachments, local web pages, and mock models; full steps are available in tests/README.md.

Use Cases and Notes

Who it’s for: Participants who use DSH in authorized CTF or range environments to solve challenges by type, organize evidence, and write writeups; scenarios where skills and reference documentation are loaded along with the mode rather than requiring manual prompt pasting each time.

Runtime permissions: The plugin executes bash, file, and MCP capabilities with the permissions of the current DSH process. Before installation, you should read the source code, the MIT license, and THIRD_PARTY_NOTICES.md to confirm compliance with local security and competition rules.

Environment requirements: package.json requires Node ^22.19.0 || >=24.0.0 and alignment with DSH 0.2.1-rc.2; when versions do not match, follow the official README and release tags.

Ecosystem notes: DSH adopts an “everything is a plugin” extension approach; community catalogs such as SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer, and this article does not describe them as official app stores.

Conclusion

dsh-plugin-ctf breaks common CTF challenge types into loadable skills and pairs them with Python scripts, the Playwright browser, and configuration examples, making it easier to organize attachments and artifacts by challenge directory within DSH. Further details can be found in the GitHub repository README and the SkillHub catalog page.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye