dsh-redteam-model
SeaOf0
基于dsh web实现的多种模式,目的是服务于redteam进行授权的安全研究,覆盖渗透测试、红队评估、代码审计等范围领域,请勿用于非法行为。(允许二开,赋予模块各位自己的业务逻辑,方法论只有自己熟练的才好用,好的方法论=好的生态)
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:jerentpan-lab/dsh-source-ledger
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Author: jetpan (npm) ↔ jerentpan-lab (GitHub) | npm package | GitHub repo | install from GitHub:
dsh plugin --profile web add github:jerentpan-lab/dsh-source-ledger
Decision-grade claims must carry an inspectable source pointer (url / file:line /
message id). Claims without one are flagged [no-source] and cannot be verified.
source_audit reports the source-tag rate and returns a random sample for independent
recomputation.
Motivation: agents drift when the same fact has two executable sources. "Outside the session / without a source, it is not a fact."
dsh plugin --profile web add dsh-source-ledger
source_assert { claim, source?, owner?, recompute? }source_verify { id, note? } — only works when a source existssource_audit { sampleN? } — source rate + random samplesource_list { onlyMissingSource? }{ "ledgerFile": "~/.dsh/source-ledger.jsonl" }
ledgerFile: append-only ledger path (default ~/.dsh/source-ledger.jsonl, env DSH_SOURCE_LEDGER_FILE).ConfigError.config.example.json. Run npm run verify for tests + pack checks.node examples/demo.mjs
node bench/bench.mjs writes bench/RESULTS.md (this host: 1000 entries+audit p50 ≈ 3.0ms, 10000 ≈ 17.2ms).
| Symptom | Cause | Fix |
|---|---|---|
ConfigError ... unknown key |
typo/unsupported config key | use config.example.json |
ConfigError ... pointerTypes |
unknown pointer type | allowed: url, file, file-line, message, commit, stdout |
source_assert: claim is required |
empty claim | pass a claim |
verify: entry ... has no inspectable pointer |
weak/none source | assert with a pointer type |
source changed since assert |
file/url content hash differs | re-assert with the new content |
source unreachable |
source file/url missing | restore source or re-assert |
source_verify: id is required |
missing id | pass an entry id |
report not written |
bad outFile path | use an absolute writable path |
npm run verify
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: audit。