Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
js-obfuscator-api
Advanced tools
Obfuscate JavaScript files via the formal (paid) API of http://javascriptobfuscator.com.
Obfuscate your JS code using the formal (paid) HTTP API of http://www.javascriptobfuscator.com.
You need a Premium Membership Subscription in order to use this package.
$ npm i -D js-obfuscator-api
module.exports = function (grunt) {
require('js-obfuscator-api')(grunt);
grunt.initConfig({
obfuscate: {
dist: {
src: 'dist/bundle.js',
dest: 'dist/bundle.js',
obfuscateOptions: {
APIKey: process.env.OBFUSCATOR_API_KEY,
APIPwd: process.env.OBFUSCATOR_API_PWD,
VariableExclusion: '^_get_ ^_set_ ^_mtd_',
EncodeStrings: true,
MoveStrings: true,
ReplaceNames: true,
WriteFormats_KeepIndent: false
}
}
}
});
grunt.registerTask('deploy', ['obfuscate:dist']);
};
Check out the default options and read more about obfuscation options at: https://service.javascriptobfuscator.com/httpapi.asmx?WSDL.
It is NOT recommended to put these hard coded in Gruntfile.js
. You should pass them as environment variables using process.env
.
FAQs
Obfuscate JavaScript files via the formal (paid) API of http://javascriptobfuscator.com.
The npm package js-obfuscator-api receives a total of 229 weekly downloads. As such, js-obfuscator-api popularity was classified as not popular.
We found that js-obfuscator-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.