Introduction¶
DeepSeek Harness (DSH) extends its capabilities through plugins, exposing analysis functions directly at the tool invocation layer. The traditional approach is to have agents bridge to external services via MCP (Model Context Protocol), which requires maintaining JSON-RPC sessions, an additional transport layer, and process lifecycle management. For agents that frequently invoke operations such as binary analysis, disassembly, and sandbox execution, this intermediate layer adds latency and failure surface.
The dsh-wardbyte plugin integrates Wardbyte’s binary analysis capabilities into DSH as 26 first-level tools, eliminating MCP bridging, removing transport protocols, and removing runtime dependencies. Agents can directly invoke tools like bin_stats, parse_binary, capa_scan, and emulate_code to handle binary files just as they would any local tool.
Plugin Positioning¶
dsh-wardbyte is a native DeepSeek Harness (DSH) plugin that converts the Wardbyte binary analysis toolkit into 26 model-callable tools. Developed by maintainer JV-1054 and classified as a workflow plugin. The plugin has no external service dependencies; it drives the Wardbyte core engine directly through a persistent Python process, using direct invocation rather than protocol negotiation between the agent and the engine.
Core Features¶
The plugin provides 26 tools, organized into four categories:
Binary Analysis Tools (12)¶
bin_stats: File size, MD5/SHA1/SHA256 hashes, entropy, string count, with optional imphash/ssdeep/tlshparse_binary: Full structural parsing of ELF/PE/Mach-O via LIEFsection_info: Detailed information for each sectiondisassemble_bytes: Capstone disassembly with configurable offset, length, architecture, and instruction countfunc_xref: Function cross-references (LIEF + Capstone)bin_diff: Structural differences between two binary filesyara_scan: Local YARA rule scanningcapa_scan: FLARE capa capability analysis (cached by file version)binary_assessment: Comprehensive analysis (stats + parsing + cross-references + YARA + capa)strings_extract: Extract printable ASCII strings with byte offsets, with optional count limit and minimum lengthassemble_code: Assemble source code into machine code using Keystoneemulate_code: Execute machine code in a Unicorn sandbox with configurable base address, max instruction count, and timeout
Filesystem Tools (5)¶
fs_list: List directory contents (supports recursion)fs_read: Read file bytes (with optional offset and length)fs_stat: File/directory metadatafs_search: Search for text in filesfs_hash: Compute file hash (default sha256)
Code & Data Tools (4)¶
tree_parse: Syntax-aware parsing using Tree-sittersearch_text: Text search aliasjson_query: Safe dotted key-path or array index reads for JSONsqlite_readonly: Read-only SQLite queries with optional row limit
Analyst Notes Tools (5)¶
notes_list: List saved notesnotes_read: Read a single notenotes_save: Save a note (requires approve: true)notes_search: Search note contentnotes_delete: Delete a note (requires approve: true)
All tools return a unified Wardbyte envelope format: { success, data?, error?: { code, message, detail? } }. Failure cases (e.g., file not found, path rejection) are returned as structured payloads rather than interrupting the tool call.
Installation & Activation¶
1. Install the Wardbyte Core (Python)¶
The analysis engine is the wardbyte Python package. The repository publishes pre-built wheels, so no compiler is required:
pip install https://github.com/JV-1054/wardbyte-dsh/releases/download/v1.3.0/wardbyte-1.3.0-py3-none-any.whl
You can also install from source or build locally:
# Install from source release
pip install https://github.com/JV-1054/wardbyte-dsh/releases/download/v1.3.0/wardbyte-1.3.0.tar.gz
# Build from a local checkout
cd path/to/wardbyte
pip install .
Verify after installation:
python -c "import wardbyte; print(wardbyte.__version__)"
2. Install the DSH Plugin¶
Install via the plugin_manager tool in a DSH session:
plugin_manager { "action": "install_bundle", "target": "github:JV-1054/wardbyte-dsh" }
Or add the dependency to your profile’s package.json:
{
"dependencies": { "dsh-wardbyte": "github:JV-1054/wardbyte-dsh" },
"dsh": { "profile": { "bundles": ["dsh-wardbyte"] } }
}
3. Restart DSH¶
After installation, restart DSH. The 26 tools will appear in the agent’s tool table. If python is not in your PATH, you can set pythonPath in cordis.patch.yml.
Typical Usage¶
File Statistics & Parsing¶
// bin_stats { path: "worker/wardbyte_worker.py", include_imphash: true }
{
"success": true,
"data": {
"path": "worker/wardbyte_worker.py",
"size": 2436,
"md5": "4a7042d8df5a30bc4ac988c1dabb523e",
"sha1": "40fe39c389126c60098ee6b5d52d58069e745e67",
"sha256": "ea546706a5065f0e8b13cece6f034fd5b1d7d60efbacc75c68d6df85042c7a0f",
"entropy": 4.5965,
"strings_count": 56,
"strings_preview": ["…"],
"output_truncated": false
}
}
// parse_binary { path: "worker/wardbyte_worker.py" }
{
"success": true,
"data": {
"type": "PE",
"entry_point": 0x401000,
"sections": [
{
"name": ".text",
"virtual_address": 0x1000,
"size": 512,
"entropy": 6.2
},
// ...
]
}
}
Assembly & Sandbox Execution¶
// assemble_code { code: "mov eax, 1; ret" }
{
"success": true,
"data": {
"architecture": "x86-64",
"bytes": "b801000000c3",
"length": 6,
"instruction_count": 2,
"note": "Saving assembled output requires a separate save operation with operator approval."
}
}
// emulate_code { code_hex: "b801000000c3" }
{
"success": true,
"data": {
"architecture": "x86-64",
"registers": {
"eax": 1,
"rip": 0x1000
},
"memory": {
"0x1000": "b8 01 00 00 00 c3"
},
"finished": true,
"max_instructions": 1000
}
}
Use Cases & Caveats¶
- Suitable for scenarios requiring batch binary processing, hash and structural extraction, YARA and capa analysis, and sandbox execution of sample code.
- The plugin runs with the permissions of the current DSH process. The analysis engine is a separate Python process. Verify target file access permissions and security risks before invoking.
- Before installation, review the repository source code and license (MIT) to ensure it meets your use case and compliance requirements.
Summary¶
dsh-wardbyte natively integrates the Wardbyte binary analysis toolkit into DSH, providing 26 directly callable tool-level interfaces. Agents can perform file statistics, structural parsing, disassembly, cross-referencing, YARA scanning, capa capability analysis, code assembly, and sandbox execution, as well as filesystem and data queries. This direct invocation approach eliminates the additional session and process overhead introduced by MCP bridging, making it better suited for high-frequency, structured binary analysis workflows.
Plugin directory: https://www.skillhub.cn/plugins/JV-1054/wardbyte-dsh
GitHub: https://github.com/JV-1054/wardbyte-dsh