dsh-redteam-model
SeaOf0
基于dsh web实现的多种模式,目的是服务于redteam进行授权的安全研究,覆盖渗透测试、红队评估、代码审计等范围领域,请勿用于非法行为。(允许二开,赋予模块各位自己的业务逻辑,方法论只有自己熟练的才好用,好的方法论=好的生态)
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Wang-Lin-Chang/dsh-cross-platform
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Part of the DSH plugin suite — six Apache-2.0 plugins for DeepSeek Harness.
Linux backend for dsh-witness and dsh-anchor. Linux sandbox recipes and process-identity utilities — every capability claim carries an experiment number and a control group. (macOS edition: dsh-macos.)
中文版见 README.zh-CN.md。
dsh-witness's Windows sandbox (six-dimension NTFS ACL closure) needs an equivalent on Linux. This package turns Linux sandbox recipes into components with measured backing:
| Capability | Linux recipe | Experiment verdict |
|---|---|---|
| Overwrite-proof | chattr +i + bubblewrap read-only view |
EXP-1 / EXP-3 (with control group) |
| Delete-proof | chattr +i + read-only view |
EXP-1 / EXP-3 |
| Forge-proof (lock/exit.txt) | chattr +i |
EXP-1 / smoke 12/12 |
| Filesystem isolation | bubblewrap read-only view (EROFS) — host and task see two views | EXP-3 |
| Process identity (three evidence) | /proc/<pid>/stat field 22 + btime |
EXP-6 |
| Exit protocol | EXIT:<code> (aligned with Windows) |
smoke 12/12 |
| Official recipe | Node --experimental-permission |
EXP-2 |
All experiments live in EXPERIMENTS.md: 9 verdicts, each with a control group (false-positive elimination). Core results:
test/witness-final-linux-test.ts)src/
├── detach-runner-linux.cjs # task runner (bash supervision + dual-mode sandbox, protocol fully aligned with Windows)
├── linux-backend.mjs # sandbox backend (chattr apply/verify/restore + capability self-report)
└── linux-utils.mjs # /proc start time + process liveness + exit-code protocol
# Install (git source, pinned tag — the pre-npm installation path)
dsh plugin --profile <name> add "github:Wang-Lin-Chang/dsh-cross-platform#v0.1.0"
import { LinuxSandboxBackend } from 'dsh-cross-platform'
const backend = new LinuxSandboxBackend('/path/to/job-dir')
backend.apply() // chattr +i evidence files (before task spawn)
backend.verify() // fail-closed self-check (aligned Windows EXIT:-998 semantics)
backend.restore() // restore after task death (registry terminal-state window)
Direct runner usage (same protocol as the Windows detach-runner.cjs):
node detach-runner-linux.cjs <jobDir> <outFile> <exitFile> <commandBase64> [bwrap]
chattr +i blocks all writes including pre-opened handles — EXP-8 architecture verdict). landlock is on the roadmap (EXP pending).ro-bind / → tmpfs /tmp → ro-bind jobDir.npm test # 12-scenario acceptance, Linux edition (needs bubblewrap; see EXPERIMENTS.md environment prep)
Apache-2.0
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: sandbox。