Anti-AIClone

Log date · Sat

Does javascript-obfuscator upload your source?

The Pro API sends source to an external service. Version 5.5.0 changed large uploads; our local test checks string visibility.

Does cloud JavaScript obfuscation upload source?

Yes. Using the javascript-obfuscator Pro API means sending the source to an external service. The 5.5.0 large-upload fix changed the transfer format; it did not keep source local. [1] In our local 5.5.0 comparison, a synthetic output without a string array was 151 bytes; the Base64 string-array output was 2,268 bytes. Both printed the same result, but only the former contained the complete placeholder in a direct text search.

Findings at a glance
CaseResult or recommendation
What is uploaded?The Pro API blob upload sends raw source.
Did local outputs run?Both printed the placeholder and 154.
Did an exact search find the placeholder?Yes without the string array; no with Base64.
What happened to size?151 versus 2,268 bytes for this small sample.

What 5.5.0 changed

Released on 18 July 2026 at 08:41 UTC, 5.5.0 lists one change: a rework of large Pro API uploads. The notes describe a fix for 413 errors with request bodies of roughly 4.4–4.6 MB, a switch from JSON request bodies to raw source blobs, and the expectation that uploads fit the purchased plan’s file size cap. [1] The notes do not list a change to obfuscation algorithms or options.

A request body and a source file are not necessarily the same size: its envelope can add bytes. Check the boundary against your own plan and actual build input instead of treating that historical range as a universal limit. Before upgrading, record input size, plan limit and failure response; afterwards repeat the same build in an approved environment and check the result and error handling.

Our experiment runs the local open-source CLI only. It does not call the Pro service, upload source or reproduce a 413; it checks behavior and visibility in local files before and after transformation.

Two configurations in practice

The sample uses an obviously fake placeholder and a small price calculation. With Node 20.19.5 and javascript-obfuscator 5.5.0, we fixed seed 42 and compared a disabled string array with a Base64 string array. The documentation describes the options and a seed for repeatable results. [2]

Our sample uses a fake credential.
function quote(quantity) {
  const marker = 'DEMO-KEY-not-a-real-credential-0000';
  return marker + ':' + (120 + quantity * 17);
}
console.log(quote(2));
Verbatim output from the transcript.
plain.js bytes: 151

plain.js result: DEMO-KEY-not-a-real-credential-0000:154
plain.js exact placeholder: present
encoded.js bytes: 2268

encoded.js result: DEMO-KEY-not-a-real-credential-0000:154
encoded.js exact placeholder: absent

The exact search missed the second output, yet the program still printed the original value. That check shows only that the complete literal was absent as identical text; it does not establish secrecy or measure recovery effort. Helper code made this tiny output much larger. Measure size and runtime overhead on your own bundle.

Obfuscation can reduce immediately readable clues, but the client still executes the code and uses its data. Do not put a shared privileged server credential in the front end and rely on string transformation to protect it. Classify public configuration, user tokens and server secrets separately, then handle each according to its privileges and revocation path.

Recommendations by case

These are engineering recommendations, not security gains measured by our experiment. First identify what leaves the build environment, then decide whether to use the service.

Recommendations by case
CaseResult or recommendation
Source may go to a serviceReview processing, retention, access controls and contract; record the approved upload scope.
Source must stay in the build environmentUse a local processing workflow and review dependencies and other outbound steps.
Bundle contains a shared privileged keyMove it server-side, restrict and rotate an exposed value; use scoped client tokens.
Input approaches the plan capRecord source and request sizes; test boundaries and failure handling in an approved environment.

Also inventory source maps, error reports and CI logs that may contain source. Reviewing the obfuscation step alone misses other transfer paths. Restrict access and retain artifacts according to team policy; avoid copying real secrets found by a scan into logs or tickets.

Check your own build

First reproduce the sample in an isolated directory. The commands assume 5.5.0 is already installed and pinned; substitute a test input you are authorized to inspect. A fixed seed helps comparisons, but after an upgrade compare configuration, dependencies and behavior as well as file differences.

Generate both outputs locally and check behavior and size.
javascript-obfuscator sample.js --output plain.js --seed 42 --string-array false
javascript-obfuscator sample.js --output encoded.js --seed 42 --string-array true --string-array-threshold 1 --string-array-encoding base64
node sample.js
node plain.js
node encoded.js
wc -c sample.js plain.js encoded.js

For a release build, scan for secrets before obfuscation and review source, dependencies and build configuration. Verify the upload destination, files actually sent, whether a failure stops the build, and where source maps go. Do not put real credentials on the command line or treat a negative exact search as a security acceptance test.

Finally run key flows, error reporting and the full regression suite on the packaged and signed artifact. Record the tool version, configuration, input identity and results so the released artifact is the one tested. On upload failure, retain diagnostics without source or credentials and avoid silently falling back to an unprocessed bundle.

Your checklist

  • Inventory outbound source, source maps and logs.
  • Review service data terms and approved upload scope.
  • Scan before obfuscation and rotate exposed privileged credentials.
  • Pin version and configuration; check upload failure handling.
  • Run full regression against the final signed artifact.

Primary sources

All sources and reproduction status ↗