@lornatang/dsh-codex-security 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +135 -118
- package/README.md +196 -196
- package/README.zh.md +196 -196
- package/docs/ARCHITECTURE.md +59 -59
- package/docs/ARTIFACTS.md +49 -49
- package/docs/CODEX-COMPATIBILITY.md +17 -17
- package/docs/SPEC.md +43 -43
- package/docs/TOOLS.md +364 -364
- package/docs/VALIDATION.md +33 -33
- package/docs/superpowers/plans/2026-11-16-deep-scan.md +71 -71
- package/docs/superpowers/specs/2026-11-16-deep-scan-design.md +31 -31
- package/lib/constants.js +1 -1
- package/lib/git.js +2 -0
- package/lib/target.js +8 -2
- package/lib/types/constants.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/util.js +131 -10
- package/package.json +131 -131
- package/schemas/coverage.schema.json +136 -136
- package/skills/README.md +122 -122
- package/skills/assess-patch-risk/SKILL.md +10 -10
- package/skills/attack-path-analysis/SKILL.md +10 -10
- package/skills/deep-security-scan/SKILL.md +15 -15
- package/skills/define-security-policy/SKILL.md +10 -10
- package/skills/finding-discovery/SKILL.md +10 -10
- package/skills/fix-finding/SKILL.md +14 -14
- package/skills/propose-security-hardening/SKILL.md +10 -10
- package/skills/track-findings/SKILL.md +12 -12
- package/skills/validation/SKILL.md +10 -10
- package/skills/verify-fix/SKILL.md +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,118 +1,135 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## [0.1.
|
|
4
|
-
|
|
5
|
-
###
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
-
|
|
83
|
-
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
-
|
|
118
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.9] - 2026-11-17
|
|
4
|
+
|
|
5
|
+
### Security
|
|
6
|
+
|
|
7
|
+
- Contain evidence reads to the scan target: sanitize and validate finding location paths, rejecting traversal, absolute paths and symlink escapes before reading any host file.
|
|
8
|
+
- Eliminate catastrophic backtracking (ReDoS) in scope glob matching by collapsing nested quantifiers and matching include/exclude globs with a cached linear-time matcher.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Read at most the requested byte limit when loading artifacts instead of buffering entire files into memory.
|
|
13
|
+
- Create atomic-write temporary files exclusively (`wx`) with 96-bit random suffixes.
|
|
14
|
+
- Reject option-like Git revision arguments (leading `-`) before invoking `rev-parse`.
|
|
15
|
+
|
|
16
|
+
### Performance
|
|
17
|
+
|
|
18
|
+
- Compile scope globs once and cache them, removing per-file/per-pattern RegExp recompilation during inventory walks.
|
|
19
|
+
|
|
20
|
+
## [0.1.8] - 2026-11-16
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Coordinate independent, restricted Deep review workers with bounded concurrency, attempts, no-new stopping and wall-clock time.
|
|
25
|
+
- Persist campaign progress and recovery claims, with authenticated cross-process resume and cancellation.
|
|
26
|
+
- Add Codex-compatible skill workflows and artifact contracts, plus cross-platform worker, recovery and concurrency tests.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- Bind worker reads and evidence to verified target objects and file snapshots; keep incomplete coverage and conflicting findings visible.
|
|
31
|
+
- Serialize shared indexes and scan mutations across processes and tolerate transient Windows file-sharing conflicts during atomic replacement.
|
|
32
|
+
- Fail closed when target inventory cannot be enumerated or Git metadata cannot be resolved.
|
|
33
|
+
- Use the macOS 26 ARM runner when macOS 15 ARM runners are unavailable.
|
|
34
|
+
|
|
35
|
+
## [0.1.7] - 2026-11-16
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- Load platform-specific native export binaries without dependency install scripts,
|
|
40
|
+
so a new DSH profile can install the bundle under pnpm's default build policy.
|
|
41
|
+
|
|
42
|
+
## [0.1.6] - 2026-11-15
|
|
43
|
+
|
|
44
|
+
### Changed
|
|
45
|
+
|
|
46
|
+
- Allow safe links inside scan storage and Git metadata while rejecting direct or transitive aliases of an export destination.
|
|
47
|
+
- Reduce duplicate protected-tree checks and inspect reachable directories concurrently with bounded work.
|
|
48
|
+
- Add cross-platform tests for linked directories, cycles, dangling targets and concurrent retargeting.
|
|
49
|
+
|
|
50
|
+
## [0.1.5] - 2026-11-15
|
|
51
|
+
|
|
52
|
+
### Fixed
|
|
53
|
+
|
|
54
|
+
- Revalidate scan storage and Git metadata at export checkpoints, including when a directory snapshot becomes a Git repository.
|
|
55
|
+
- Reject aliases inside protected storage and logical output paths that escape through links.
|
|
56
|
+
- Cover POSIX moves, protected-root changes and Git metadata redirection with cross-platform regression tests.
|
|
57
|
+
|
|
58
|
+
## [0.1.4] - 2026-11-15
|
|
59
|
+
|
|
60
|
+
### Fixed
|
|
61
|
+
|
|
62
|
+
- Pin export directory identities across parent creation, exclusive publication and cleanup, detecting directory moves while preserving existing export boundaries.
|
|
63
|
+
- Add cross-process race tests and Linux, macOS and Windows CI coverage. This release is available on GitHub only; no npm version is published.
|
|
64
|
+
|
|
65
|
+
## [0.1.3] - 2026-11-15
|
|
66
|
+
|
|
67
|
+
### Fixed
|
|
68
|
+
|
|
69
|
+
- Prevent exports from replacing existing files or escaping through symlinked directories, and return complete large export documents.
|
|
70
|
+
- Include a GitHub release archive; npm is not published for this release.
|
|
71
|
+
|
|
72
|
+
All notable changes to this project will be documented in this file.
|
|
73
|
+
|
|
74
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
75
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
76
|
+
|
|
77
|
+
## [0.1.2] - 2026-11-15
|
|
78
|
+
|
|
79
|
+
### Fixed
|
|
80
|
+
|
|
81
|
+
- Declare the required DSH skill service and register loadable bundled skills.
|
|
82
|
+
- Validate tool arguments and JSON output through the real DSH host contract.
|
|
83
|
+
- Bind accurate target scopes, file contents and complete Git diffs, including untracked files.
|
|
84
|
+
- Require explicit review coverage and diff dispositions before sealing; reject changed targets,
|
|
85
|
+
incompatible comparisons and writes to sealed artifacts.
|
|
86
|
+
- Serialize scan mutations, rebuild missing indexes and validate sealed JSON against the bundled schemas.
|
|
87
|
+
|
|
88
|
+
### Added
|
|
89
|
+
|
|
90
|
+
- A default-mode start tool, a diff review-item update tool and real-host regression tests.
|
|
91
|
+
|
|
92
|
+
### Changed
|
|
93
|
+
|
|
94
|
+
- Publish the plugin as the scoped npm package `@lornatang/dsh-codex-security`. The
|
|
95
|
+
initial bare `dsh-codex-security@0.1.0` publish is deprecated in favour of the scoped
|
|
96
|
+
name; install with `dsh plugin --profile <profile> add @lornatang/dsh-codex-security`.
|
|
97
|
+
- Ship the English documentation and examples with the package; align the architecture,
|
|
98
|
+
tool reference and skill workflows with the implementation.
|
|
99
|
+
- Rewrite the README to the package-bundle documentation convention and add a Chinese
|
|
100
|
+
translation; the package now ships `README.md` and `README.zh.md`.
|
|
101
|
+
- Publish `cordis.patch.yml` through the package `exports` map.
|
|
102
|
+
|
|
103
|
+
## [0.1.0] - 2026-11-13
|
|
104
|
+
|
|
105
|
+
Initial public release of the DeepSeek Harness port of the codex-security scan model.
|
|
106
|
+
|
|
107
|
+
### Added
|
|
108
|
+
|
|
109
|
+
- DSH plugin `codex-security` (`dsh-codex-security`) with a loader patch row,
|
|
110
|
+
a host plugin entry point, HTTP routes under `/plugins/codex-security` and a
|
|
111
|
+
**Codex Security** settings section in the web UI.
|
|
112
|
+
- 27 `codex_security_*` host tools covering setup/target inspection, standard,
|
|
113
|
+
prompt-only and deep scan lifecycle, discovery candidates, validations, attack
|
|
114
|
+
paths, artifacts, drafts, findings and triage, diff review items, export and scan
|
|
115
|
+
comparison.
|
|
116
|
+
- Ten agent skills registered from `skills/`: `security-scan`,
|
|
117
|
+
`security-diff-scan`, `deep-security-scan`, `fix-finding`, `verify-fix`,
|
|
118
|
+
`triage-finding`, `threat-model`, `track-findings`,
|
|
119
|
+
`resolve-dependency-alert` and `vulnerability-writeup`.
|
|
120
|
+
- Sealed scan contract adapted from OpenAI codex-security: `findings.json`,
|
|
121
|
+
`coverage.json`, `scan-manifest.json` and `report.md`, with stable
|
|
122
|
+
`csf_`/`occ_` ids and `codex-security/v1` fingerprints.
|
|
123
|
+
- Deep-scan orchestration with worker count, discovery-run budget,
|
|
124
|
+
stop-after-no-new and time limits recorded on the scan.
|
|
125
|
+
- Diff scanning for pull requests, commit ranges, branches and working trees, with
|
|
126
|
+
per-file review items.
|
|
127
|
+
- Exports in SARIF 2.1.0, JSON, CSV and Markdown, plus a `failOnSeverity`
|
|
128
|
+
policy gate.
|
|
129
|
+
- Web workbench: status header, scan list, findings table with severity chips and
|
|
130
|
+
triage state, coverage summary and export links.
|
|
131
|
+
- Configuration through Schemastery: `stateDir`, `maxFiles`, `maxFileBytes`,
|
|
132
|
+
`defaultMode`, `failOnSeverity`, `allowExportOutsideWorkspace`,
|
|
133
|
+
`maxScanAgeDays`, `deepWorkers` and `deepMaxDiscoveryRuns`.
|
|
134
|
+
- Documentation: README, architecture, tool reference,
|
|
135
|
+
artifact contract, validation guide, and a GitHub Actions CI workflow.
|