jso-protector 0.4.8 → 0.4.10

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 CHANGED
@@ -1,1168 +1,1195 @@
1
- # Changelog
2
-
3
- ## 0.4.8 - 2026-09-01
4
-
5
- The rate-limit message a first run actually sees.
6
-
7
- - A keyless run that tripped the free-tier cap used to print
8
- `API returned non-JSON response (429): The custom error module does not
9
- recognize this error.` That sentence was IIS's, not ours: the server writes a
10
- proper JSON body, and IIS's custom-error module was discarding it before it
11
- left the machine. Fixed server-side; the message now says which of the two
12
- ceilings was hit and how to raise it.
13
- - The CLI no longer appends its paid-plan hint to a 429. The word "limit" in a
14
- rate-limit message matched the billing regexp, so someone with no account was
15
- being told to go check their subscription state.
16
- - `--help` now shows the positional form. `jso-protector app.js` has always
17
- worked and writes `app-obfuscated.js` beside the input - the same default the
18
- competitor's CLI uses - but nothing in the help output said so, so anyone
19
- arriving with that muscle memory had no way to find it.
20
-
21
- ## 0.4.7 - 2026-08-31
22
-
23
- Attribution only. No behaviour changes.
24
-
25
- - The dashboard links the CLI opens now carry a source tag: `src=cli-login`
26
- from `login`, and `src=cli-nokey` / `src=cli-nopwd` from the missing-credential
27
- errors. A sign-up that starts at the CLI was previously indistinguishable from
28
- a web sign-up, which made the free first run impossible to measure.
29
- - Held back until the site could actually read the tag. It was being lost twice
30
- on the way: the dashboard bounced signed-out visitors to sign-in without the
31
- query string, and the sign-in page then hardcoded its own tag over whatever
32
- arrived. Both are fixed and live, verified end to end before this release.
33
-
34
- ## 0.4.6 - 2026-08-31
35
-
36
- Documentation only. No behaviour changes.
37
-
38
- - **The README said you needed an API key to use this package.** Since 0.4.5
39
- that is false for a first run, and it was the first thing anyone read on
40
- npmjs.com - so the page was arguing against the feature the release shipped.
41
- The quickstart now says no account is needed, "What you need" answers
42
- "nothing, to start", and the payment section describes the free tier and where
43
- it ends instead of claiming the package unlocks nothing on its own.
44
- - The quickstart installs `javascriptobfuscator-com` and calls
45
- `javascriptobfuscator`, the current names.
46
-
47
- ## 0.4.5 - 2026-08-31
48
-
49
- - **The first command now works without an account.** With no credentials at
50
- all the CLI sends the request anonymously and the service runs it on the free
51
- tier - up to 20 files and 200 KB per request, no VM protection, rate limited
52
- per IP. You get real protected output instead of an error, and the run says
53
- so on stderr. `javascriptobfuscator login` switches to your plan.
54
- - Half-configured credentials are still an error. Only *no* credentials means
55
- anonymous, so a key that stopped resolving cannot silently downgrade a paid
56
- build to the free tier.
57
-
58
- ## 0.4.4 - 2026-08-31
59
-
60
- - **`javascriptobfuscator login` saves your credentials once, for every project
61
- on the machine.** Getting a first protected build used to take about seven
62
- steps: install, hit the error, find the site, register, verify email, locate
63
- the dashboard, copy two values, work out two platform-specific environment
64
- variable names, set them, and run again - then set them again in the next
65
- shell. `login` opens the dashboard, takes the two values (the password is not
66
- echoed), and stores them in `~/.jso-protector/credentials.json`.
67
- - `javascriptobfuscator logout` removes them.
68
- - Stored credentials are resolved **last**, after an explicit flag, a project
69
- config and the environment variables, so no existing CI setup changes
70
- behaviour.
71
- - The missing-credential errors now name `login` as the fastest fix.
72
- - The store is written 0600. That is real protection on POSIX; Windows does not
73
- honour the mode, so there it is only as protected as your user profile - the
74
- same position as `~/.npmrc`.
75
-
76
- ## 0.4.3 - 2026-08-30
77
-
78
- Error messages only. No behaviour changes.
79
-
80
- - **The "Missing API key" error now says where to get one.** It previously named
81
- three places to *put* a key and no place to *obtain* one, which left a first-time
82
- user with a dead end: measured against `javascript-obfuscator`, their first
83
- command emits working protected output while ours printed this error. The
84
- message now links the dashboard page that issues a free key, and the npm setup
85
- guide. Same for "Missing API password", which is shown beside the key.
86
- - Applied at all six sites - the protect path, `--doctor`, and config validation -
87
- so the guidance is the same wherever you hit it.
88
- - Also published under the package's new name, `javascriptobfuscator-com`.
89
-
90
- ## 0.4.2 - 2026-08-27
91
-
92
- Metadata only. No behaviour changes.
93
-
94
- - **The package has a public source repository**:
95
- [richtexteditor/jso-protector](https://github.com/richtexteditor/jso-protector).
96
- npm now shows Repository and Issues links instead of nothing, which for a
97
- security tool is the difference between auditable and "trust us". The
98
- repository holds this package and nothing else - the protection engine runs
99
- on the hosted API, or on your machine through the bundled `jso-local`
100
- executable, and is not part of it.
101
- - `bugs` points at GitHub issues and support@javascriptobfuscator.com.
102
-
103
- ## 0.4.1 - 2026-08-27
104
-
105
- Documentation only. No behaviour changes: the CLI, the Node API, the plugins,
106
- and the protection engine are byte-for-byte the same as 0.4.0.
107
-
108
- - **The npm page told visitors to install from a local path.** The README's
109
- first instruction was `npm install --save-dev ./packages/jso-protector`, and
110
- a later paragraph said the package was "intentionally local-only" and should
111
- not go in a public registry — text written while it was, and left in place
112
- when it was published. Someone arriving from npm search read an install
113
- command that could not work and a claim that this was not a real product.
114
- The first screen now says what the package does, installs from the registry,
115
- and shows a two-line example.
116
- - **Migration from another obfuscator is no longer buried.**
117
- `--migrate-javascript-obfuscator` and `--migrate-js-confuser` convert an
118
- existing config in one command; that was documented 1,500 lines down. It is
119
- now on the first screen, with `--list-migration-map`, `--explain-compat`,
120
- and `--competitor-gap-report` beside it.
121
- - **`RELEASE.md` ships in the tarball and described the opposite of reality** —
122
- `private: true`, `UNLICENSED`, and a publish guard that "should fail". It is
123
- now the actual release runbook, including the site artifacts and checksums a
124
- version bump has to keep in step.
125
- - **Package metadata**: the description names what the tool does and the
126
- toolchain it plugs into rather than calling itself an HTTP API wrapper, and
127
- the keywords gained the terms people actually search for (`obfuscator`,
128
- `code-protection`, `source-code-protection`, `anti-tamper`, `typescript`).
129
- - Workspace and tarball install instructions still exist, under "Working from
130
- a local checkout", where they belong.
131
-
132
- ## 0.4.0 - 2026-08-26
133
-
134
- - **Named configuration sets now protect.** `namedSets` — different protection
135
- profiles for different parts of one app in a single build — had its schema,
136
- resolver and tests in the package since the baseline but was never wired
137
- into the protect flow; a config carrying it validated and was silently
138
- ignored. It now works in both the CLI and the Node API (`protectFiles`):
139
- each named set becomes its own API round with the baseline options plus the
140
- set's preset block plus the set's own options; first matching set wins per
141
- file; files matching no set keep the baseline exactly. The JSON summary
142
- gains `namedSetGroups` (and `buildIds` when rounds produce multiple
143
- reports); the manifest spans every group. A set the plan cannot afford
144
- fails its own round with the normal API error and leaves other groups
145
- untouched.
146
- - **`TargetVersion` and `DownlevelIteration` are now first-class.** Both
147
- engine options appear in `--list-options` (category `output`) and gain
148
- camelCase config aliases `targetVersion` (`"es5"`/`"modern"`) and
149
- `downlevelIteration` (spec-faithful ES5 for-of lowering: lazy stepping +
150
- IteratorClose, like TypeScript's `downlevelIteration`; off by default
151
- because it adds a per-step call on arrays; no effect on the modern target).
152
- The raw option names worked before through generic passthrough; now they
153
- are documented and validated.
154
- - `--seed` is documented in `--help` (reproducible builds; omit for the
155
- default polymorphic output).
156
-
157
- ## 0.3.2 - 2026-08-10
158
-
159
- - The shipped CI templates (all 13) now list `--local` in their
160
- "Optional: migration and supply-chain checks" discovery block, with its
161
- constraint attached: on-runner protection, no source upload, Windows agents
162
- only. That block exists so users of non-GitHub CI systems can find a
163
- capability without reading the docs site, and source-local protection was
164
- the one capability missing from it.
165
-
166
- ## 0.3.1 - 2026-08-10
167
-
168
- - Documentation accuracy only, no behaviour change. The "Payment and API
169
- Access" section still described the package as a client for the hosted API
170
- and listed uploading source as an unconditional step, which stopped being
171
- true in 0.3.0. It now states that `--local` keeps the source body on the
172
- build machine while entitlement is still enforced server-side by a
173
- source-free plan check.
174
-
175
- ## 0.3.0 - 2026-08-10
176
-
177
- - **`--local` protects without sending source.** The CLI can now run the
178
- `jso-local` executable from the Windows desktop download (`cli/jso-local.exe`)
179
- instead of POSTing source to the hosted API. Resolution order is
180
- `--local-exe`, `JSO_LOCAL_EXE`, then the usual desktop install locations;
181
- config equivalents are `local` and `localExe`.
182
- - The local path is a transport swap, not a second implementation: it exchanges
183
- the same request and response shapes the hosted endpoint uses, so options,
184
- manifests, evidence packets, and size budgets behave identically. An option
185
- that works hosted works locally by construction.
186
- - Honest boundaries, enforced rather than documented: a source-free plan check
187
- still runs online (Local Advanced is a paid capability), the payload holding
188
- source and credentials is deleted after each run, and a build that asks for
189
- VM bytecode protection fails with a clear message instead of silently
190
- shipping weaker output.
191
- - Corrected README copy that said protection workflows "do not meet a policy
192
- that forbids source transfer" - true when written, false as of this release.
193
-
194
- ## Native string splitting (2026-08-03)
195
-
196
- - `splitStrings` and `splitStringsChunkLength` now map directly to native `SplitStrings` and `SplitStringsChunkLength` engine options instead of migration-review warnings.
197
- - Eligible literals split into fixed-length concatenated chunks. Chunk length is bounded to 1-1024 and defaults to 10; directives, reserved literals, object keys, template segments, and mixed-server markers remain intact.
198
- - CLI/config/Node API mappings, wire schemas, option discovery, ASP.NET model binding, and executable engine regression coverage ship together.
199
- - JS-Confuser `stringSplitting` now maps approximately to the same native transform: booleans map directly, positive probabilities enable it, and custom selector functions remain explicit manual-review inputs.
200
- - Splitting preserves dynamic-import and static-require specifiers for bundler discovery and never cuts a UTF-16 surrogate pair; executable regressions cover module linking, CommonJS resolution text, emoji values, and self-compressed output.
201
- - Quoted class method, accessor, and field definition names remain literal. An adversarial class-field case previously failed during protection after the name became a binary expression; normal and self-compressed class-member execution now have permanent coverage.
202
- - `stringArrayIndexShift` now maps approximately to native `StringArrayIndexShift`. Enabling it adds a deterministic nonzero one-slot offset to plain and encrypted string tables; it does not reproduce the competitor's randomized shift magnitude.
203
- - `stringArrayShuffle` now maps directly to native `StringArrayShuffle`. The engine shuffles unique moved strings with per-build entropy, or reproducibly under `Seed`, and rewrites every lookup before plain or encrypted table emission.
204
- - `stringArrayRotate` now maps directly to native `StringArrayRotate`. It applies a nonzero per-build cyclic rotation, rewrites every lookup, and composes with shuffle, index shifting, encryption, and seeded builds.
205
- - `stringArrayIndexesType` now maps directly to native `StringArrayIndexesType`, supporting `hexadecimal-number`, `hexadecimal-numeric-string`, and mixed lists. Numeric strings are explicitly coerced before array lookup so hexadecimal property text cannot silently return `undefined`.
206
- - `stringArrayThreshold` now maps directly to a native 0-1 per-unique-literal probability gate. Duplicate values receive one stable decision, zero moves nothing, one moves everything eligible, and `Seed` makes partial selection reproducible.
207
- - `stringArrayCallsTransform` and `stringArrayCallsTransformThreshold` now map directly to native secondary index-table indirection. The engine emits nested lookups for selected calls, supports 0-1 probability, and composes with shifting, shuffling, rotation, encryption, index representations, compression, and seeded builds.
208
- - String-array wrapper count, chaining, parameter ceiling, and type now map to native root-level wrappers. Variable aliases and multi-parameter function wrappers execute through optional predecessor chains; count is approximate because competitor per-function-scope placement is not reproduced.
209
- - `transformObjectKeys` maps approximately to native safe data-key transformation. Identifier and quoted data keys become computed moved-string lookups; numeric keys, methods/accessors, shorthand-sensitive members, and `__proto__` remain literal to preserve semantics.
210
-
211
- ## 0.2.1 - 2026-07-13
212
-
213
- - Added OIDC/SAML configuration validation, organization directory behavior, and a bearer-authenticated SCIM 2.0 user lifecycle core to governance.
214
- - Added versioned managed Web Integrity policies, monitor/block decisions, incident deduplication and workflow, plus active blocking for unknown dynamic scripts.
215
- - Exported the managed integrity, third-party inventory, and countermeasure runtime entry points.
216
-
217
- ## 0.2.0 — 2026-05-19
218
-
219
- - Added `--report <file>` flag. After a successful run, writes the full API
220
- response JSON (BuildId, PolymorphismFingerprint, GlobalIdentifierMap,
221
- MemberIdentifierMap, audit metadata) to the given path. Strips the heavy
222
- file payload before persisting since the protected source is already
223
- written to `config.output`. Pairs with `jso-symbolicate`.
224
- - Added `--label <value>` flag. Tags the API request with a release label
225
- that appears as `ReleaseLabel` in the JSO dashboard audit log. Also reads
226
- `JSO_LABEL` / `JAVASCRIPT_OBFUSCATOR_LABEL` from the environment.
227
- - `--json` output now includes `buildId`, `polymorphismFingerprint`, and
228
- `label` fields so CI scripts can capture them without a second read of the
229
- report file.
230
- - All 149 existing CLI unit tests still pass.
231
-
232
- ## Unreleased
233
-
234
- ### Runtime recovery and governance foundations (2026-07-13)
235
-
236
- - Added bounded browser-side `SelfHealing` for post-startup self-defending
237
- mutations, corrected the integrity baseline to hash the constructed function
238
- representation, and added `reload`, `callback`, and `degrade` response modes.
239
- - Added `jso-protector/governance` with local RBAC, scoped-token descriptors,
240
- and SHA-256 hash-chained audit events. Hosted SSO/SCIM remains explicitly out
241
- of scope for this local module.
242
-
243
- ### Runtime incident action plans (2026-06-12)
244
-
245
- - Dashboard Monitoring JSON/CSV exports now carry source-free per-incident
246
- action plans with next owner, evidence packet, response due state, status
247
- transition, acknowledgement requirement, and next action.
248
- - `--runtime-incident-evidence` preserves those action plans in Markdown and
249
- JSON, adds an Incident Action Plan table, and prompts BYO AI or internal
250
- reviewers about overdue incident owners before external handoff.
251
-
252
- ### VM marker ergonomics (2026-06-12)
253
-
254
- - VM protection now accepts `// @virtualize`, `/* @virtualize */`, and
255
- `/** @virtualize */` markers immediately before supported synchronous
256
- function declarations. The website pipeline normalizes block and JSDoc
257
- marker forms before invoking the VM sidecar, removing a silent-miss setup
258
- trap from the VM beta flow.
259
- - The VM proof static guard now checks the server-side normalizer and public
260
- docs so marker support cannot drift back to line-comment-only wording.
261
-
262
- ### Parser engine compatibility smoke (2026-06-12)
263
-
264
- - `tools/verify-parser-engine.ps1` now runs a multi-root compatibility smoke
265
- after the main parser conformance harness. The smoke compiles the legacy root
266
- `App_Code/JScriptProtectorV2` source tree and the framework
267
- `JScriptCodeDom` source tree, then verifies the Cesium-style `?.25`,
268
- optional-chain, nullish, and `.5e3` leading-dot exponent cases.
269
- - Archive hygiene now requires the new `compat-run.ps1` and
270
- `compat-smoke.cs` files so deployment packages include the same parser drift
271
- guard used locally.
272
-
273
- ### PCI DSS review assistant (2026-06-08)
274
-
275
- - `jso-protector compliance pci-dss-v4` Markdown and JSON now include a
276
- source-free PCI DSS Review Assistant for BYO AI or internal reviewer triage.
277
- - The assistant turns evidence gaps, signed-release proof, script
278
- authorization, observed script drift, header change evidence, runtime
279
- incident routing, and QSA handoff boundaries into checkout-owner actions
280
- without sharing source code, protected output, raw script rows, raw response
281
- headers, raw incident payloads, payment-card data, provider keys, customer
282
- data, or secrets.
283
-
284
- ### Runtime defense review assistant (2026-06-08)
285
-
286
- - `--runtime-defense-review` Markdown and JSON now include a source-free
287
- Runtime Defense Review Assistant for BYO AI or internal reviewer triage.
288
- - The assistant turns runtime behavior scope, monitoring handoff,
289
- countermeasure policy, domain/date lock smoke, source-reading compatibility
290
- scan, release metadata, and protected-build smoke into owner prompts without
291
- sharing source code, protected output, domains, dates, redirect URLs, beacon
292
- URLs, countermeasure values, raw config files, API credentials, provider
293
- keys, collector tokens, customer data, or secrets.
294
-
295
- ### Identifier cache review assistant (2026-06-08)
296
-
297
- - `--identifier-cache-review` Markdown and JSON now include a source-free
298
- Identifier Cache Review Assistant for BYO AI or internal reviewer triage.
299
- - The assistant turns deterministic cache assumptions, custom dictionary
300
- replacement, reserved-name coverage, release metadata, and protected-build
301
- smoke into owner prompts without sharing source code, protected output, cache
302
- contents, dictionary values, prefixes, reserved-name expressions, raw config
303
- files, API credentials, provider keys, customer data, or secrets.
304
-
305
- ### Migration review assistant (2026-06-08)
306
-
307
- - `--migration-review` Markdown and JSON now include a source-free Migration
308
- Review Assistant for BYO AI or internal reviewer triage.
309
- - The assistant turns manual review tracks, source-map policy,
310
- identifier-cache replacement, runtime-defense behavior, source-reading
311
- command boundaries, release metadata, and protected-build smoke into owner
312
- prompts without sharing source code, protected output, source maps, cache
313
- contents, raw config files, API credentials, provider keys, customer data, or
314
- secrets.
315
-
316
- ### Competitor gap review assistant (2026-06-08)
317
-
318
- - `--competitor-gap-report` JSON and text output now include a source-free
319
- Competitor Gap Review Assistant for BYO AI or internal reviewer triage.
320
- - The assistant turns gap prioritization, partial-parity validation, triggered
321
- migration limitations, source-reading scan boundaries, vendor-claim
322
- freshness, and plan handoff into owner prompts without sharing source code,
323
- protected output, API credentials, provider keys, customer data, or secrets.
324
-
325
- ### Source-map evidence review assistant (2026-06-08)
326
-
327
- - `--source-map-evidence` now includes a source-free Source Map Review
328
- Assistant for BYO AI or internal reviewer triage.
329
- - The assistant turns leak cleanup, manifest verification, secure debugging
330
- exceptions, bundler cleanup order, and clean reviewer handoff into owner
331
- prompts without sharing source code, protected output, raw `.map` files,
332
- source-map contents, original source paths, customer data, or secrets.
333
-
334
- ### VM proof review assistant (2026-06-08)
335
-
336
- - `--vm-proof-pack` now includes a source-free VM Proof Review Assistant for
337
- BYO AI or internal reviewer triage.
338
- - The assistant turns failed proof checks, VM warnings, cold sensitive
339
- function scope, hot-path risk, build identity, and protected-build smoke
340
- evidence into owner prompts without sharing source code, protected output,
341
- VM bytecode, source maps, provider keys, customer data, or secrets.
342
-
343
- ### Deployment hygiene evidence packet (2026-06-08)
344
-
345
- - Added `--deployment-hygiene-evidence <file>` and
346
- `--deployment-hygiene-output <file>` to turn
347
- `tools/Build-UpdatedArchives.ps1 -ReportPath` JSON into a source-free
348
- archive/deployment hygiene reviewer packet.
349
- - The packet summarizes archive names, entry counts, byte sizes, missing
350
- required entries, blocked entries, blocked category booleans, exclusion
351
- policy, operator checklist, rotation triggers, and hygiene-report SHA-256
352
- without including `Web.config` contents, raw secrets, provider keys,
353
- database strings, host-specific transforms, customer data, or source code.
354
- - The command writes failed packets before exiting nonzero when archive
355
- hygiene is blocked, and includes a Deployment Hygiene Review Assistant for
356
- BYO AI or internal reviewers.
357
-
358
- ### Runtime incident review assistant (2026-06-08)
359
-
360
- - `--runtime-incident-evidence` now includes a source-free Runtime Incident
361
- Review Assistant for BYO AI or internal reviewer triage.
362
- - The assistant turns urgent response, repeated-signal correlation, dashboard
363
- status actions, response-window decisions, and alert-routing handoff into
364
- owner prompts without sharing source code, raw incident payloads, collector
365
- tokens, customer data, or secrets.
366
-
367
- ### AI-resistance review assistant (2026-06-08)
368
-
369
- - `--ai-resistance-evidence` now includes a source-free Review Assistant
370
- Packet for BYO AI or internal reviewer triage.
371
- - The packet turns failed required checks, missing attacker-model review
372
- tracks, VM scope, runtime evidence, compatibility proof, and planned
373
- Resistance Score wording into owner actions without sending source code,
374
- protected output, source maps, provider keys, or secrets.
375
- - Text output now renders the assistant packet beside the non-scoring review
376
- matrix, review decision, claim boundaries, and recommendations.
377
-
378
- ### Payment-page security-header review assistant (2026-06-08)
379
-
380
- - HAR-derived payment-page security-header snapshots now include a
381
- source-free Review Assistant Packet for BYO AI or internal reviewer triage.
382
- - The packet focuses checkout reviewers on baseline drift, CSP/reporting,
383
- HSTS, and frame-policy owner actions while explicitly excluding raw response
384
- headers, cookies, source code, payment data, customer data, provider keys,
385
- and secrets.
386
- - PCI DSS v4 security-header evidence now preserves or rebuilds the same
387
- review assistant packet and renders it in Markdown beside the header summary.
388
-
389
- ### Runtime incident repeated-signal correlation (2026-06-08)
390
-
391
- - `--runtime-incident-evidence` now preserves Dashboard Monitoring
392
- repeated-signal correlation and computes a CSV/row fallback when the export
393
- does not already include it.
394
- - Runtime evidence Markdown now includes a repeated-signal correlation table
395
- for repeated fingerprints and reasons, plus recommendations for repeated
396
- active high/critical signals before reviewer handoff.
397
- - PCI DSS v4 runtime-incident evidence now summarizes repeated-signal
398
- correlation beside routing, dashboard actions, response windows, and
399
- checklist metadata.
400
-
401
- ### Runtime incident evidence dashboard closeout (2026-06-08)
402
-
403
- - Runtime incident evidence packets now preserve and recommend the dashboard's
404
- filtered `Reviewing -> Resolved` closeout action when it is present in a
405
- Dashboard Monitoring JSON export.
406
- - CLI tests now cover multi-action dashboard metadata, including both
407
- `Open -> Reviewing` acknowledgement and `Reviewing -> Resolved` closeout.
408
-
409
- ### BYO AI key health in usage preflight (2026-06-08)
410
-
411
- - `ai.usage()` test fixtures now pin the `/v1/ai/usage.ashx`
412
- `providerKey` health object so Node callers can monitor missing, failed,
413
- stale, or rotation-review-due BYO AI keys without receiving key material.
414
- - `jso-protector --estimate` now preserves that source-free provider-key
415
- health in text output and under `estimate.providerKey` in JSON output while
416
- keeping quota as the only OK/WARN/FAIL gate.
417
- - `jso ai usage --pretty` now prints the same provider-key health summary:
418
- source-free status label, provider, next stored-key test, rotation review,
419
- and recommended action.
420
- - TypeScript callers now get an `AiProviderKeyHealth` declaration on
421
- `AiUsageResult.providerKey`, and package verification guards that declaration.
422
- - The README now documents `jso ai usage --pretty`, typed
423
- `ai.usage().providerKey` monitoring, the 30-day stored-key test, and the
424
- 90-day rotation review fields surfaced by usage preflight.
425
-
426
- ### Native parser-engine verification runners (2026-06-08)
427
-
428
- - Added PowerShell runners for ES6 lowering conformance, real-world parser
429
- corpus parse/write-back checks, and the combined parser-engine pre-deploy
430
- gate so this Windows workspace can verify parser changes without git-bash.
431
- - Added `verify:parser-engine` as a static package guard so the native engine
432
- runners, parser/ES6 harness docs, archive packaging, and polyglot smoke
433
- contract cannot drift out of the shipped updated-files package.
434
-
435
- ### Migration review packet (2026-06-08)
436
-
437
- - Added `--migration-review` with optional
438
- `--migration-review-output <file>` so migrated release teams get one
439
- source-free owner checklist for all accepted competitor-only fields before
440
- running focused source-map, identifier-cache, or runtime-defense packets.
441
- - The packet captures review-only field names, value types/counts, limitation
442
- groups, CLI compatibility warnings, saved report/manifest readiness,
443
- follow-up commands, protected-build smoke-test actions, and source-free
444
- sharing boundaries without embedding source code, protected output,
445
- source-map contents, cache contents, dictionary values, prefixes, domains,
446
- URLs, dates, seed values, or reserved expressions.
447
- - Migration reports now add a `migration-review` next command whenever any
448
- review-only item is present, and `--competitor-gap-report` lists the packet
449
- as a source-free review artifact when limitation groups are triggered.
450
- - The GitHub Action now exposes `migration-review` and
451
- `migration-review-report`, writes the same source-free JSON packet as a
452
- pre-protection artifact, and surfaces the report path for upload-artifact
453
- steps.
454
-
455
- ### Source-map migration next command (2026-06-08)
456
-
457
- - Migration reports now add a post-protect `source-map-evidence` next command
458
- whenever the source config contains source-map review items.
459
- - The generated command uses the same manifest path emitted by the `protect`
460
- next command:
461
- `jso-protector --source-map-evidence dist-protected/jso-manifest.json
462
- --source-map-evidence-output reports/source-map-evidence.md`.
463
- - Updated the README, website migration docs, tests, and source-map evidence
464
- guard so source-map migrations point directly at the source-free reviewer
465
- packet instead of relying on separate documentation.
466
-
467
- ### Runtime defense migration review packet (2026-06-08)
468
-
469
- - Added `--runtime-defense-review` with optional
470
- `--runtime-defense-review-output <file>` so migrated release teams can turn
471
- anti-debug, self-defending, runtime lock, console, and countermeasure
472
- settings into a source-free reviewer packet instead of a broad compatibility
473
- scan note.
474
- - The packet lists review-only field names, configured runtime evidence,
475
- monitoring and customer-owned forwarding tracks, countermeasure-policy
476
- follow-up, source-free release metadata readiness, compatibility-scan
477
- follow-up, protected-build smoke-test follow-up, and safe-sharing boundaries
478
- without embedding domains, dates, redirect URLs, beacon URLs, countermeasure
479
- values, source code, protected output, or compatibility-scan snippets.
480
- - `--competitor-gap-report` now points runtime-self-defending limitations at
481
- the dedicated `--runtime-defense-review` command and keeps
482
- `runtime-compatibility-scan` as an explicit source-reading follow-up.
483
- - Migration reports now add a `runtime-defense-review` next command whenever
484
- the source config contains anti-debug, self-defending, runtime lock, console,
485
- or countermeasure review items.
486
- - Added a `verify:runtime-defense-review` guard so CLI behavior, tests, docs,
487
- changelog, and competitive gap notes stay aligned.
488
-
489
- ### Identifier cache replacement review packet (2026-06-08)
490
-
491
- - Added `--identifier-cache-review` with optional
492
- `--identifier-cache-review-output <file>` so migrated release teams can turn
493
- `identifierNamesCache`, `identifierNamesCachePath`, `identifiersDictionary`,
494
- and `identifiersPrefix` into a source-free reviewer packet instead of a
495
- vague manual-review note.
496
- - The packet lists review-only field names, counts, reserved-name evidence,
497
- saved API report and manifest readiness, protected-build smoke-test follow-up,
498
- and safe-sharing boundaries without embedding cache contents, dictionary
499
- values, prefixes, reserved-name expressions, or source code.
500
- - `--competitor-gap-report` now points identifier-cache and custom-dictionary
501
- limitations at the dedicated review command, and the main verify chain has a
502
- `verify:identifier-cache-review` guard so CLI, tests, docs, and gap notes stay
503
- aligned.
504
- - Migration reports now add an `identifier-cache-review` next command whenever
505
- the source config contains identifier cache or custom dictionary review items,
506
- so release owners do not have to discover the packet from separate docs.
507
-
508
- ### Runtime incident dashboard action metadata (2026-06-08)
509
-
510
- - `--runtime-incident-evidence` now preserves `dashboardActions` from
511
- Dashboard Monitoring JSON exports and renders them in Markdown.
512
- - PCI DSS v4 runtime incident evidence also keeps the same action metadata, so
513
- reviewer packets can say which source-free dashboard status action is
514
- available without scraping dashboard HTML.
515
- - The action metadata currently covers the filtered `Open` to `Reviewing`
516
- acknowledgement path, including scope, matching Open incident count, and the
517
- safety boundary for resolved, ignored, and already-reviewing incidents.
518
-
519
- ### Payment-page security-header evidence (2026-06-08)
520
-
521
- - Added `--payment-page-headers <csv|json>` to `jso-protector compliance
522
- pci-dss-v4` so checkout owners can summarize CSP, `script-src`,
523
- `frame-src`, reporting endpoint, HSTS, referrer-policy, monitor,
524
- alert-route, baseline-hash match state, checkout surface, and frame context
525
- in the same source-free PCI evidence packet as script inventory and runtime
526
- incidents.
527
- - Added `examples/payment-page-security-headers.json` as a starter snapshot
528
- for payment-page header evidence.
529
- - Added `--payment-page-headers-from-har <file>` with
530
- `--payment-page-headers-output <file>` and optional
531
- `--payment-page-url-pattern <regex>` so browser or synthetic-monitor HAR
532
- exports can become the same source-free security-header snapshot without
533
- preserving raw cookie headers.
534
- - Added optional `--payment-page-headers-baseline <file>` so the HAR converter
535
- marks each checkout page or frame as `match`, `mismatch`, or `missing`
536
- against the last approved security-header snapshot for PCI 11.6.1 change
537
- review.
538
- - PCI DSS v4 security-header evidence now reports missing baseline pages as a
539
- first-class count instead of folding them into unstated baseline evidence.
540
- - Added matching GitHub Action support through `payment-page-har`,
541
- `payment-page-headers-baseline`, `payment-page-url-pattern`, and
542
- `payment-page-headers-report`, including a source-free JSON artifact path,
543
- step-summary baseline metrics, and workflow annotations for header drift,
544
- missing CSP, or missing reporting-endpoint coverage.
545
- - Updated the non-GitHub CI template hint blocks so Jenkins, GitLab, Azure,
546
- CircleCI, Bitbucket, Buildkite, Drone, Woodpecker, GoCD, Tekton, Argo, and
547
- TeamCity users see the same security-header baseline option.
548
- - Added optional GitHub Action PCI DSS v4 evidence assembly through
549
- `pci-dss-v4-evidence`, `pci-dss-v4-report`, and
550
- `pci-dss-v4-json-report`. The action now auto-creates a manifest when the
551
- PCI gate is enabled, prefers the signed `.sig` envelope when present, reuses
552
- payment-page audit/header/runtime evidence inputs, and emits source-free
553
- Markdown plus JSON report paths.
554
-
555
- ### Payment-page iframe evidence context (2026-06-08)
556
-
557
- - Payment-page script inventory starters, audit packets, and PCI DSS v4
558
- reports now preserve optional checkout-surface and frame metadata:
559
- `checkoutSurface`, `frameContext`, `frameOwner`, `parentPageHref`,
560
- `frameHref`, and `frameOrigin`.
561
- - Audit and PCI Markdown/JSON summaries now include checkout surface counts,
562
- frame context counts, frame owner counts, and iframe-scoped script counts so
563
- checkout owners can distinguish parent-page, hosted-checkout, PSP iframe,
564
- and embedded-frame evidence without embedding raw source code.
565
-
566
- ### Source-map evidence verification guard (2026-06-08)
567
-
568
- - Added `verify:source-map-evidence` to the main package verify chain. The
569
- guard checks that manifest verification, source-map leak auditing,
570
- `--source-map-evidence`, public npm docs, GitHub Action artifact wiring, and
571
- source-free reviewer-boundary wording stay aligned.
572
-
573
- ### Payment-page evidence verification guard (2026-06-08)
574
-
575
- - Added `verify:payment-page` to the main package verify chain. The guard
576
- checks that payment-page script inventory generation, audit reconciliation,
577
- PCI DSS v4 evidence import, GitHub Action preflight wiring, public
578
- Payment Page Protection docs, and source-free Review Assistant Packet
579
- boundaries stay aligned.
580
-
581
- ### VM proof-pack verification guard (2026-06-08)
582
-
583
- - Added `verify:vm-proof` to the main package verify chain. The guard checks
584
- that `--verify-vm-proof`, `--vm-proof-pack`, public VM Proof Pack docs,
585
- GitHub Action inputs/outputs, CLI tests, and reviewer handoff language stay
586
- aligned around source-free VM evidence, cold-path review, and
587
- `ready-for-manual-review` decisions.
588
-
589
- ### Runtime incident evidence packet (2026-06-08)
590
-
591
- - Added `--runtime-incident-evidence <csv|json>` with optional
592
- `--runtime-incident-evidence-output <file>` so account owners can turn a
593
- Dashboard Monitoring runtime incident export into a standalone source-free
594
- Markdown or JSON handoff packet for support, on-call, and reviewer workflows.
595
- - The packet summarizes incident counts, active high/critical count, BuildIDs,
596
- routing recommendation, response window, response checklist, alert routing
597
- playbook, export SHA-256, safe-sharing boundaries, and review decision. It
598
- exits nonzero when active high/critical incidents need response.
599
-
600
- ### Competitor gap review artifacts (2026-06-08)
601
-
602
- - Refreshed the `--competitor-gap-report` public-source snapshot to 2026-06-08
603
- with current javascript-obfuscator, JS-Confuser, Jscrambler, AfterPack,
604
- Obfuscator.io, JSDefender, and Digital.ai public surfaces.
605
- - Added a `reviewArtifacts` block to the JSON and text report so migrated
606
- release teams get concrete source-free handoff commands for release-check,
607
- competitor-gap, source-map evidence, and identifier-cache replacement review,
608
- plus a source-reading compatibility scan when runtime-defense switches need
609
- manual validation.
610
-
611
- ### Source-map evidence packet (2026-06-07)
612
-
613
- - Added `--source-map-evidence <manifest>` with optional
614
- `--source-map-evidence-output <file>` so release teams can generate a
615
- source-free Markdown or JSON packet proving protected artifacts still match
616
- the manifest and do not expose `.map` files or `sourceMappingURL` comments.
617
- The packet lists artifact names, counts, policy boundaries, review decision,
618
- and next actions without embedding source code or source-map contents.
619
-
620
- ### Runtime incident alert routing playbook evidence (2026-06-07)
621
-
622
- - PCI DSS v4 runtime-incident evidence now preserves Dashboard Monitoring
623
- `routing.alertRoutingPlaybook` metadata from JSON exports and renders it in
624
- Markdown. Reviewer packets keep the security-response, customer-owned
625
- alerting, support-handoff, and reviewer-packet lanes without embedding raw
626
- incident rows or turning JSO into a managed SOC console.
627
-
628
- ### Competitor gap source snapshot (2026-06-07)
629
-
630
- - `--competitor-gap-report` now includes a dated public-source snapshot in JSON
631
- and text output. The report names the competitor pages reviewed for the
632
- migration framing and warns teams to re-check current vendor pages before
633
- publishing named competitive claims.
634
-
635
- ### AI evidence review decision (2026-06-07)
636
-
637
- - `--ai-resistance-evidence` now includes a source-free `reviewDecision`
638
- object and text line. The packet is `blocked` when required evidence fails,
639
- `ready-for-manual-review` when required checks pass but review tracks need
640
- confirmation, and `ready` when every current track is evidenced.
641
-
642
- ### Public copy discipline verify gate (2026-06-07)
643
-
644
- - Added `verify:copy-discipline` to the main verify chain. The guard scans
645
- public website copy and the npm README for stale competitor claims, absolute
646
- AI/security claims, and missing evidence-boundary statements so customer
647
- pages stay end-user focused and source-reviewable.
648
-
649
- ### Runtime incident response window (2026-06-07)
650
-
651
- - PCI runtime-incident evidence now preserves Dashboard Monitoring
652
- `responseWindow` metadata from JSON exports and renders it in Markdown.
653
- The packet records the source-free timing basis, target, due time, overdue
654
- state, and status action so reviewers can see whether active runtime
655
- incidents are still inside the response target.
656
- - CSV incident exports now get a conservative response-window fallback in the
657
- PCI report: the reporter can calculate the due time from the oldest active
658
- high/critical or active incident, while leaving overdue state unevaluated
659
- unless a dashboard JSON export supplies generation timing.
660
-
661
- ### Archive hygiene verify gate (2026-06-07)
662
-
663
- - Added `verify:deployment-hygiene` to the main verify chain. The guard checks
664
- that `tools/Build-UpdatedArchives.ps1` still supports optional JSON hygiene
665
- reports, keeps blocked deployment files out of updated-files zips, and keeps
666
- the public Deployment Hygiene docs aligned with the archive handoff command.
667
- - Archive hygiene JSON reports now include a source-free operator checklist
668
- with before-sharing steps, rotation triggers, and a support boundary so
669
- release handoffs can say what to verify without exposing config secrets.
670
-
671
- ### Payment-page inventory audit packet (2026-06-07)
672
-
673
- - PCI runtime-incident evidence now includes a source-free response checklist
674
- derived from Dashboard Monitoring CSV/JSON exports. Dashboard JSON exports
675
- can carry that checklist directly, and the PCI report preserves it when
676
- present. The checklist keeps filter scope, routing scope, suggested owners,
677
- response targets, downstream incident destinations, and safe-sharing
678
- boundaries without embedding raw incident rows.
679
- - Added optional payment-page script review metadata fields:
680
- `risk`, `dataAccess`, and `approvalTicket`. Generated inventory starters now
681
- include blank fields for checkout owners to complete, and PCI evidence
682
- reports summarize risk ratings, data-access scopes, and approval-ticket
683
- coverage without embedding every script row.
684
- - The payment-page script inventory audit now reports review-context coverage
685
- for authorized scripts. Missing optional `risk`, `dataAccess`, or
686
- `approvalTicket` values show up as non-blocking review-context gaps, while
687
- unknown scripts, unauthorized scripts, hash drift, missing approved rows,
688
- late injection, runtime violations, duplicate rows, and required metadata
689
- gaps remain blocking.
690
- - The same audit now includes a source-free Review Assistant Packet for BYO
691
- AI or internal reviewer triage, with safe-input boundaries, "do not include"
692
- reminders, and prompts for unknown scripts, authorization gaps, integrity
693
- drift, runtime behavior, missing approved scripts, and approval-ticket
694
- cleanup.
695
- - Added `--script-inventory-audit <inventory.json|csv>` with required
696
- `--runtime-inventory-snapshot <snapshot.json>` and optional
697
- `--script-inventory-audit-output <file>` so checkout owners can reconcile an
698
- approved payment-page script inventory against a saved browser runtime
699
- snapshot before reviewer handoff.
700
- - The audit stays local and source-free, emits Markdown by default or JSON with
701
- `--json`, and flags unknown observed scripts, unauthorized observed scripts,
702
- missing approved scripts, integrity hash mismatches, late injection, runtime
703
- violation reasons, duplicate approved rows, and incomplete inventory
704
- metadata.
705
- - `jso-protector compliance pci-dss-v4` now accepts
706
- `--script-inventory-audit <json>` so the approved-vs-observed reconciliation
707
- summary can be included in the same PCI evidence report as the script
708
- inventory and Dashboard Monitoring runtime incident export.
709
- - The shipped CI templates now advertise the same
710
- `--script-inventory-audit --runtime-inventory-snapshot
711
- --script-inventory-audit-output --json` gate in their optional preflight
712
- block, and the GitHub Action exposes matching
713
- `payment-script-inventory`, `runtime-inventory-snapshot`, and
714
- `script-inventory-audit-report` inputs for checkout release workflows.
715
- - The GitHub Action audit preflight now writes a step summary and workflow
716
- annotations for the first source-free findings so checkout owners can see
717
- script drift in the CI run before opening the JSON artifact.
718
-
719
- ### VM proof pack handoff (2026-06-07)
720
-
721
- - Added `--vm-proof-pack <report.json>` with optional
722
- `--vm-proof-output <file>` so release teams can turn a saved, source-free API
723
- report into a reviewer-ready VM evidence packet. Markdown is emitted by
724
- default; add `--json` for machine-readable evidence.
725
- - The proof pack reuses `--verify-vm-proof` checks and adds build identity,
726
- release label, polymorphism fingerprint, enabled options, warnings,
727
- recommendations, and a required reviewer checklist.
728
- - The proof pack now includes a `reviewDecision` object in JSON and a matching
729
- Markdown section. Passing VM evidence can still be labeled
730
- `ready-for-manual-review` when the reviewer must confirm cold-function scope
731
- and protected-build smoke-test results before approval.
732
- - Generated Markdown and JSON proof packs now include hot-path/cold-path
733
- guidance so reviewers can confirm VM protection stayed on rare sensitive
734
- functions instead of render loops, animation ticks, scroll handlers, or
735
- high-frequency parsers.
736
- - Generated proof packs now also include VM compatibility guidance covering
737
- supported function shape, skipped-with-warning syntax, public callback /
738
- framework-reflection risks, and reviewer actions before approval.
739
-
740
- ### Payment-page incident evidence for PCI reports (2026-06-06)
741
-
742
- - Added `--script-inventory <csv|json>` to `jso-protector compliance
743
- pci-dss-v4` so payment-page script authorization, written justification,
744
- owner, review-date, domain, and integrity-reference coverage can be hashed
745
- and summarized in the same source-free evidence report.
746
- - Added `examples/payment-page-script-inventory.json` as a starter attachment
747
- for the source-free payment-page inventory evidence workflow.
748
- - Added `--script-inventory-from-snapshot <file>` with optional
749
- `--script-inventory-output <file>` so checkout owners can turn an observed
750
- `third-party-inventory` runtime snapshot into a source-free PCI inventory
751
- review starter before adding authorization, justification, owner, and review
752
- dates.
753
- - Added `--runtime-incidents <csv|json>` to `jso-protector compliance
754
- pci-dss-v4` so the report can summarize the Dashboard Monitoring
755
- runtime-incident export as source-free PCI DSS v4 11.6.1 evidence.
756
- - Broadened the same flag to accept the Dashboard Monitoring JSON export too,
757
- so support tooling and release automation can feed machine-readable incident
758
- evidence into the PCI report without converting to CSV first.
759
- - Runtime incident JSON evidence now preserves Dashboard Monitoring export
760
- filters, such as active status or high/critical severity, in the JSON summary
761
- and Markdown evidence table.
762
- - Runtime incident JSON evidence now also preserves Dashboard Monitoring
763
- routing recommendations, including escalation level, recommended queue, and
764
- preferred evidence packet, in the PCI evidence JSON and Markdown report.
765
- - Dashboard Monitoring now shows that same source-free routing recommendation
766
- on the current filtered incident view before checkout and support owners
767
- export the JSON evidence packet.
768
- - Runtime incident JSON evidence now preserves routing response targets and
769
- next status actions, so PCI reviewer packets can carry queue, timing, and
770
- triage-state guidance without embedding source code.
771
- - The Markdown/JSON report now records CSV SHA-256, incident count, status and
772
- severity counts, open/reviewing totals, high-or-critical unresolved totals,
773
- received/event date ranges, and Build IDs without embedding every raw URL or
774
- user-agent row.
775
- - Updated payment-page documentation so checkout owners can pair signed
776
- manifests, watermarks, beacon/SIEM routing, and dashboard incident history
777
- in one reviewer-friendly command.
778
-
779
- ### AI resistance evidence report (2026-06-06)
780
-
781
- - Added `--ai-resistance-evidence <report.json>` so security reviewers can
782
- turn a saved, source-free API report into a current AI-resistance evidence
783
- checklist without sending source to an AI provider.
784
- - Added `--ai-resistance-evidence-output <file>` so the same checklist can be
785
- written as a reviewer artifact, using text by default or JSON when `--json`
786
- is set.
787
- - Extended `verify:ai` static checks so the AI evidence output artifact
788
- workflow remains visible in both the CLI and public AI Resistance Evidence
789
- docs.
790
- - Added a non-scoring attacker-model review matrix to the evidence checklist.
791
- The matrix covers identifier recovery, string recovery, control-flow
792
- reconstruction, sensitive-function extraction, runtime instrumentation,
793
- compatibility regression, and source-free handoff without claiming the
794
- planned Resistance Score is live.
795
- - The report checks build identity, strong protection options, optional VM
796
- proof, runtime-defense evidence, compatibility evidence, and source-free
797
- review data while clearly marking Resistance Score as planned, not live.
798
- - The Markdown-style text output and JSON report now include explicit claim
799
- boundaries for current evidence, planned Resistance Score, bounded AI
800
- resistance claims, and client-side runtime secrecy limits.
801
- - Added `--require-vm-proof` for release teams that want VM-backed evidence to
802
- be a hard CI gate.
803
-
804
- ### VM proof-pack verifier (2026-06-06)
805
-
806
- - Added `--verify-vm-proof <report.json>` so security reviewers can validate a
807
- saved, source-free API report without inspecting private source.
808
- - The verifier checks that VM protection was requested, VM protection was
809
- applied, the virtualized function count meets `--min-vm-functions`, and
810
- `VMProtectionWarnings` is empty.
811
- - Added CLI regression tests for saved-report and direct-report shapes.
812
-
813
- ### Competitor gap report hosted-runtime evidence (2026-06-06)
814
-
815
- - The runtime-defense capability now lists hosted dashboard intake,
816
- `RuntimeDefenseBeaconUrl`, Dashboard Monitoring, SIEM forwarding, and
817
- countermeasure helpers as the JSO evidence surface.
818
- - The generated migration plan now tells teams to route runtime events to
819
- customer monitoring or `/v1/runtime/beacon.ashx` before manually validating
820
- competitor anti-debug/self-defending switches.
821
- - Added regression coverage so the CLI report keeps the hosted first-triage
822
- path visible during competitor migrations.
823
-
824
- ### Migration documentation parity wording (2026-06-06)
825
-
826
- - Updated the README, migration guide, and security checklist so runtime
827
- defense is described as a mapped/partial capability with monitoring and
828
- countermeasure helpers, not as a pure unresolved gap.
829
- - The competitor report docs now name Obfuscator.io explicitly and call out
830
- manual validation for protected source-map generation, release readiness,
831
- and review-only migration fields.
832
-
833
- ### Competitor gap report runtime-defense parity (2026-06-06)
834
-
835
- - Runtime-defense parity now reports as `partial` instead of a pure `gap`
836
- because `jso-protector` ships runtime monitoring, beacon forwarding, and
837
- countermeasure helpers.
838
- - The competitor list now names Obfuscator.io explicitly alongside
839
- `javascript-obfuscator`, JS-Confuser, Jscrambler, and JSDefender.
840
- - Migrated anti-debug, integrity, self-defending, and tamper-protection
841
- switches remain review-only limitations because they are not one-to-one
842
- hosted API options.
843
- - Added a CLI test assertion so the runtime-defense capability cannot regress
844
- to a pure gap while the JSO runtime helpers remain available.
845
-
846
- ### Compliance evidence forwarder — push reports to GRC platforms (2026-06-02)
847
-
848
- New `compliance/evidence-forwarder.js` + a `--push` flag on the
849
- `compliance` CLI. After the PCI DSS v4 reporter generates a report, the
850
- forwarder normalizes it into a vendor-neutral evidence artifact (control
851
- mappings, summary, build id, content sha256) and POSTs it to a GRC
852
- platform so the per-build report that already exists also lands in
853
- Drata / Vanta / an in-house system without a manual upload.
854
-
855
- ```
856
- npx jso-protector compliance pci-dss-v4 \
857
- --manifest dist/build.manifest.json.sig --root dist \
858
- --push drata --push-endpoint "$JSO_GRC_ENDPOINT" --push-token "$JSO_GRC_TOKEN"
859
- ```
860
-
861
- Three profiles shape the envelope + headers: `generic` (artifact as-is,
862
- optional HMAC signing identical to the jso-beacon-slack webhook adapter),
863
- `drata`, and `vanta`. Field names are overridable via `fieldMap`. The
864
- tenant endpoint + token are operator-supplied — GRC platforms are
865
- multi-tenant, so the module deliberately does not hardcode a vendor API
866
- version it can't keep current; the profile only shapes the request.
867
-
868
- Contract matches the SIEM adapters: the forwarder never throws — a flaky
869
- GRC endpoint resolves to `{ ok:false, status:0, error }` and does NOT
870
- change the compliance exit code (the report's own verdict is the
871
- authority; forwarding is a side channel). 14 new tests (artifact
872
- normalization + stable hashing, all three profiles, fieldMap overrides,
873
- HMAC verifiability, transport-failure + throw isolation, non-2xx
874
- handling). 315/315 full jso-protector suite passes.
875
-
876
- ### AI script data governance — block LLM-bound exfiltration (2026-06-02)
877
-
878
- New browser runtime module `jso-protector/runtime/ai-script-governance.js`
879
- that hooks `fetch`, `XMLHttpRequest`, and `WebSocket` on the protected
880
- page and watches for requests that hit a known LLM provider endpoint.
881
- Closes the Jscrambler "AI Data Governance" parity gap surfaced by the
882
- latest deep-research workflow.
883
-
884
- What it catches:
885
-
886
- - a Magecart-style script exfiltrating card data to a free OpenAI
887
- endpoint ("summarize this number")
888
- - an untrusted third-party widget quietly streaming page contents to
889
- its own AI backend
890
- - a compromised CI/CD dependency that POSTs conversation history to
891
- a side-channel LLM
892
-
893
- Default known-host list covers OpenAI / Anthropic / Google
894
- (Gemini + Vertex) / Groq / Together / Mistral / AWS Bedrock
895
- (region-prefixed) / Cohere / Perplexity / xAI / DeepSeek / Replicate /
896
- Hugging Face Inference / Azure OpenAI (tenant-prefixed). Extensible via
897
- `config.additionalKnownLLMHosts`.
898
-
899
- Two enforcement modes:
900
-
901
- - `log` (default) — records destination + payload size + caller stack
902
- frame; request proceeds.
903
- - `block` — refuses. `fetch` returns a synthetic HTTP 451; XHR
904
- transitions to `readyState=4 status=0`; `WebSocket` constructor
905
- throws.
906
-
907
- Events emit through the same beacon channel as `third-party-inventory`,
908
- so the existing `jso-beacon-slack` SIEM adapters forward them unchanged
909
- (envelope `kind: "ai-data-access"`).
910
-
911
- 17 new tests, 301/301 full jso-protector suite passes.
912
-
913
- ### Electron V8 bytecode adapter + React Native 2026 playbook (2026-06-02)
914
-
915
- Completes deep-research GAP 5.
916
-
917
- - New sibling package **`jso-protector-electron`** (`packages/jso-protector-electron/`)
918
- with `compileDirectory({input, output, mode})` that walks JSO-protected
919
- JS and emits V8 bytecode `.jsc` files via `vm.Script.createCachedData()`.
920
- Two execution modes:
921
- - `embedded` (run under Electron): emits real `.jsc` files bound to
922
- the host Electron's V8 build.
923
- - `scaffold-only` (plain Node): emits the source + per-file
924
- `.bytecode-meta.json` for CI environments that don't ship Electron.
925
- - `auto` picks based on `process.versions.electron`.
926
- CLI: `jso-protector-electron --input dist-protected --output dist-bytecode`.
927
- Each `.jsc` carries an 8-byte magic + length-prefixed JSON header +
928
- the V8 cachedData blob so an auditor can validate coverage. 14 tests
929
- cover both modes, the CLI surface, the header layout, and the
930
- actionable error when embedded mode is invoked under plain Node.
931
-
932
- - New **`examples/react-native/README.md`** playbook (2026 refresh)
933
- walking the modern React Native + JSO pipeline:
934
- - Metro `customSerializer` JSO integration (existing `metro.js`).
935
- - Hermes bytecode layering (`.hbc`).
936
- - **Play Integrity API** (Android) replacing the deprecated
937
- SafetyNet Attestation (shut down 2024-06-30).
938
- - **DCAppAttestService** (iOS) for on-device attestation.
939
- - JSO release manifest + beacon flow for the in-app verifier.
940
- - Field-tested gotchas (Reanimated worklets, native-module bridge
941
- name preservation, dev-mode bypass).
942
-
943
- ### RASP active countermeasures + named config sets (2026-06-02)
944
-
945
- Two paired build-time + browser-runtime features completing deep-research
946
- GAP 4 (JSDefender v2 / Jscrambler RASP parity).
947
-
948
- **Browser runtime (`runtime/countermeasures.js`):**
949
-
950
- Six configurable reactions to runtime-defense tamper events, fired after
951
- the beacon POST so even destructive actions leave telemetry:
952
-
953
- - `log` - record-only; default, no UI side effects
954
- - `break` - stub every function on `window.__jsoEntry.*` so the protected
955
- entry points become no-ops
956
- - `deleteCookies` - clear cookies + sessionStorage + localStorage to
957
- defuse stale credentials in a poisoned page
958
- - `selfDestruct` with `mode: blank-body | crashWithMemory | crashTimeout`
959
- - `redirect` to a safe URL (`javascript:` schemes rejected at build time)
960
- - `callback` invoking a customer function with the violation event
961
-
962
- Configurable as a single action or an ordered array
963
- (`onTamper: ["break", "deleteCookies"]`). An `allowList` keeps dev
964
- environments from accidentally shipping destructive escalations.
965
-
966
- **Build-time named sets (`config/named-sets.js`):**
967
-
968
- Apply different protection profiles to different parts of one app:
969
-
970
- ```json
971
- {
972
- "preset": "balanced",
973
- "countermeasures": { "onTamper": "log" },
974
- "namedSets": {
975
- "checkout": { "match": ["src/checkout/**", "src/wallet/**"],
976
- "preset": "maximum",
977
- "options": { "AddDeadCode": true, "DeadcodeLevel": "High" },
978
- "countermeasures": { "onTamper": ["break", "deleteCookies"],
979
- "redirectUrl": "https://example.com/outage" } },
980
- "authenticated": { "match": ["src/dashboard/**", "src/account/**"],
981
- "preset": "maximum",
982
- "countermeasures": { "onTamper": ["deleteCookies"] } }
983
- }
984
- }
985
- ```
986
-
987
- First-matching-set wins, so config authors get deterministic precedence
988
- by writing sets in priority order (like a route table). The glob matcher
989
- supports `**`, `*`, `?`, `[a-z]`, `{a,b}` — including `/**` at end which
990
- matches the bare directory plus any nested files (so `src/checkout/**`
991
- covers `src/checkout` AND `src/checkout/a/b.js`).
992
-
993
- Schema (`jso.config.schema.json`) extends with `countermeasures` and
994
- `namedSets` as top-level properties plus a `$defs/countermeasures`
995
- shared definition. Strict `additionalProperties: false` is preserved
996
- on both the top-level and per-set objects.
997
-
998
- 28 new tests (15 countermeasures + 13 named-sets), full jso-protector
999
- suite **284/284 pass**, verify chain green.
1000
-
1001
- ### Third-party script inventory + Magecart detection (2026-06-02)
1002
-
1003
- New browser-side runtime module `jso-protector/runtime/third-party-inventory.js`
1004
- that snapshots every script loaded by a payment page and flags violations
1005
- to a beacon URL.
1006
-
1007
- Detection signals:
1008
-
1009
- - script `src` outside the configured `originAllowlist`
1010
- - inline `<script>` whose sha256 is not in `inlineContentAllowlist`
1011
- - script DOM-injected AFTER `document.readyState === "complete"`
1012
- (defer-injection is a common Magecart evasion)
1013
- - same script URL but its content sha256 changed since the previous
1014
- deploy (catches CDN supply-chain swap attacks)
1015
-
1016
- Pure browser code (Web Crypto, fetch, PerformanceObserver) so it ships
1017
- in the protected bundle without server-side support. The module's
1018
- inventory snapshots emit through the same beacon channel as the rest
1019
- of the runtime-defense suite, so jso-beacon-slack forwards them to
1020
- Splunk / Elasticsearch / generic webhook unchanged.
1021
-
1022
- ```js
1023
- // In the page that's being protected:
1024
- const tpi = require("jso-protector/runtime/third-party-inventory");
1025
- tpi.attach(window, {
1026
- buildId: window.__jsoBuildId,
1027
- originAllowlist: ["https://www.example.com", "https://cdn.example.com"],
1028
- inlineContentAllowlist: ["a3f5...sha256...", "b07e..."],
1029
- previousContentBySrc: { "https://cdn.example.com/lib.js": "<old-sha256>" },
1030
- beaconUrl: "https://beacon.example.com/v1/jso/inventory",
1031
- flushIntervalMs: 15000,
1032
- });
1033
- ```
1034
-
1035
- 16 new tests (256 total in jso-protector) cover the pure-engine path
1036
- (unknown-origin / unknown-inline / injected-after-load /
1037
- content-changed-vs-previous-deploy / dedup / backpressure /
1038
- '*'-wildcard / trailing-slash) and the DOM-attach path
1039
- (idempotency + `createElement('script')` setter intercept).
1040
-
1041
- ### PCI DSS v4.0.1 compliance reporter (2026-06-02)
1042
-
1043
- New offline subcommand `jso-protector compliance pci-dss-v4` that consumes
1044
- a `--sign-release`-produced manifest envelope and emits a Markdown +
1045
- JSON evidence report mapping JSO primitives onto the two PCI DSS v4
1046
- controls JSO directly contributes to:
1047
-
1048
- - **Req 6.4.3** payment-page script management — covered by HMAC watermarks
1049
- (sub-req .a, authorized), Ed25519 release attestation (.b, integrity),
1050
- and the manifest `files[]` array (.c, inventory).
1051
- - **Req 11.6.1** change/tamper detection — covered by Runtime Defense +
1052
- BeaconUrl wiring (.a/.b, detection + cadence) and jso-beacon-slack SIEM
1053
- adapters (.c, personnel alerts).
1054
-
1055
- CLI:
1056
-
1057
- ```
1058
- jso-protector compliance pci-dss-v4 \
1059
- --manifest dist/build.manifest.json.sig \
1060
- --root dist \
1061
- --watermark-key "$JSO_WATERMARK_KEY" \
1062
- --beacon-url https://beacon.example.com/v1/jso \
1063
- --siem splunk-hec \
1064
- --organization "Example Corp" \
1065
- --output reports/pci-dss-v4.md
1066
- ```
1067
-
1068
- Exit codes follow the same shape as `--verify-release`: 0 = fully evidenced,
1069
- 1 = evidence gaps, 2 = manifest unsigned. The reporter is pure-offline —
1070
- no HTTP traffic, no telemetry. New `compliance/pci-dss-v4/` directory
1071
- ships in the npm tarball; 12 new tests (240 total) all pass.
1072
-
1073
- ### Supply-chain integrity surface
1074
-
1075
- - Added `--competitor-gap-report` to summarize covered / partial / gap parity
1076
- against common JavaScript obfuscator surfaces after migrations, including
1077
- runtime-defense, source-map, lock, and release-forensics guidance.
1078
- - Added public TypeScript declarations and package verification coverage for
1079
- the competitor gap report helpers.
1080
- - Added `--competitor-gap-report` to the optional CI template hint block and
1081
- extended CI template verification so all shipped pipelines keep surfacing
1082
- competitor migration gap checks.
1083
- - Added the same competitor gap report step to Kubernetes and Helm release
1084
- examples, plus migration/security/example docs that call out its
1085
- source-free behavior.
1086
- - Added `competitor-gap` to migration next-command output, gave the JSON report
1087
- a stable `format` / `version` envelope, and included the report in
1088
- `--local-only` preflight guidance.
1089
- - Added `--watermark <tag> --watermark-key <key>` &mdash; injects an HMAC-SHA256
1090
- header-comment marker into every input file before submission to the
1091
- obfuscation API. The obfuscator's `KeepComment` option preserves the
1092
- block verbatim through every transform so the marker survives in the
1093
- protected output. `JSO_WATERMARK_KEY` env-var fallback. Wire format
1094
- documented at /Docs/WireFormat.aspx#watermark.
1095
- - Added `--verify-watermark <file>` &mdash; single-file watermark validator.
1096
- With `--watermark-key`, runs a constant-time HMAC compare; without, prints
1097
- the embedded tag (lookup-only mode for forensic inspection of leaked
1098
- artifacts). Exit codes: 0 valid / 1 invalid / 2 missing-or-no-key.
1099
- - Added `--scan-watermarks <dir>` &mdash; tree walker for forensic / inventory
1100
- use. Skips `node_modules` + `.git`. Aggregates findings into a sorted
1101
- report. Exit codes: 0 all clean, 1 at least one invalid signature, 2 no
1102
- watermarks found at all.
1103
- - Added `--sign-release <priv.pem>` &mdash; produces an Ed25519-signed release
1104
- attestation `.manifest.json.sig` next to the manifest. Covers BuildId +
1105
- polymorphism fingerprint + label + per-file SHA-256. Canonical-JSON
1106
- serialization so verifiers in any language produce byte-identical
1107
- signatures.
1108
- - Added `--verify-release <sig>` &mdash; validates the envelope. Stage 1 is
1109
- Ed25519 signature over canonical manifest. Stage 2 (when `--verify-root
1110
- <dir>` is also passed) re-hashes referenced files on disk to catch
1111
- post-signing artifact tampering. `--public-key <pem>` pins to a trusted
1112
- public key (defeats key-substitution attacks).
1113
- - Added `--genkey-release <name>` &mdash; mints a fresh Ed25519 keypair, writes
1114
- `<name>.priv.pem` (0o600) and `<name>.pub.pem` (0o644). Removes the
1115
- "where do I get keys" friction.
1116
- - Added `--estimate` &mdash; pre-flight quota gate. Walks input files, calls
1117
- `/v1/ai/usage` for current-month counters, prints a three-state report
1118
- (OK / WARN / FAIL). FAIL (exit 1) when actions remaining = 0 blocks
1119
- builds that can't finish. Network failure on the usage endpoint
1120
- downgrades to WARN with a note (doesn't crash the pipeline).
1121
- - Added `--ai-precheck` &mdash; inline AI compatibility gate. Runs
1122
- `/v1/ai/compat-check` on every input file before the obfuscation API
1123
- is called; aborts the build on findings per `--ai-precheck-fail-on`
1124
- (`error` / `warning` / `never`). Quota untouched on failure.
1125
- - New `jso ai compat-scan` subcommand &mdash; stand-alone compat-check over
1126
- every input file in `jso.config.json`. Useful for pre-commit hooks and
1127
- IDE integrations.
1128
- - jso.config.schema.json: added `report`, `label`, `watermark`, and
1129
- `watermarkKey` to the schema so config validators stop rejecting these
1130
- documented keys. (Previous behavior: `additionalProperties: false`
1131
- caused IDE schema validators to flag the keys as unknown.)
1132
- - Coverage: new test suites `test/ai-precheck.test.js`, `test/watermark.test.js`,
1133
- `test/release-signer.test.js`, `test/estimate.test.js`,
1134
- `test/scan-watermarks.test.js`, `test/compat-scan.test.js`,
1135
- `test/wire-format-vectors.test.js` &mdash; 54 new cases on top of the
1136
- pre-existing AI client tests. Full suite 64/64.
1137
-
1138
- ### --init templates
1139
-
1140
- - Added `nextjs-app` and `react-native-app` `--init` templates plus `next`, `nextjs`, `react-native`, `reactnative`, `metro`, and `expo` aliases so scaffolded configs match the existing framework integrations.
1141
- - Added `vite-app`, `webpack-app`, `rspack-app`, and `turbopack-app` `--init` templates plus matching aliases so supported modern build paths now have first-class starter configs.
1142
- - Added `parcel-app`, `bun-app`, and `browserify-app` `--init` templates plus matching aliases so shipped Parcel/Bun/Browserify workflows now scaffold directly from the CLI.
1143
- - Added first-class `parcel`, `bun`, and `turbopack` package exports so the documented post-build workflows now ship with callable helpers and typed plan/config APIs.
1144
-
1145
- ## 0.1.1
1146
-
1147
- - Added `--mode` support so CommonJS and ES module config functions can branch cleanly across production, staging, and similar release profiles.
1148
- - Added the `electron-app` init template plus `electron` and `desktop` aliases for faster Electron/Desktop release onboarding.
1149
- - Added shipped Parcel, Bun, and Turbopack post-build examples plus README coverage for modern release pipelines without dedicated wrapper entrypoints.
1150
- - Fixed TypeScript init-template declarations so the public types include the shipped `electron-app` scaffold and aliases.
1151
- - Added regression coverage to ensure package JSON files do not introduce duplicate keys.
1152
- - Updated local-install tarball references and package metadata for the new patch release.
1153
-
1154
- ## 0.1.0
1155
-
1156
- Initial private package scaffold for JavaScript Obfuscator HTTP API workflows.
1157
-
1158
- - Added dependency-free CLI for directory, single-file, stdin/stdout, and dry-run workflows.
1159
- - Added named presets: `standard`, `balanced`, and `maximum`.
1160
- - Added JSON config schema, `--init`, online web-preset import, and CI option overrides.
1161
- - Added `doctor` preflight checks with optional tiny live API validation.
1162
- - Added Node API plus esbuild, Vite, Rollup, and Webpack entrypoints.
1163
- - Added a dedicated `react-native` alias entrypoint for Metro/Expo integrations.
1164
- - Added TypeScript declarations for public entrypoints.
1165
- - Added source-map removal, asset copying, include/exclude filtering, and public-name preservation helpers.
1166
- - Added Webpack 4 compatibility through a legacy `emit`-hook fallback while keeping Webpack 5 and Rspack support.
1167
- - Expanded Browserify, Webpack plugin, and Webpack/Rspack loader coverage to respect configured script extensions such as `.mjs` and `.cjs`.
1168
- - Added JS-Confuser migration helpers for the CLI and Node API, including starter-config conversion, option explanations, and direct translation for common presets, locks, and string/control-flow settings.
1
+ # Changelog
2
+
3
+ ## 0.4.10 - 2026-09-02
4
+
5
+ Examples README pointed at the wrong version.
6
+
7
+ - The examples guide told customers to `npm install --save-dev
8
+ javascriptobfuscator-com@0.4.7` while the package was two releases newer.
9
+ Because `examples/` ships inside the tarball, published 0.4.8 and 0.4.9
10
+ carried that stale instruction. It now installs the current version, and the
11
+ publish gate (`prepublishOnly`) now runs `verify:examples`, so a mismatched
12
+ README blocks the release instead of shipping and only failing CI afterward.
13
+
14
+ ## 0.4.9 - 2026-09-01
15
+
16
+ README only. No behaviour changes.
17
+
18
+ - The npm registry truncates a README at 65,536 characters and ours is 100,725,
19
+ so a third of it never rendered on the package page - including `--local`
20
+ (protect without sending source), watermarking, signed release attestations,
21
+ the migration guide and the security section. The 30 KB command reference and
22
+ the PCI evidence walkthrough now sit at the end and take the truncation
23
+ instead; everything that explains what the tool is fits above the cut. Nothing
24
+ was deleted, and the full reference is on the docs site.
25
+ - Adds the measured dependency comparison against `javascript-obfuscator` 5.6.0:
26
+ 0 dependencies against 23, 3 installed directories against 120, 1s against 9s,
27
+ 2 MB against 56 MB. That was already true and stated once as an adjective; a
28
+ build tool sold on reducing risk should show the number.
29
+
30
+ ## 0.4.8 - 2026-09-01
31
+
32
+ The rate-limit message a first run actually sees.
33
+
34
+ - A keyless run that tripped the free-tier cap used to print
35
+ `API returned non-JSON response (429): The custom error module does not
36
+ recognize this error.` That sentence was IIS's, not ours: the server writes a
37
+ proper JSON body, and IIS's custom-error module was discarding it before it
38
+ left the machine. Fixed server-side; the message now says which of the two
39
+ ceilings was hit and how to raise it.
40
+ - The CLI no longer appends its paid-plan hint to a 429. The word "limit" in a
41
+ rate-limit message matched the billing regexp, so someone with no account was
42
+ being told to go check their subscription state.
43
+ - `--help` now shows the positional form. `jso-protector app.js` has always
44
+ worked and writes `app-obfuscated.js` beside the input - the same default the
45
+ competitor's CLI uses - but nothing in the help output said so, so anyone
46
+ arriving with that muscle memory had no way to find it.
47
+
48
+ ## 0.4.7 - 2026-08-31
49
+
50
+ Attribution only. No behaviour changes.
51
+
52
+ - The dashboard links the CLI opens now carry a source tag: `src=cli-login`
53
+ from `login`, and `src=cli-nokey` / `src=cli-nopwd` from the missing-credential
54
+ errors. A sign-up that starts at the CLI was previously indistinguishable from
55
+ a web sign-up, which made the free first run impossible to measure.
56
+ - Held back until the site could actually read the tag. It was being lost twice
57
+ on the way: the dashboard bounced signed-out visitors to sign-in without the
58
+ query string, and the sign-in page then hardcoded its own tag over whatever
59
+ arrived. Both are fixed and live, verified end to end before this release.
60
+
61
+ ## 0.4.6 - 2026-08-31
62
+
63
+ Documentation only. No behaviour changes.
64
+
65
+ - **The README said you needed an API key to use this package.** Since 0.4.5
66
+ that is false for a first run, and it was the first thing anyone read on
67
+ npmjs.com - so the page was arguing against the feature the release shipped.
68
+ The quickstart now says no account is needed, "What you need" answers
69
+ "nothing, to start", and the payment section describes the free tier and where
70
+ it ends instead of claiming the package unlocks nothing on its own.
71
+ - The quickstart installs `javascriptobfuscator-com` and calls
72
+ `javascriptobfuscator`, the current names.
73
+
74
+ ## 0.4.5 - 2026-08-31
75
+
76
+ - **The first command now works without an account.** With no credentials at
77
+ all the CLI sends the request anonymously and the service runs it on the free
78
+ tier - up to 20 files and 200 KB per request, no VM protection, rate limited
79
+ per IP. You get real protected output instead of an error, and the run says
80
+ so on stderr. `javascriptobfuscator login` switches to your plan.
81
+ - Half-configured credentials are still an error. Only *no* credentials means
82
+ anonymous, so a key that stopped resolving cannot silently downgrade a paid
83
+ build to the free tier.
84
+
85
+ ## 0.4.4 - 2026-08-31
86
+
87
+ - **`javascriptobfuscator login` saves your credentials once, for every project
88
+ on the machine.** Getting a first protected build used to take about seven
89
+ steps: install, hit the error, find the site, register, verify email, locate
90
+ the dashboard, copy two values, work out two platform-specific environment
91
+ variable names, set them, and run again - then set them again in the next
92
+ shell. `login` opens the dashboard, takes the two values (the password is not
93
+ echoed), and stores them in `~/.jso-protector/credentials.json`.
94
+ - `javascriptobfuscator logout` removes them.
95
+ - Stored credentials are resolved **last**, after an explicit flag, a project
96
+ config and the environment variables, so no existing CI setup changes
97
+ behaviour.
98
+ - The missing-credential errors now name `login` as the fastest fix.
99
+ - The store is written 0600. That is real protection on POSIX; Windows does not
100
+ honour the mode, so there it is only as protected as your user profile - the
101
+ same position as `~/.npmrc`.
102
+
103
+ ## 0.4.3 - 2026-08-30
104
+
105
+ Error messages only. No behaviour changes.
106
+
107
+ - **The "Missing API key" error now says where to get one.** It previously named
108
+ three places to *put* a key and no place to *obtain* one, which left a first-time
109
+ user with a dead end: measured against `javascript-obfuscator`, their first
110
+ command emits working protected output while ours printed this error. The
111
+ message now links the dashboard page that issues a free key, and the npm setup
112
+ guide. Same for "Missing API password", which is shown beside the key.
113
+ - Applied at all six sites - the protect path, `--doctor`, and config validation -
114
+ so the guidance is the same wherever you hit it.
115
+ - Also published under the package's new name, `javascriptobfuscator-com`.
116
+
117
+ ## 0.4.2 - 2026-08-27
118
+
119
+ Metadata only. No behaviour changes.
120
+
121
+ - **The package has a public source repository**:
122
+ [richtexteditor/jso-protector](https://github.com/richtexteditor/jso-protector).
123
+ npm now shows Repository and Issues links instead of nothing, which for a
124
+ security tool is the difference between auditable and "trust us". The
125
+ repository holds this package and nothing else - the protection engine runs
126
+ on the hosted API, or on your machine through the bundled `jso-local`
127
+ executable, and is not part of it.
128
+ - `bugs` points at GitHub issues and support@javascriptobfuscator.com.
129
+
130
+ ## 0.4.1 - 2026-08-27
131
+
132
+ Documentation only. No behaviour changes: the CLI, the Node API, the plugins,
133
+ and the protection engine are byte-for-byte the same as 0.4.0.
134
+
135
+ - **The npm page told visitors to install from a local path.** The README's
136
+ first instruction was `npm install --save-dev ./packages/jso-protector`, and
137
+ a later paragraph said the package was "intentionally local-only" and should
138
+ not go in a public registry — text written while it was, and left in place
139
+ when it was published. Someone arriving from npm search read an install
140
+ command that could not work and a claim that this was not a real product.
141
+ The first screen now says what the package does, installs from the registry,
142
+ and shows a two-line example.
143
+ - **Migration from another obfuscator is no longer buried.**
144
+ `--migrate-javascript-obfuscator` and `--migrate-js-confuser` convert an
145
+ existing config in one command; that was documented 1,500 lines down. It is
146
+ now on the first screen, with `--list-migration-map`, `--explain-compat`,
147
+ and `--competitor-gap-report` beside it.
148
+ - **`RELEASE.md` ships in the tarball and described the opposite of reality** —
149
+ `private: true`, `UNLICENSED`, and a publish guard that "should fail". It is
150
+ now the actual release runbook, including the site artifacts and checksums a
151
+ version bump has to keep in step.
152
+ - **Package metadata**: the description names what the tool does and the
153
+ toolchain it plugs into rather than calling itself an HTTP API wrapper, and
154
+ the keywords gained the terms people actually search for (`obfuscator`,
155
+ `code-protection`, `source-code-protection`, `anti-tamper`, `typescript`).
156
+ - Workspace and tarball install instructions still exist, under "Working from
157
+ a local checkout", where they belong.
158
+
159
+ ## 0.4.0 - 2026-08-26
160
+
161
+ - **Named configuration sets now protect.** `namedSets` — different protection
162
+ profiles for different parts of one app in a single build — had its schema,
163
+ resolver and tests in the package since the baseline but was never wired
164
+ into the protect flow; a config carrying it validated and was silently
165
+ ignored. It now works in both the CLI and the Node API (`protectFiles`):
166
+ each named set becomes its own API round with the baseline options plus the
167
+ set's preset block plus the set's own options; first matching set wins per
168
+ file; files matching no set keep the baseline exactly. The JSON summary
169
+ gains `namedSetGroups` (and `buildIds` when rounds produce multiple
170
+ reports); the manifest spans every group. A set the plan cannot afford
171
+ fails its own round with the normal API error and leaves other groups
172
+ untouched.
173
+ - **`TargetVersion` and `DownlevelIteration` are now first-class.** Both
174
+ engine options appear in `--list-options` (category `output`) and gain
175
+ camelCase config aliases `targetVersion` (`"es5"`/`"modern"`) and
176
+ `downlevelIteration` (spec-faithful ES5 for-of lowering: lazy stepping +
177
+ IteratorClose, like TypeScript's `downlevelIteration`; off by default
178
+ because it adds a per-step call on arrays; no effect on the modern target).
179
+ The raw option names worked before through generic passthrough; now they
180
+ are documented and validated.
181
+ - `--seed` is documented in `--help` (reproducible builds; omit for the
182
+ default polymorphic output).
183
+
184
+ ## 0.3.2 - 2026-08-10
185
+
186
+ - The shipped CI templates (all 13) now list `--local` in their
187
+ "Optional: migration and supply-chain checks" discovery block, with its
188
+ constraint attached: on-runner protection, no source upload, Windows agents
189
+ only. That block exists so users of non-GitHub CI systems can find a
190
+ capability without reading the docs site, and source-local protection was
191
+ the one capability missing from it.
192
+
193
+ ## 0.3.1 - 2026-08-10
194
+
195
+ - Documentation accuracy only, no behaviour change. The "Payment and API
196
+ Access" section still described the package as a client for the hosted API
197
+ and listed uploading source as an unconditional step, which stopped being
198
+ true in 0.3.0. It now states that `--local` keeps the source body on the
199
+ build machine while entitlement is still enforced server-side by a
200
+ source-free plan check.
201
+
202
+ ## 0.3.0 - 2026-08-10
203
+
204
+ - **`--local` protects without sending source.** The CLI can now run the
205
+ `jso-local` executable from the Windows desktop download (`cli/jso-local.exe`)
206
+ instead of POSTing source to the hosted API. Resolution order is
207
+ `--local-exe`, `JSO_LOCAL_EXE`, then the usual desktop install locations;
208
+ config equivalents are `local` and `localExe`.
209
+ - The local path is a transport swap, not a second implementation: it exchanges
210
+ the same request and response shapes the hosted endpoint uses, so options,
211
+ manifests, evidence packets, and size budgets behave identically. An option
212
+ that works hosted works locally by construction.
213
+ - Honest boundaries, enforced rather than documented: a source-free plan check
214
+ still runs online (Local Advanced is a paid capability), the payload holding
215
+ source and credentials is deleted after each run, and a build that asks for
216
+ VM bytecode protection fails with a clear message instead of silently
217
+ shipping weaker output.
218
+ - Corrected README copy that said protection workflows "do not meet a policy
219
+ that forbids source transfer" - true when written, false as of this release.
220
+
221
+ ## Native string splitting (2026-08-03)
222
+
223
+ - `splitStrings` and `splitStringsChunkLength` now map directly to native `SplitStrings` and `SplitStringsChunkLength` engine options instead of migration-review warnings.
224
+ - Eligible literals split into fixed-length concatenated chunks. Chunk length is bounded to 1-1024 and defaults to 10; directives, reserved literals, object keys, template segments, and mixed-server markers remain intact.
225
+ - CLI/config/Node API mappings, wire schemas, option discovery, ASP.NET model binding, and executable engine regression coverage ship together.
226
+ - JS-Confuser `stringSplitting` now maps approximately to the same native transform: booleans map directly, positive probabilities enable it, and custom selector functions remain explicit manual-review inputs.
227
+ - Splitting preserves dynamic-import and static-require specifiers for bundler discovery and never cuts a UTF-16 surrogate pair; executable regressions cover module linking, CommonJS resolution text, emoji values, and self-compressed output.
228
+ - Quoted class method, accessor, and field definition names remain literal. An adversarial class-field case previously failed during protection after the name became a binary expression; normal and self-compressed class-member execution now have permanent coverage.
229
+ - `stringArrayIndexShift` now maps approximately to native `StringArrayIndexShift`. Enabling it adds a deterministic nonzero one-slot offset to plain and encrypted string tables; it does not reproduce the competitor's randomized shift magnitude.
230
+ - `stringArrayShuffle` now maps directly to native `StringArrayShuffle`. The engine shuffles unique moved strings with per-build entropy, or reproducibly under `Seed`, and rewrites every lookup before plain or encrypted table emission.
231
+ - `stringArrayRotate` now maps directly to native `StringArrayRotate`. It applies a nonzero per-build cyclic rotation, rewrites every lookup, and composes with shuffle, index shifting, encryption, and seeded builds.
232
+ - `stringArrayIndexesType` now maps directly to native `StringArrayIndexesType`, supporting `hexadecimal-number`, `hexadecimal-numeric-string`, and mixed lists. Numeric strings are explicitly coerced before array lookup so hexadecimal property text cannot silently return `undefined`.
233
+ - `stringArrayThreshold` now maps directly to a native 0-1 per-unique-literal probability gate. Duplicate values receive one stable decision, zero moves nothing, one moves everything eligible, and `Seed` makes partial selection reproducible.
234
+ - `stringArrayCallsTransform` and `stringArrayCallsTransformThreshold` now map directly to native secondary index-table indirection. The engine emits nested lookups for selected calls, supports 0-1 probability, and composes with shifting, shuffling, rotation, encryption, index representations, compression, and seeded builds.
235
+ - String-array wrapper count, chaining, parameter ceiling, and type now map to native root-level wrappers. Variable aliases and multi-parameter function wrappers execute through optional predecessor chains; count is approximate because competitor per-function-scope placement is not reproduced.
236
+ - `transformObjectKeys` maps approximately to native safe data-key transformation. Identifier and quoted data keys become computed moved-string lookups; numeric keys, methods/accessors, shorthand-sensitive members, and `__proto__` remain literal to preserve semantics.
237
+
238
+ ## 0.2.1 - 2026-07-13
239
+
240
+ - Added OIDC/SAML configuration validation, organization directory behavior, and a bearer-authenticated SCIM 2.0 user lifecycle core to governance.
241
+ - Added versioned managed Web Integrity policies, monitor/block decisions, incident deduplication and workflow, plus active blocking for unknown dynamic scripts.
242
+ - Exported the managed integrity, third-party inventory, and countermeasure runtime entry points.
243
+
244
+ ## 0.2.0 — 2026-05-19
245
+
246
+ - Added `--report <file>` flag. After a successful run, writes the full API
247
+ response JSON (BuildId, PolymorphismFingerprint, GlobalIdentifierMap,
248
+ MemberIdentifierMap, audit metadata) to the given path. Strips the heavy
249
+ file payload before persisting since the protected source is already
250
+ written to `config.output`. Pairs with `jso-symbolicate`.
251
+ - Added `--label <value>` flag. Tags the API request with a release label
252
+ that appears as `ReleaseLabel` in the JSO dashboard audit log. Also reads
253
+ `JSO_LABEL` / `JAVASCRIPT_OBFUSCATOR_LABEL` from the environment.
254
+ - `--json` output now includes `buildId`, `polymorphismFingerprint`, and
255
+ `label` fields so CI scripts can capture them without a second read of the
256
+ report file.
257
+ - All 149 existing CLI unit tests still pass.
258
+
259
+ ## Unreleased
260
+
261
+ ### Runtime recovery and governance foundations (2026-07-13)
262
+
263
+ - Added bounded browser-side `SelfHealing` for post-startup self-defending
264
+ mutations, corrected the integrity baseline to hash the constructed function
265
+ representation, and added `reload`, `callback`, and `degrade` response modes.
266
+ - Added `jso-protector/governance` with local RBAC, scoped-token descriptors,
267
+ and SHA-256 hash-chained audit events. Hosted SSO/SCIM remains explicitly out
268
+ of scope for this local module.
269
+
270
+ ### Runtime incident action plans (2026-06-12)
271
+
272
+ - Dashboard Monitoring JSON/CSV exports now carry source-free per-incident
273
+ action plans with next owner, evidence packet, response due state, status
274
+ transition, acknowledgement requirement, and next action.
275
+ - `--runtime-incident-evidence` preserves those action plans in Markdown and
276
+ JSON, adds an Incident Action Plan table, and prompts BYO AI or internal
277
+ reviewers about overdue incident owners before external handoff.
278
+
279
+ ### VM marker ergonomics (2026-06-12)
280
+
281
+ - VM protection now accepts `// @virtualize`, `/* @virtualize */`, and
282
+ `/** @virtualize */` markers immediately before supported synchronous
283
+ function declarations. The website pipeline normalizes block and JSDoc
284
+ marker forms before invoking the VM sidecar, removing a silent-miss setup
285
+ trap from the VM beta flow.
286
+ - The VM proof static guard now checks the server-side normalizer and public
287
+ docs so marker support cannot drift back to line-comment-only wording.
288
+
289
+ ### Parser engine compatibility smoke (2026-06-12)
290
+
291
+ - `tools/verify-parser-engine.ps1` now runs a multi-root compatibility smoke
292
+ after the main parser conformance harness. The smoke compiles the legacy root
293
+ `App_Code/JScriptProtectorV2` source tree and the framework
294
+ `JScriptCodeDom` source tree, then verifies the Cesium-style `?.25`,
295
+ optional-chain, nullish, and `.5e3` leading-dot exponent cases.
296
+ - Archive hygiene now requires the new `compat-run.ps1` and
297
+ `compat-smoke.cs` files so deployment packages include the same parser drift
298
+ guard used locally.
299
+
300
+ ### PCI DSS review assistant (2026-06-08)
301
+
302
+ - `jso-protector compliance pci-dss-v4` Markdown and JSON now include a
303
+ source-free PCI DSS Review Assistant for BYO AI or internal reviewer triage.
304
+ - The assistant turns evidence gaps, signed-release proof, script
305
+ authorization, observed script drift, header change evidence, runtime
306
+ incident routing, and QSA handoff boundaries into checkout-owner actions
307
+ without sharing source code, protected output, raw script rows, raw response
308
+ headers, raw incident payloads, payment-card data, provider keys, customer
309
+ data, or secrets.
310
+
311
+ ### Runtime defense review assistant (2026-06-08)
312
+
313
+ - `--runtime-defense-review` Markdown and JSON now include a source-free
314
+ Runtime Defense Review Assistant for BYO AI or internal reviewer triage.
315
+ - The assistant turns runtime behavior scope, monitoring handoff,
316
+ countermeasure policy, domain/date lock smoke, source-reading compatibility
317
+ scan, release metadata, and protected-build smoke into owner prompts without
318
+ sharing source code, protected output, domains, dates, redirect URLs, beacon
319
+ URLs, countermeasure values, raw config files, API credentials, provider
320
+ keys, collector tokens, customer data, or secrets.
321
+
322
+ ### Identifier cache review assistant (2026-06-08)
323
+
324
+ - `--identifier-cache-review` Markdown and JSON now include a source-free
325
+ Identifier Cache Review Assistant for BYO AI or internal reviewer triage.
326
+ - The assistant turns deterministic cache assumptions, custom dictionary
327
+ replacement, reserved-name coverage, release metadata, and protected-build
328
+ smoke into owner prompts without sharing source code, protected output, cache
329
+ contents, dictionary values, prefixes, reserved-name expressions, raw config
330
+ files, API credentials, provider keys, customer data, or secrets.
331
+
332
+ ### Migration review assistant (2026-06-08)
333
+
334
+ - `--migration-review` Markdown and JSON now include a source-free Migration
335
+ Review Assistant for BYO AI or internal reviewer triage.
336
+ - The assistant turns manual review tracks, source-map policy,
337
+ identifier-cache replacement, runtime-defense behavior, source-reading
338
+ command boundaries, release metadata, and protected-build smoke into owner
339
+ prompts without sharing source code, protected output, source maps, cache
340
+ contents, raw config files, API credentials, provider keys, customer data, or
341
+ secrets.
342
+
343
+ ### Competitor gap review assistant (2026-06-08)
344
+
345
+ - `--competitor-gap-report` JSON and text output now include a source-free
346
+ Competitor Gap Review Assistant for BYO AI or internal reviewer triage.
347
+ - The assistant turns gap prioritization, partial-parity validation, triggered
348
+ migration limitations, source-reading scan boundaries, vendor-claim
349
+ freshness, and plan handoff into owner prompts without sharing source code,
350
+ protected output, API credentials, provider keys, customer data, or secrets.
351
+
352
+ ### Source-map evidence review assistant (2026-06-08)
353
+
354
+ - `--source-map-evidence` now includes a source-free Source Map Review
355
+ Assistant for BYO AI or internal reviewer triage.
356
+ - The assistant turns leak cleanup, manifest verification, secure debugging
357
+ exceptions, bundler cleanup order, and clean reviewer handoff into owner
358
+ prompts without sharing source code, protected output, raw `.map` files,
359
+ source-map contents, original source paths, customer data, or secrets.
360
+
361
+ ### VM proof review assistant (2026-06-08)
362
+
363
+ - `--vm-proof-pack` now includes a source-free VM Proof Review Assistant for
364
+ BYO AI or internal reviewer triage.
365
+ - The assistant turns failed proof checks, VM warnings, cold sensitive
366
+ function scope, hot-path risk, build identity, and protected-build smoke
367
+ evidence into owner prompts without sharing source code, protected output,
368
+ VM bytecode, source maps, provider keys, customer data, or secrets.
369
+
370
+ ### Deployment hygiene evidence packet (2026-06-08)
371
+
372
+ - Added `--deployment-hygiene-evidence <file>` and
373
+ `--deployment-hygiene-output <file>` to turn
374
+ `tools/Build-UpdatedArchives.ps1 -ReportPath` JSON into a source-free
375
+ archive/deployment hygiene reviewer packet.
376
+ - The packet summarizes archive names, entry counts, byte sizes, missing
377
+ required entries, blocked entries, blocked category booleans, exclusion
378
+ policy, operator checklist, rotation triggers, and hygiene-report SHA-256
379
+ without including `Web.config` contents, raw secrets, provider keys,
380
+ database strings, host-specific transforms, customer data, or source code.
381
+ - The command writes failed packets before exiting nonzero when archive
382
+ hygiene is blocked, and includes a Deployment Hygiene Review Assistant for
383
+ BYO AI or internal reviewers.
384
+
385
+ ### Runtime incident review assistant (2026-06-08)
386
+
387
+ - `--runtime-incident-evidence` now includes a source-free Runtime Incident
388
+ Review Assistant for BYO AI or internal reviewer triage.
389
+ - The assistant turns urgent response, repeated-signal correlation, dashboard
390
+ status actions, response-window decisions, and alert-routing handoff into
391
+ owner prompts without sharing source code, raw incident payloads, collector
392
+ tokens, customer data, or secrets.
393
+
394
+ ### AI-resistance review assistant (2026-06-08)
395
+
396
+ - `--ai-resistance-evidence` now includes a source-free Review Assistant
397
+ Packet for BYO AI or internal reviewer triage.
398
+ - The packet turns failed required checks, missing attacker-model review
399
+ tracks, VM scope, runtime evidence, compatibility proof, and planned
400
+ Resistance Score wording into owner actions without sending source code,
401
+ protected output, source maps, provider keys, or secrets.
402
+ - Text output now renders the assistant packet beside the non-scoring review
403
+ matrix, review decision, claim boundaries, and recommendations.
404
+
405
+ ### Payment-page security-header review assistant (2026-06-08)
406
+
407
+ - HAR-derived payment-page security-header snapshots now include a
408
+ source-free Review Assistant Packet for BYO AI or internal reviewer triage.
409
+ - The packet focuses checkout reviewers on baseline drift, CSP/reporting,
410
+ HSTS, and frame-policy owner actions while explicitly excluding raw response
411
+ headers, cookies, source code, payment data, customer data, provider keys,
412
+ and secrets.
413
+ - PCI DSS v4 security-header evidence now preserves or rebuilds the same
414
+ review assistant packet and renders it in Markdown beside the header summary.
415
+
416
+ ### Runtime incident repeated-signal correlation (2026-06-08)
417
+
418
+ - `--runtime-incident-evidence` now preserves Dashboard Monitoring
419
+ repeated-signal correlation and computes a CSV/row fallback when the export
420
+ does not already include it.
421
+ - Runtime evidence Markdown now includes a repeated-signal correlation table
422
+ for repeated fingerprints and reasons, plus recommendations for repeated
423
+ active high/critical signals before reviewer handoff.
424
+ - PCI DSS v4 runtime-incident evidence now summarizes repeated-signal
425
+ correlation beside routing, dashboard actions, response windows, and
426
+ checklist metadata.
427
+
428
+ ### Runtime incident evidence dashboard closeout (2026-06-08)
429
+
430
+ - Runtime incident evidence packets now preserve and recommend the dashboard's
431
+ filtered `Reviewing -> Resolved` closeout action when it is present in a
432
+ Dashboard Monitoring JSON export.
433
+ - CLI tests now cover multi-action dashboard metadata, including both
434
+ `Open -> Reviewing` acknowledgement and `Reviewing -> Resolved` closeout.
435
+
436
+ ### BYO AI key health in usage preflight (2026-06-08)
437
+
438
+ - `ai.usage()` test fixtures now pin the `/v1/ai/usage.ashx`
439
+ `providerKey` health object so Node callers can monitor missing, failed,
440
+ stale, or rotation-review-due BYO AI keys without receiving key material.
441
+ - `jso-protector --estimate` now preserves that source-free provider-key
442
+ health in text output and under `estimate.providerKey` in JSON output while
443
+ keeping quota as the only OK/WARN/FAIL gate.
444
+ - `jso ai usage --pretty` now prints the same provider-key health summary:
445
+ source-free status label, provider, next stored-key test, rotation review,
446
+ and recommended action.
447
+ - TypeScript callers now get an `AiProviderKeyHealth` declaration on
448
+ `AiUsageResult.providerKey`, and package verification guards that declaration.
449
+ - The README now documents `jso ai usage --pretty`, typed
450
+ `ai.usage().providerKey` monitoring, the 30-day stored-key test, and the
451
+ 90-day rotation review fields surfaced by usage preflight.
452
+
453
+ ### Native parser-engine verification runners (2026-06-08)
454
+
455
+ - Added PowerShell runners for ES6 lowering conformance, real-world parser
456
+ corpus parse/write-back checks, and the combined parser-engine pre-deploy
457
+ gate so this Windows workspace can verify parser changes without git-bash.
458
+ - Added `verify:parser-engine` as a static package guard so the native engine
459
+ runners, parser/ES6 harness docs, archive packaging, and polyglot smoke
460
+ contract cannot drift out of the shipped updated-files package.
461
+
462
+ ### Migration review packet (2026-06-08)
463
+
464
+ - Added `--migration-review` with optional
465
+ `--migration-review-output <file>` so migrated release teams get one
466
+ source-free owner checklist for all accepted competitor-only fields before
467
+ running focused source-map, identifier-cache, or runtime-defense packets.
468
+ - The packet captures review-only field names, value types/counts, limitation
469
+ groups, CLI compatibility warnings, saved report/manifest readiness,
470
+ follow-up commands, protected-build smoke-test actions, and source-free
471
+ sharing boundaries without embedding source code, protected output,
472
+ source-map contents, cache contents, dictionary values, prefixes, domains,
473
+ URLs, dates, seed values, or reserved expressions.
474
+ - Migration reports now add a `migration-review` next command whenever any
475
+ review-only item is present, and `--competitor-gap-report` lists the packet
476
+ as a source-free review artifact when limitation groups are triggered.
477
+ - The GitHub Action now exposes `migration-review` and
478
+ `migration-review-report`, writes the same source-free JSON packet as a
479
+ pre-protection artifact, and surfaces the report path for upload-artifact
480
+ steps.
481
+
482
+ ### Source-map migration next command (2026-06-08)
483
+
484
+ - Migration reports now add a post-protect `source-map-evidence` next command
485
+ whenever the source config contains source-map review items.
486
+ - The generated command uses the same manifest path emitted by the `protect`
487
+ next command:
488
+ `jso-protector --source-map-evidence dist-protected/jso-manifest.json
489
+ --source-map-evidence-output reports/source-map-evidence.md`.
490
+ - Updated the README, website migration docs, tests, and source-map evidence
491
+ guard so source-map migrations point directly at the source-free reviewer
492
+ packet instead of relying on separate documentation.
493
+
494
+ ### Runtime defense migration review packet (2026-06-08)
495
+
496
+ - Added `--runtime-defense-review` with optional
497
+ `--runtime-defense-review-output <file>` so migrated release teams can turn
498
+ anti-debug, self-defending, runtime lock, console, and countermeasure
499
+ settings into a source-free reviewer packet instead of a broad compatibility
500
+ scan note.
501
+ - The packet lists review-only field names, configured runtime evidence,
502
+ monitoring and customer-owned forwarding tracks, countermeasure-policy
503
+ follow-up, source-free release metadata readiness, compatibility-scan
504
+ follow-up, protected-build smoke-test follow-up, and safe-sharing boundaries
505
+ without embedding domains, dates, redirect URLs, beacon URLs, countermeasure
506
+ values, source code, protected output, or compatibility-scan snippets.
507
+ - `--competitor-gap-report` now points runtime-self-defending limitations at
508
+ the dedicated `--runtime-defense-review` command and keeps
509
+ `runtime-compatibility-scan` as an explicit source-reading follow-up.
510
+ - Migration reports now add a `runtime-defense-review` next command whenever
511
+ the source config contains anti-debug, self-defending, runtime lock, console,
512
+ or countermeasure review items.
513
+ - Added a `verify:runtime-defense-review` guard so CLI behavior, tests, docs,
514
+ changelog, and competitive gap notes stay aligned.
515
+
516
+ ### Identifier cache replacement review packet (2026-06-08)
517
+
518
+ - Added `--identifier-cache-review` with optional
519
+ `--identifier-cache-review-output <file>` so migrated release teams can turn
520
+ `identifierNamesCache`, `identifierNamesCachePath`, `identifiersDictionary`,
521
+ and `identifiersPrefix` into a source-free reviewer packet instead of a
522
+ vague manual-review note.
523
+ - The packet lists review-only field names, counts, reserved-name evidence,
524
+ saved API report and manifest readiness, protected-build smoke-test follow-up,
525
+ and safe-sharing boundaries without embedding cache contents, dictionary
526
+ values, prefixes, reserved-name expressions, or source code.
527
+ - `--competitor-gap-report` now points identifier-cache and custom-dictionary
528
+ limitations at the dedicated review command, and the main verify chain has a
529
+ `verify:identifier-cache-review` guard so CLI, tests, docs, and gap notes stay
530
+ aligned.
531
+ - Migration reports now add an `identifier-cache-review` next command whenever
532
+ the source config contains identifier cache or custom dictionary review items,
533
+ so release owners do not have to discover the packet from separate docs.
534
+
535
+ ### Runtime incident dashboard action metadata (2026-06-08)
536
+
537
+ - `--runtime-incident-evidence` now preserves `dashboardActions` from
538
+ Dashboard Monitoring JSON exports and renders them in Markdown.
539
+ - PCI DSS v4 runtime incident evidence also keeps the same action metadata, so
540
+ reviewer packets can say which source-free dashboard status action is
541
+ available without scraping dashboard HTML.
542
+ - The action metadata currently covers the filtered `Open` to `Reviewing`
543
+ acknowledgement path, including scope, matching Open incident count, and the
544
+ safety boundary for resolved, ignored, and already-reviewing incidents.
545
+
546
+ ### Payment-page security-header evidence (2026-06-08)
547
+
548
+ - Added `--payment-page-headers <csv|json>` to `jso-protector compliance
549
+ pci-dss-v4` so checkout owners can summarize CSP, `script-src`,
550
+ `frame-src`, reporting endpoint, HSTS, referrer-policy, monitor,
551
+ alert-route, baseline-hash match state, checkout surface, and frame context
552
+ in the same source-free PCI evidence packet as script inventory and runtime
553
+ incidents.
554
+ - Added `examples/payment-page-security-headers.json` as a starter snapshot
555
+ for payment-page header evidence.
556
+ - Added `--payment-page-headers-from-har <file>` with
557
+ `--payment-page-headers-output <file>` and optional
558
+ `--payment-page-url-pattern <regex>` so browser or synthetic-monitor HAR
559
+ exports can become the same source-free security-header snapshot without
560
+ preserving raw cookie headers.
561
+ - Added optional `--payment-page-headers-baseline <file>` so the HAR converter
562
+ marks each checkout page or frame as `match`, `mismatch`, or `missing`
563
+ against the last approved security-header snapshot for PCI 11.6.1 change
564
+ review.
565
+ - PCI DSS v4 security-header evidence now reports missing baseline pages as a
566
+ first-class count instead of folding them into unstated baseline evidence.
567
+ - Added matching GitHub Action support through `payment-page-har`,
568
+ `payment-page-headers-baseline`, `payment-page-url-pattern`, and
569
+ `payment-page-headers-report`, including a source-free JSON artifact path,
570
+ step-summary baseline metrics, and workflow annotations for header drift,
571
+ missing CSP, or missing reporting-endpoint coverage.
572
+ - Updated the non-GitHub CI template hint blocks so Jenkins, GitLab, Azure,
573
+ CircleCI, Bitbucket, Buildkite, Drone, Woodpecker, GoCD, Tekton, Argo, and
574
+ TeamCity users see the same security-header baseline option.
575
+ - Added optional GitHub Action PCI DSS v4 evidence assembly through
576
+ `pci-dss-v4-evidence`, `pci-dss-v4-report`, and
577
+ `pci-dss-v4-json-report`. The action now auto-creates a manifest when the
578
+ PCI gate is enabled, prefers the signed `.sig` envelope when present, reuses
579
+ payment-page audit/header/runtime evidence inputs, and emits source-free
580
+ Markdown plus JSON report paths.
581
+
582
+ ### Payment-page iframe evidence context (2026-06-08)
583
+
584
+ - Payment-page script inventory starters, audit packets, and PCI DSS v4
585
+ reports now preserve optional checkout-surface and frame metadata:
586
+ `checkoutSurface`, `frameContext`, `frameOwner`, `parentPageHref`,
587
+ `frameHref`, and `frameOrigin`.
588
+ - Audit and PCI Markdown/JSON summaries now include checkout surface counts,
589
+ frame context counts, frame owner counts, and iframe-scoped script counts so
590
+ checkout owners can distinguish parent-page, hosted-checkout, PSP iframe,
591
+ and embedded-frame evidence without embedding raw source code.
592
+
593
+ ### Source-map evidence verification guard (2026-06-08)
594
+
595
+ - Added `verify:source-map-evidence` to the main package verify chain. The
596
+ guard checks that manifest verification, source-map leak auditing,
597
+ `--source-map-evidence`, public npm docs, GitHub Action artifact wiring, and
598
+ source-free reviewer-boundary wording stay aligned.
599
+
600
+ ### Payment-page evidence verification guard (2026-06-08)
601
+
602
+ - Added `verify:payment-page` to the main package verify chain. The guard
603
+ checks that payment-page script inventory generation, audit reconciliation,
604
+ PCI DSS v4 evidence import, GitHub Action preflight wiring, public
605
+ Payment Page Protection docs, and source-free Review Assistant Packet
606
+ boundaries stay aligned.
607
+
608
+ ### VM proof-pack verification guard (2026-06-08)
609
+
610
+ - Added `verify:vm-proof` to the main package verify chain. The guard checks
611
+ that `--verify-vm-proof`, `--vm-proof-pack`, public VM Proof Pack docs,
612
+ GitHub Action inputs/outputs, CLI tests, and reviewer handoff language stay
613
+ aligned around source-free VM evidence, cold-path review, and
614
+ `ready-for-manual-review` decisions.
615
+
616
+ ### Runtime incident evidence packet (2026-06-08)
617
+
618
+ - Added `--runtime-incident-evidence <csv|json>` with optional
619
+ `--runtime-incident-evidence-output <file>` so account owners can turn a
620
+ Dashboard Monitoring runtime incident export into a standalone source-free
621
+ Markdown or JSON handoff packet for support, on-call, and reviewer workflows.
622
+ - The packet summarizes incident counts, active high/critical count, BuildIDs,
623
+ routing recommendation, response window, response checklist, alert routing
624
+ playbook, export SHA-256, safe-sharing boundaries, and review decision. It
625
+ exits nonzero when active high/critical incidents need response.
626
+
627
+ ### Competitor gap review artifacts (2026-06-08)
628
+
629
+ - Refreshed the `--competitor-gap-report` public-source snapshot to 2026-06-08
630
+ with current javascript-obfuscator, JS-Confuser, Jscrambler, AfterPack,
631
+ Obfuscator.io, JSDefender, and Digital.ai public surfaces.
632
+ - Added a `reviewArtifacts` block to the JSON and text report so migrated
633
+ release teams get concrete source-free handoff commands for release-check,
634
+ competitor-gap, source-map evidence, and identifier-cache replacement review,
635
+ plus a source-reading compatibility scan when runtime-defense switches need
636
+ manual validation.
637
+
638
+ ### Source-map evidence packet (2026-06-07)
639
+
640
+ - Added `--source-map-evidence <manifest>` with optional
641
+ `--source-map-evidence-output <file>` so release teams can generate a
642
+ source-free Markdown or JSON packet proving protected artifacts still match
643
+ the manifest and do not expose `.map` files or `sourceMappingURL` comments.
644
+ The packet lists artifact names, counts, policy boundaries, review decision,
645
+ and next actions without embedding source code or source-map contents.
646
+
647
+ ### Runtime incident alert routing playbook evidence (2026-06-07)
648
+
649
+ - PCI DSS v4 runtime-incident evidence now preserves Dashboard Monitoring
650
+ `routing.alertRoutingPlaybook` metadata from JSON exports and renders it in
651
+ Markdown. Reviewer packets keep the security-response, customer-owned
652
+ alerting, support-handoff, and reviewer-packet lanes without embedding raw
653
+ incident rows or turning JSO into a managed SOC console.
654
+
655
+ ### Competitor gap source snapshot (2026-06-07)
656
+
657
+ - `--competitor-gap-report` now includes a dated public-source snapshot in JSON
658
+ and text output. The report names the competitor pages reviewed for the
659
+ migration framing and warns teams to re-check current vendor pages before
660
+ publishing named competitive claims.
661
+
662
+ ### AI evidence review decision (2026-06-07)
663
+
664
+ - `--ai-resistance-evidence` now includes a source-free `reviewDecision`
665
+ object and text line. The packet is `blocked` when required evidence fails,
666
+ `ready-for-manual-review` when required checks pass but review tracks need
667
+ confirmation, and `ready` when every current track is evidenced.
668
+
669
+ ### Public copy discipline verify gate (2026-06-07)
670
+
671
+ - Added `verify:copy-discipline` to the main verify chain. The guard scans
672
+ public website copy and the npm README for stale competitor claims, absolute
673
+ AI/security claims, and missing evidence-boundary statements so customer
674
+ pages stay end-user focused and source-reviewable.
675
+
676
+ ### Runtime incident response window (2026-06-07)
677
+
678
+ - PCI runtime-incident evidence now preserves Dashboard Monitoring
679
+ `responseWindow` metadata from JSON exports and renders it in Markdown.
680
+ The packet records the source-free timing basis, target, due time, overdue
681
+ state, and status action so reviewers can see whether active runtime
682
+ incidents are still inside the response target.
683
+ - CSV incident exports now get a conservative response-window fallback in the
684
+ PCI report: the reporter can calculate the due time from the oldest active
685
+ high/critical or active incident, while leaving overdue state unevaluated
686
+ unless a dashboard JSON export supplies generation timing.
687
+
688
+ ### Archive hygiene verify gate (2026-06-07)
689
+
690
+ - Added `verify:deployment-hygiene` to the main verify chain. The guard checks
691
+ that `tools/Build-UpdatedArchives.ps1` still supports optional JSON hygiene
692
+ reports, keeps blocked deployment files out of updated-files zips, and keeps
693
+ the public Deployment Hygiene docs aligned with the archive handoff command.
694
+ - Archive hygiene JSON reports now include a source-free operator checklist
695
+ with before-sharing steps, rotation triggers, and a support boundary so
696
+ release handoffs can say what to verify without exposing config secrets.
697
+
698
+ ### Payment-page inventory audit packet (2026-06-07)
699
+
700
+ - PCI runtime-incident evidence now includes a source-free response checklist
701
+ derived from Dashboard Monitoring CSV/JSON exports. Dashboard JSON exports
702
+ can carry that checklist directly, and the PCI report preserves it when
703
+ present. The checklist keeps filter scope, routing scope, suggested owners,
704
+ response targets, downstream incident destinations, and safe-sharing
705
+ boundaries without embedding raw incident rows.
706
+ - Added optional payment-page script review metadata fields:
707
+ `risk`, `dataAccess`, and `approvalTicket`. Generated inventory starters now
708
+ include blank fields for checkout owners to complete, and PCI evidence
709
+ reports summarize risk ratings, data-access scopes, and approval-ticket
710
+ coverage without embedding every script row.
711
+ - The payment-page script inventory audit now reports review-context coverage
712
+ for authorized scripts. Missing optional `risk`, `dataAccess`, or
713
+ `approvalTicket` values show up as non-blocking review-context gaps, while
714
+ unknown scripts, unauthorized scripts, hash drift, missing approved rows,
715
+ late injection, runtime violations, duplicate rows, and required metadata
716
+ gaps remain blocking.
717
+ - The same audit now includes a source-free Review Assistant Packet for BYO
718
+ AI or internal reviewer triage, with safe-input boundaries, "do not include"
719
+ reminders, and prompts for unknown scripts, authorization gaps, integrity
720
+ drift, runtime behavior, missing approved scripts, and approval-ticket
721
+ cleanup.
722
+ - Added `--script-inventory-audit <inventory.json|csv>` with required
723
+ `--runtime-inventory-snapshot <snapshot.json>` and optional
724
+ `--script-inventory-audit-output <file>` so checkout owners can reconcile an
725
+ approved payment-page script inventory against a saved browser runtime
726
+ snapshot before reviewer handoff.
727
+ - The audit stays local and source-free, emits Markdown by default or JSON with
728
+ `--json`, and flags unknown observed scripts, unauthorized observed scripts,
729
+ missing approved scripts, integrity hash mismatches, late injection, runtime
730
+ violation reasons, duplicate approved rows, and incomplete inventory
731
+ metadata.
732
+ - `jso-protector compliance pci-dss-v4` now accepts
733
+ `--script-inventory-audit <json>` so the approved-vs-observed reconciliation
734
+ summary can be included in the same PCI evidence report as the script
735
+ inventory and Dashboard Monitoring runtime incident export.
736
+ - The shipped CI templates now advertise the same
737
+ `--script-inventory-audit --runtime-inventory-snapshot
738
+ --script-inventory-audit-output --json` gate in their optional preflight
739
+ block, and the GitHub Action exposes matching
740
+ `payment-script-inventory`, `runtime-inventory-snapshot`, and
741
+ `script-inventory-audit-report` inputs for checkout release workflows.
742
+ - The GitHub Action audit preflight now writes a step summary and workflow
743
+ annotations for the first source-free findings so checkout owners can see
744
+ script drift in the CI run before opening the JSON artifact.
745
+
746
+ ### VM proof pack handoff (2026-06-07)
747
+
748
+ - Added `--vm-proof-pack <report.json>` with optional
749
+ `--vm-proof-output <file>` so release teams can turn a saved, source-free API
750
+ report into a reviewer-ready VM evidence packet. Markdown is emitted by
751
+ default; add `--json` for machine-readable evidence.
752
+ - The proof pack reuses `--verify-vm-proof` checks and adds build identity,
753
+ release label, polymorphism fingerprint, enabled options, warnings,
754
+ recommendations, and a required reviewer checklist.
755
+ - The proof pack now includes a `reviewDecision` object in JSON and a matching
756
+ Markdown section. Passing VM evidence can still be labeled
757
+ `ready-for-manual-review` when the reviewer must confirm cold-function scope
758
+ and protected-build smoke-test results before approval.
759
+ - Generated Markdown and JSON proof packs now include hot-path/cold-path
760
+ guidance so reviewers can confirm VM protection stayed on rare sensitive
761
+ functions instead of render loops, animation ticks, scroll handlers, or
762
+ high-frequency parsers.
763
+ - Generated proof packs now also include VM compatibility guidance covering
764
+ supported function shape, skipped-with-warning syntax, public callback /
765
+ framework-reflection risks, and reviewer actions before approval.
766
+
767
+ ### Payment-page incident evidence for PCI reports (2026-06-06)
768
+
769
+ - Added `--script-inventory <csv|json>` to `jso-protector compliance
770
+ pci-dss-v4` so payment-page script authorization, written justification,
771
+ owner, review-date, domain, and integrity-reference coverage can be hashed
772
+ and summarized in the same source-free evidence report.
773
+ - Added `examples/payment-page-script-inventory.json` as a starter attachment
774
+ for the source-free payment-page inventory evidence workflow.
775
+ - Added `--script-inventory-from-snapshot <file>` with optional
776
+ `--script-inventory-output <file>` so checkout owners can turn an observed
777
+ `third-party-inventory` runtime snapshot into a source-free PCI inventory
778
+ review starter before adding authorization, justification, owner, and review
779
+ dates.
780
+ - Added `--runtime-incidents <csv|json>` to `jso-protector compliance
781
+ pci-dss-v4` so the report can summarize the Dashboard Monitoring
782
+ runtime-incident export as source-free PCI DSS v4 11.6.1 evidence.
783
+ - Broadened the same flag to accept the Dashboard Monitoring JSON export too,
784
+ so support tooling and release automation can feed machine-readable incident
785
+ evidence into the PCI report without converting to CSV first.
786
+ - Runtime incident JSON evidence now preserves Dashboard Monitoring export
787
+ filters, such as active status or high/critical severity, in the JSON summary
788
+ and Markdown evidence table.
789
+ - Runtime incident JSON evidence now also preserves Dashboard Monitoring
790
+ routing recommendations, including escalation level, recommended queue, and
791
+ preferred evidence packet, in the PCI evidence JSON and Markdown report.
792
+ - Dashboard Monitoring now shows that same source-free routing recommendation
793
+ on the current filtered incident view before checkout and support owners
794
+ export the JSON evidence packet.
795
+ - Runtime incident JSON evidence now preserves routing response targets and
796
+ next status actions, so PCI reviewer packets can carry queue, timing, and
797
+ triage-state guidance without embedding source code.
798
+ - The Markdown/JSON report now records CSV SHA-256, incident count, status and
799
+ severity counts, open/reviewing totals, high-or-critical unresolved totals,
800
+ received/event date ranges, and Build IDs without embedding every raw URL or
801
+ user-agent row.
802
+ - Updated payment-page documentation so checkout owners can pair signed
803
+ manifests, watermarks, beacon/SIEM routing, and dashboard incident history
804
+ in one reviewer-friendly command.
805
+
806
+ ### AI resistance evidence report (2026-06-06)
807
+
808
+ - Added `--ai-resistance-evidence <report.json>` so security reviewers can
809
+ turn a saved, source-free API report into a current AI-resistance evidence
810
+ checklist without sending source to an AI provider.
811
+ - Added `--ai-resistance-evidence-output <file>` so the same checklist can be
812
+ written as a reviewer artifact, using text by default or JSON when `--json`
813
+ is set.
814
+ - Extended `verify:ai` static checks so the AI evidence output artifact
815
+ workflow remains visible in both the CLI and public AI Resistance Evidence
816
+ docs.
817
+ - Added a non-scoring attacker-model review matrix to the evidence checklist.
818
+ The matrix covers identifier recovery, string recovery, control-flow
819
+ reconstruction, sensitive-function extraction, runtime instrumentation,
820
+ compatibility regression, and source-free handoff without claiming the
821
+ planned Resistance Score is live.
822
+ - The report checks build identity, strong protection options, optional VM
823
+ proof, runtime-defense evidence, compatibility evidence, and source-free
824
+ review data while clearly marking Resistance Score as planned, not live.
825
+ - The Markdown-style text output and JSON report now include explicit claim
826
+ boundaries for current evidence, planned Resistance Score, bounded AI
827
+ resistance claims, and client-side runtime secrecy limits.
828
+ - Added `--require-vm-proof` for release teams that want VM-backed evidence to
829
+ be a hard CI gate.
830
+
831
+ ### VM proof-pack verifier (2026-06-06)
832
+
833
+ - Added `--verify-vm-proof <report.json>` so security reviewers can validate a
834
+ saved, source-free API report without inspecting private source.
835
+ - The verifier checks that VM protection was requested, VM protection was
836
+ applied, the virtualized function count meets `--min-vm-functions`, and
837
+ `VMProtectionWarnings` is empty.
838
+ - Added CLI regression tests for saved-report and direct-report shapes.
839
+
840
+ ### Competitor gap report hosted-runtime evidence (2026-06-06)
841
+
842
+ - The runtime-defense capability now lists hosted dashboard intake,
843
+ `RuntimeDefenseBeaconUrl`, Dashboard Monitoring, SIEM forwarding, and
844
+ countermeasure helpers as the JSO evidence surface.
845
+ - The generated migration plan now tells teams to route runtime events to
846
+ customer monitoring or `/v1/runtime/beacon.ashx` before manually validating
847
+ competitor anti-debug/self-defending switches.
848
+ - Added regression coverage so the CLI report keeps the hosted first-triage
849
+ path visible during competitor migrations.
850
+
851
+ ### Migration documentation parity wording (2026-06-06)
852
+
853
+ - Updated the README, migration guide, and security checklist so runtime
854
+ defense is described as a mapped/partial capability with monitoring and
855
+ countermeasure helpers, not as a pure unresolved gap.
856
+ - The competitor report docs now name Obfuscator.io explicitly and call out
857
+ manual validation for protected source-map generation, release readiness,
858
+ and review-only migration fields.
859
+
860
+ ### Competitor gap report runtime-defense parity (2026-06-06)
861
+
862
+ - Runtime-defense parity now reports as `partial` instead of a pure `gap`
863
+ because `jso-protector` ships runtime monitoring, beacon forwarding, and
864
+ countermeasure helpers.
865
+ - The competitor list now names Obfuscator.io explicitly alongside
866
+ `javascript-obfuscator`, JS-Confuser, Jscrambler, and JSDefender.
867
+ - Migrated anti-debug, integrity, self-defending, and tamper-protection
868
+ switches remain review-only limitations because they are not one-to-one
869
+ hosted API options.
870
+ - Added a CLI test assertion so the runtime-defense capability cannot regress
871
+ to a pure gap while the JSO runtime helpers remain available.
872
+
873
+ ### Compliance evidence forwarder — push reports to GRC platforms (2026-06-02)
874
+
875
+ New `compliance/evidence-forwarder.js` + a `--push` flag on the
876
+ `compliance` CLI. After the PCI DSS v4 reporter generates a report, the
877
+ forwarder normalizes it into a vendor-neutral evidence artifact (control
878
+ mappings, summary, build id, content sha256) and POSTs it to a GRC
879
+ platform so the per-build report that already exists also lands in
880
+ Drata / Vanta / an in-house system without a manual upload.
881
+
882
+ ```
883
+ npx jso-protector compliance pci-dss-v4 \
884
+ --manifest dist/build.manifest.json.sig --root dist \
885
+ --push drata --push-endpoint "$JSO_GRC_ENDPOINT" --push-token "$JSO_GRC_TOKEN"
886
+ ```
887
+
888
+ Three profiles shape the envelope + headers: `generic` (artifact as-is,
889
+ optional HMAC signing identical to the jso-beacon-slack webhook adapter),
890
+ `drata`, and `vanta`. Field names are overridable via `fieldMap`. The
891
+ tenant endpoint + token are operator-supplied — GRC platforms are
892
+ multi-tenant, so the module deliberately does not hardcode a vendor API
893
+ version it can't keep current; the profile only shapes the request.
894
+
895
+ Contract matches the SIEM adapters: the forwarder never throws — a flaky
896
+ GRC endpoint resolves to `{ ok:false, status:0, error }` and does NOT
897
+ change the compliance exit code (the report's own verdict is the
898
+ authority; forwarding is a side channel). 14 new tests (artifact
899
+ normalization + stable hashing, all three profiles, fieldMap overrides,
900
+ HMAC verifiability, transport-failure + throw isolation, non-2xx
901
+ handling). 315/315 full jso-protector suite passes.
902
+
903
+ ### AI script data governance — block LLM-bound exfiltration (2026-06-02)
904
+
905
+ New browser runtime module `jso-protector/runtime/ai-script-governance.js`
906
+ that hooks `fetch`, `XMLHttpRequest`, and `WebSocket` on the protected
907
+ page and watches for requests that hit a known LLM provider endpoint.
908
+ Closes the Jscrambler "AI Data Governance" parity gap surfaced by the
909
+ latest deep-research workflow.
910
+
911
+ What it catches:
912
+
913
+ - a Magecart-style script exfiltrating card data to a free OpenAI
914
+ endpoint ("summarize this number")
915
+ - an untrusted third-party widget quietly streaming page contents to
916
+ its own AI backend
917
+ - a compromised CI/CD dependency that POSTs conversation history to
918
+ a side-channel LLM
919
+
920
+ Default known-host list covers OpenAI / Anthropic / Google
921
+ (Gemini + Vertex) / Groq / Together / Mistral / AWS Bedrock
922
+ (region-prefixed) / Cohere / Perplexity / xAI / DeepSeek / Replicate /
923
+ Hugging Face Inference / Azure OpenAI (tenant-prefixed). Extensible via
924
+ `config.additionalKnownLLMHosts`.
925
+
926
+ Two enforcement modes:
927
+
928
+ - `log` (default) — records destination + payload size + caller stack
929
+ frame; request proceeds.
930
+ - `block` — refuses. `fetch` returns a synthetic HTTP 451; XHR
931
+ transitions to `readyState=4 status=0`; `WebSocket` constructor
932
+ throws.
933
+
934
+ Events emit through the same beacon channel as `third-party-inventory`,
935
+ so the existing `jso-beacon-slack` SIEM adapters forward them unchanged
936
+ (envelope `kind: "ai-data-access"`).
937
+
938
+ 17 new tests, 301/301 full jso-protector suite passes.
939
+
940
+ ### Electron V8 bytecode adapter + React Native 2026 playbook (2026-06-02)
941
+
942
+ Completes deep-research GAP 5.
943
+
944
+ - New sibling package **`jso-protector-electron`** (`packages/jso-protector-electron/`)
945
+ with `compileDirectory({input, output, mode})` that walks JSO-protected
946
+ JS and emits V8 bytecode `.jsc` files via `vm.Script.createCachedData()`.
947
+ Two execution modes:
948
+ - `embedded` (run under Electron): emits real `.jsc` files bound to
949
+ the host Electron's V8 build.
950
+ - `scaffold-only` (plain Node): emits the source + per-file
951
+ `.bytecode-meta.json` for CI environments that don't ship Electron.
952
+ - `auto` picks based on `process.versions.electron`.
953
+ CLI: `jso-protector-electron --input dist-protected --output dist-bytecode`.
954
+ Each `.jsc` carries an 8-byte magic + length-prefixed JSON header +
955
+ the V8 cachedData blob so an auditor can validate coverage. 14 tests
956
+ cover both modes, the CLI surface, the header layout, and the
957
+ actionable error when embedded mode is invoked under plain Node.
958
+
959
+ - New **`examples/react-native/README.md`** playbook (2026 refresh)
960
+ walking the modern React Native + JSO pipeline:
961
+ - Metro `customSerializer` JSO integration (existing `metro.js`).
962
+ - Hermes bytecode layering (`.hbc`).
963
+ - **Play Integrity API** (Android) replacing the deprecated
964
+ SafetyNet Attestation (shut down 2024-06-30).
965
+ - **DCAppAttestService** (iOS) for on-device attestation.
966
+ - JSO release manifest + beacon flow for the in-app verifier.
967
+ - Field-tested gotchas (Reanimated worklets, native-module bridge
968
+ name preservation, dev-mode bypass).
969
+
970
+ ### RASP active countermeasures + named config sets (2026-06-02)
971
+
972
+ Two paired build-time + browser-runtime features completing deep-research
973
+ GAP 4 (JSDefender v2 / Jscrambler RASP parity).
974
+
975
+ **Browser runtime (`runtime/countermeasures.js`):**
976
+
977
+ Six configurable reactions to runtime-defense tamper events, fired after
978
+ the beacon POST so even destructive actions leave telemetry:
979
+
980
+ - `log` - record-only; default, no UI side effects
981
+ - `break` - stub every function on `window.__jsoEntry.*` so the protected
982
+ entry points become no-ops
983
+ - `deleteCookies` - clear cookies + sessionStorage + localStorage to
984
+ defuse stale credentials in a poisoned page
985
+ - `selfDestruct` with `mode: blank-body | crashWithMemory | crashTimeout`
986
+ - `redirect` to a safe URL (`javascript:` schemes rejected at build time)
987
+ - `callback` invoking a customer function with the violation event
988
+
989
+ Configurable as a single action or an ordered array
990
+ (`onTamper: ["break", "deleteCookies"]`). An `allowList` keeps dev
991
+ environments from accidentally shipping destructive escalations.
992
+
993
+ **Build-time named sets (`config/named-sets.js`):**
994
+
995
+ Apply different protection profiles to different parts of one app:
996
+
997
+ ```json
998
+ {
999
+ "preset": "balanced",
1000
+ "countermeasures": { "onTamper": "log" },
1001
+ "namedSets": {
1002
+ "checkout": { "match": ["src/checkout/**", "src/wallet/**"],
1003
+ "preset": "maximum",
1004
+ "options": { "AddDeadCode": true, "DeadcodeLevel": "High" },
1005
+ "countermeasures": { "onTamper": ["break", "deleteCookies"],
1006
+ "redirectUrl": "https://example.com/outage" } },
1007
+ "authenticated": { "match": ["src/dashboard/**", "src/account/**"],
1008
+ "preset": "maximum",
1009
+ "countermeasures": { "onTamper": ["deleteCookies"] } }
1010
+ }
1011
+ }
1012
+ ```
1013
+
1014
+ First-matching-set wins, so config authors get deterministic precedence
1015
+ by writing sets in priority order (like a route table). The glob matcher
1016
+ supports `**`, `*`, `?`, `[a-z]`, `{a,b}` — including `/**` at end which
1017
+ matches the bare directory plus any nested files (so `src/checkout/**`
1018
+ covers `src/checkout` AND `src/checkout/a/b.js`).
1019
+
1020
+ Schema (`jso.config.schema.json`) extends with `countermeasures` and
1021
+ `namedSets` as top-level properties plus a `$defs/countermeasures`
1022
+ shared definition. Strict `additionalProperties: false` is preserved
1023
+ on both the top-level and per-set objects.
1024
+
1025
+ 28 new tests (15 countermeasures + 13 named-sets), full jso-protector
1026
+ suite **284/284 pass**, verify chain green.
1027
+
1028
+ ### Third-party script inventory + Magecart detection (2026-06-02)
1029
+
1030
+ New browser-side runtime module `jso-protector/runtime/third-party-inventory.js`
1031
+ that snapshots every script loaded by a payment page and flags violations
1032
+ to a beacon URL.
1033
+
1034
+ Detection signals:
1035
+
1036
+ - script `src` outside the configured `originAllowlist`
1037
+ - inline `<script>` whose sha256 is not in `inlineContentAllowlist`
1038
+ - script DOM-injected AFTER `document.readyState === "complete"`
1039
+ (defer-injection is a common Magecart evasion)
1040
+ - same script URL but its content sha256 changed since the previous
1041
+ deploy (catches CDN supply-chain swap attacks)
1042
+
1043
+ Pure browser code (Web Crypto, fetch, PerformanceObserver) so it ships
1044
+ in the protected bundle without server-side support. The module's
1045
+ inventory snapshots emit through the same beacon channel as the rest
1046
+ of the runtime-defense suite, so jso-beacon-slack forwards them to
1047
+ Splunk / Elasticsearch / generic webhook unchanged.
1048
+
1049
+ ```js
1050
+ // In the page that's being protected:
1051
+ const tpi = require("jso-protector/runtime/third-party-inventory");
1052
+ tpi.attach(window, {
1053
+ buildId: window.__jsoBuildId,
1054
+ originAllowlist: ["https://www.example.com", "https://cdn.example.com"],
1055
+ inlineContentAllowlist: ["a3f5...sha256...", "b07e..."],
1056
+ previousContentBySrc: { "https://cdn.example.com/lib.js": "<old-sha256>" },
1057
+ beaconUrl: "https://beacon.example.com/v1/jso/inventory",
1058
+ flushIntervalMs: 15000,
1059
+ });
1060
+ ```
1061
+
1062
+ 16 new tests (256 total in jso-protector) cover the pure-engine path
1063
+ (unknown-origin / unknown-inline / injected-after-load /
1064
+ content-changed-vs-previous-deploy / dedup / backpressure /
1065
+ '*'-wildcard / trailing-slash) and the DOM-attach path
1066
+ (idempotency + `createElement('script')` setter intercept).
1067
+
1068
+ ### PCI DSS v4.0.1 compliance reporter (2026-06-02)
1069
+
1070
+ New offline subcommand `jso-protector compliance pci-dss-v4` that consumes
1071
+ a `--sign-release`-produced manifest envelope and emits a Markdown +
1072
+ JSON evidence report mapping JSO primitives onto the two PCI DSS v4
1073
+ controls JSO directly contributes to:
1074
+
1075
+ - **Req 6.4.3** payment-page script management — covered by HMAC watermarks
1076
+ (sub-req .a, authorized), Ed25519 release attestation (.b, integrity),
1077
+ and the manifest `files[]` array (.c, inventory).
1078
+ - **Req 11.6.1** change/tamper detection — covered by Runtime Defense +
1079
+ BeaconUrl wiring (.a/.b, detection + cadence) and jso-beacon-slack SIEM
1080
+ adapters (.c, personnel alerts).
1081
+
1082
+ CLI:
1083
+
1084
+ ```
1085
+ jso-protector compliance pci-dss-v4 \
1086
+ --manifest dist/build.manifest.json.sig \
1087
+ --root dist \
1088
+ --watermark-key "$JSO_WATERMARK_KEY" \
1089
+ --beacon-url https://beacon.example.com/v1/jso \
1090
+ --siem splunk-hec \
1091
+ --organization "Example Corp" \
1092
+ --output reports/pci-dss-v4.md
1093
+ ```
1094
+
1095
+ Exit codes follow the same shape as `--verify-release`: 0 = fully evidenced,
1096
+ 1 = evidence gaps, 2 = manifest unsigned. The reporter is pure-offline —
1097
+ no HTTP traffic, no telemetry. New `compliance/pci-dss-v4/` directory
1098
+ ships in the npm tarball; 12 new tests (240 total) all pass.
1099
+
1100
+ ### Supply-chain integrity surface
1101
+
1102
+ - Added `--competitor-gap-report` to summarize covered / partial / gap parity
1103
+ against common JavaScript obfuscator surfaces after migrations, including
1104
+ runtime-defense, source-map, lock, and release-forensics guidance.
1105
+ - Added public TypeScript declarations and package verification coverage for
1106
+ the competitor gap report helpers.
1107
+ - Added `--competitor-gap-report` to the optional CI template hint block and
1108
+ extended CI template verification so all shipped pipelines keep surfacing
1109
+ competitor migration gap checks.
1110
+ - Added the same competitor gap report step to Kubernetes and Helm release
1111
+ examples, plus migration/security/example docs that call out its
1112
+ source-free behavior.
1113
+ - Added `competitor-gap` to migration next-command output, gave the JSON report
1114
+ a stable `format` / `version` envelope, and included the report in
1115
+ `--local-only` preflight guidance.
1116
+ - Added `--watermark <tag> --watermark-key <key>` &mdash; injects an HMAC-SHA256
1117
+ header-comment marker into every input file before submission to the
1118
+ obfuscation API. The obfuscator's `KeepComment` option preserves the
1119
+ block verbatim through every transform so the marker survives in the
1120
+ protected output. `JSO_WATERMARK_KEY` env-var fallback. Wire format
1121
+ documented at /Docs/WireFormat.aspx#watermark.
1122
+ - Added `--verify-watermark <file>` &mdash; single-file watermark validator.
1123
+ With `--watermark-key`, runs a constant-time HMAC compare; without, prints
1124
+ the embedded tag (lookup-only mode for forensic inspection of leaked
1125
+ artifacts). Exit codes: 0 valid / 1 invalid / 2 missing-or-no-key.
1126
+ - Added `--scan-watermarks <dir>` &mdash; tree walker for forensic / inventory
1127
+ use. Skips `node_modules` + `.git`. Aggregates findings into a sorted
1128
+ report. Exit codes: 0 all clean, 1 at least one invalid signature, 2 no
1129
+ watermarks found at all.
1130
+ - Added `--sign-release <priv.pem>` &mdash; produces an Ed25519-signed release
1131
+ attestation `.manifest.json.sig` next to the manifest. Covers BuildId +
1132
+ polymorphism fingerprint + label + per-file SHA-256. Canonical-JSON
1133
+ serialization so verifiers in any language produce byte-identical
1134
+ signatures.
1135
+ - Added `--verify-release <sig>` &mdash; validates the envelope. Stage 1 is
1136
+ Ed25519 signature over canonical manifest. Stage 2 (when `--verify-root
1137
+ <dir>` is also passed) re-hashes referenced files on disk to catch
1138
+ post-signing artifact tampering. `--public-key <pem>` pins to a trusted
1139
+ public key (defeats key-substitution attacks).
1140
+ - Added `--genkey-release <name>` &mdash; mints a fresh Ed25519 keypair, writes
1141
+ `<name>.priv.pem` (0o600) and `<name>.pub.pem` (0o644). Removes the
1142
+ "where do I get keys" friction.
1143
+ - Added `--estimate` &mdash; pre-flight quota gate. Walks input files, calls
1144
+ `/v1/ai/usage` for current-month counters, prints a three-state report
1145
+ (OK / WARN / FAIL). FAIL (exit 1) when actions remaining = 0 blocks
1146
+ builds that can't finish. Network failure on the usage endpoint
1147
+ downgrades to WARN with a note (doesn't crash the pipeline).
1148
+ - Added `--ai-precheck` &mdash; inline AI compatibility gate. Runs
1149
+ `/v1/ai/compat-check` on every input file before the obfuscation API
1150
+ is called; aborts the build on findings per `--ai-precheck-fail-on`
1151
+ (`error` / `warning` / `never`). Quota untouched on failure.
1152
+ - New `jso ai compat-scan` subcommand &mdash; stand-alone compat-check over
1153
+ every input file in `jso.config.json`. Useful for pre-commit hooks and
1154
+ IDE integrations.
1155
+ - jso.config.schema.json: added `report`, `label`, `watermark`, and
1156
+ `watermarkKey` to the schema so config validators stop rejecting these
1157
+ documented keys. (Previous behavior: `additionalProperties: false`
1158
+ caused IDE schema validators to flag the keys as unknown.)
1159
+ - Coverage: new test suites `test/ai-precheck.test.js`, `test/watermark.test.js`,
1160
+ `test/release-signer.test.js`, `test/estimate.test.js`,
1161
+ `test/scan-watermarks.test.js`, `test/compat-scan.test.js`,
1162
+ `test/wire-format-vectors.test.js` &mdash; 54 new cases on top of the
1163
+ pre-existing AI client tests. Full suite 64/64.
1164
+
1165
+ ### --init templates
1166
+
1167
+ - Added `nextjs-app` and `react-native-app` `--init` templates plus `next`, `nextjs`, `react-native`, `reactnative`, `metro`, and `expo` aliases so scaffolded configs match the existing framework integrations.
1168
+ - Added `vite-app`, `webpack-app`, `rspack-app`, and `turbopack-app` `--init` templates plus matching aliases so supported modern build paths now have first-class starter configs.
1169
+ - Added `parcel-app`, `bun-app`, and `browserify-app` `--init` templates plus matching aliases so shipped Parcel/Bun/Browserify workflows now scaffold directly from the CLI.
1170
+ - Added first-class `parcel`, `bun`, and `turbopack` package exports so the documented post-build workflows now ship with callable helpers and typed plan/config APIs.
1171
+
1172
+ ## 0.1.1
1173
+
1174
+ - Added `--mode` support so CommonJS and ES module config functions can branch cleanly across production, staging, and similar release profiles.
1175
+ - Added the `electron-app` init template plus `electron` and `desktop` aliases for faster Electron/Desktop release onboarding.
1176
+ - Added shipped Parcel, Bun, and Turbopack post-build examples plus README coverage for modern release pipelines without dedicated wrapper entrypoints.
1177
+ - Fixed TypeScript init-template declarations so the public types include the shipped `electron-app` scaffold and aliases.
1178
+ - Added regression coverage to ensure package JSON files do not introduce duplicate keys.
1179
+ - Updated local-install tarball references and package metadata for the new patch release.
1180
+
1181
+ ## 0.1.0
1182
+
1183
+ Initial private package scaffold for JavaScript Obfuscator HTTP API workflows.
1184
+
1185
+ - Added dependency-free CLI for directory, single-file, stdin/stdout, and dry-run workflows.
1186
+ - Added named presets: `standard`, `balanced`, and `maximum`.
1187
+ - Added JSON config schema, `--init`, online web-preset import, and CI option overrides.
1188
+ - Added `doctor` preflight checks with optional tiny live API validation.
1189
+ - Added Node API plus esbuild, Vite, Rollup, and Webpack entrypoints.
1190
+ - Added a dedicated `react-native` alias entrypoint for Metro/Expo integrations.
1191
+ - Added TypeScript declarations for public entrypoints.
1192
+ - Added source-map removal, asset copying, include/exclude filtering, and public-name preservation helpers.
1193
+ - Added Webpack 4 compatibility through a legacy `emit`-hook fallback while keeping Webpack 5 and Rspack support.
1194
+ - Expanded Browserify, Webpack plugin, and Webpack/Rspack loader coverage to respect configured script extensions such as `.mjs` and `.cjs`.
1195
+ - Added JS-Confuser migration helpers for the CLI and Node API, including starter-config conversion, option explanations, and direct translation for common presets, locks, and string/control-flow settings.