Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@bytehide/grunt-shield
Advanced tools
A Grunt plugin for protecting JavaScript files using ByteHide Shield obfuscation.
npm install @bytehide/grunt-shield --save-dev
Add this to your Gruntfile.js:
module.exports = function (grunt) {
grunt.initConfig({
bytehideShield: {
options: {
projectToken: 'your-bytehide-token', // or use process.env.BYTEHIDE_TOKEN
distDir: 'dist', // Directory containing files to protect
replace: false, // Replace original files or create new ones
obfuscatedExtension: '.obf', // Extension for protected files
exclude: [], // Files to exclude from protection
config: {
controlFlowFlattening: true,
debugProtection: false,
devtoolsBlocking: false,
}
},
dist: {}
}
});
grunt.loadNpmTasks('@bytehide/grunt-shield');
};
Run the task:
grunt bytehideShield
projectToken
: Your ByteHide project token (required)distDir
: Directory containing files to protect (default: 'dist')replace
: Whether to replace original files (default: false)obfuscatedExtension
: Extension for protected files (default: '.obf')exclude
: Array of filenames to exclude from protectionconfig
: ByteHide Shield configuration options
controlFlowFlattening
: Enable control flow flatteningdebugProtection
: Enable debug protectiondevtoolsBlocking
: Enable devtools blockingFAQs
Grunt plugin for ByteHide Shield code obfuscation
The npm package @bytehide/grunt-shield receives a total of 15 weekly downloads. As such, @bytehide/grunt-shield popularity was classified as not popular.
We found that @bytehide/grunt-shield demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.