security-harness-kit 0.4.3 → 0.4.5
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/README.md +9 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ With `shk`, you can:
|
|
|
28
28
|
- Mask sensitive content from stdin, text files, and Office documents (`.docx`, `.xlsx`, `.pptx`).
|
|
29
29
|
- Encrypt `.env` files, store private keys in the OS credential store, and run commands with decrypted values injected only at runtime.
|
|
30
30
|
- Install Git pre-commit hooks.
|
|
31
|
-
- Install managed hooks for Claude Code, Cursor, Codex, GitHub Copilot,
|
|
31
|
+
- Install managed hooks for Claude Code, Cursor, Codex, GitHub Copilot, Antigravity, and Windsurf.
|
|
32
32
|
- Preview metadata-only audit logs to understand blocked hook activity without storing detected values.
|
|
33
33
|
- Generate a GitHub Actions workflow that runs `shk scan` on every pull request.
|
|
34
34
|
- Diagnose ignore file and `.env` safety coverage.
|
|
@@ -154,10 +154,14 @@ shk init --yes --no-npm-hardening
|
|
|
154
154
|
|
|
155
155
|
shk scan .
|
|
156
156
|
shk scan . --json
|
|
157
|
+
shk scan . --json --with-value-hash
|
|
158
|
+
shk scan . --sarif
|
|
157
159
|
shk scan --staged
|
|
160
|
+
shk scan . --changed-since origin/main
|
|
158
161
|
shk scan --git-history
|
|
159
162
|
shk scan --git-history --preview
|
|
160
163
|
shk scan --git-history --ref HEAD~50..HEAD
|
|
164
|
+
shk allowlist suggest --from report-with-hashes.json --value-hash
|
|
161
165
|
|
|
162
166
|
shk mask < prompt.txt
|
|
163
167
|
shk mask --json < prompt.txt
|
|
@@ -197,7 +201,7 @@ shk hooks install-ai --tool windsurf
|
|
|
197
201
|
shk ci init github
|
|
198
202
|
shk ci init github --dry-run
|
|
199
203
|
shk ci init github --mode audit
|
|
200
|
-
shk ci init github --shk-version v0.4.
|
|
204
|
+
shk ci init github --shk-version v0.4.5
|
|
201
205
|
|
|
202
206
|
shk skills install
|
|
203
207
|
shk skills install --tool claude-code --global
|
|
@@ -239,8 +243,10 @@ See [Configuration](docs/configuration.md) for the full `shk.toml` reference, cu
|
|
|
239
243
|
- Document scanning extracts text from Office documents and text-layer PDFs. Image-only PDFs require OCR outside `shk`; when no text can be extracted, scan reports an informational skip finding.
|
|
240
244
|
- Office document masking writes a new `.docx`, `.xlsx`, or `.pptx` file and requires `--output`.
|
|
241
245
|
- `shk scan --git-history` scans committed blobs reachable from Git refs. Use `--preview` to inspect candidate counts before a broad history scan, and `--ref`, `--since`, or `--max-commits` to narrow the scope.
|
|
246
|
+
- `shk scan --changed-since <rev>` scans files changed on the current branch relative to a merge base with `<rev>`, which is useful for PR CI.
|
|
242
247
|
- Built-in detection is pattern-based and includes hand-tuned `shk` rules plus generated gitleaks-derived `secret.gitleaks.*` rules; use it as an AI/local workflow guardrail, not as a complete replacement for dedicated secret scanning platforms.
|
|
243
|
-
- JSON reports use `redacted_value: "[REDACTED]"
|
|
248
|
+
- JSON reports use `redacted_value: "[REDACTED]"`; `value_hash` is omitted unless `--with-value-hash` is passed.
|
|
249
|
+
- Value hashes are deterministic fingerprints keyed by public rule IDs. Low-entropy values can be recoverable by dictionary attack, so treat reports containing value hashes as sensitive artifacts.
|
|
244
250
|
- Hook audit logs contain metadata such as counts, tool name, hook phase, rule IDs, action categories, and display path; they do not store raw matched values, prompt bodies, or command text.
|
|
245
251
|
- Use `shk audit` to summarize `.shk/audit.log`; add `--no-paths` when path labels should not be printed.
|
|
246
252
|
- Allowlist `value_hash` entries are deterministic fingerprints for suppression, not cryptographic secret storage.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"hasInstallScript": true,
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"name": "security-harness-kit",
|
|
26
|
-
"version": "0.4.
|
|
26
|
+
"version": "0.4.5"
|
|
27
27
|
},
|
|
28
28
|
"node_modules/@isaacs/cliui": {
|
|
29
29
|
"engines": {
|
|
@@ -542,5 +542,5 @@
|
|
|
542
542
|
}
|
|
543
543
|
},
|
|
544
544
|
"requires": true,
|
|
545
|
-
"version": "0.4.
|
|
545
|
+
"version": "0.4.5"
|
|
546
546
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"artifactDownloadUrls": [
|
|
3
|
-
"https://github.com/Kazuki-tam/security-harness-kit/releases/download/v0.4.
|
|
3
|
+
"https://github.com/Kazuki-tam/security-harness-kit/releases/download/v0.4.5"
|
|
4
4
|
],
|
|
5
5
|
"bin": {
|
|
6
6
|
"shk": "run-shk.js"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"zipExt": ".tar.xz"
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
"version": "0.4.
|
|
88
|
+
"version": "0.4.5",
|
|
89
89
|
"volta": {
|
|
90
90
|
"node": "18.14.1",
|
|
91
91
|
"npm": "9.5.0"
|