
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
micro-packager
Advanced tools
Library to extract part of an npm package and create a new smaller npm package that contains only the component pieces required.
Library to extract part of an npm package and create a new smaller npm package that contains only the component pieces required. Just point the packager to the main root file and the application will be spidered and pull in all required dependencies.
In addition to extracting the smaller application, there is also the option to deploy to AWS Lambda to run the smaller application as a function.
NOTE: This is a very rough first pass at the application. The actual process can be cleaned up but at the moment just trying to work on a PoC.
var packager = require('micro-packager');
// put all the options together...
var opts = {
package_name: '',
app_root: '',
output_dir : '',
root_file: '',
execution_file: '',
additional_files : [],
required_modules: {},
delete_temp_dir: false,
remove_directories : [],
include_node_modules : true
};
// Build the package...
packager.build(opts, function(err, results){
console.log(arguments);
});
package_name
: The name that should be assigned to the new package.app_root
: The absolute path to the root of the parent/source application.output_dir
: The directory the zip file should be written to.root_file
: The file that should be used to start the spidering to get all the component pieces.execution_file
: The file that holds the code that will serve as the execution file in the new application.additional_files
: An array of any additional files that need to be included in the new application.required_modules
: An array of any additional npm modules that need to be included in the new application.delete_temp_dir
: If the temporary directory should be removed after creation. Default true.remove_directories
: An array of directories that should be removed to decrease the size of the application. In some cases npm modules have a build directory that can be removed after the npm install has run.include_node_modules
: If the node_modules directory should be included.FAQs
Library to extract part of an npm package and create a new smaller npm package that contains only the component pieces required.
The npm package micro-packager receives a total of 0 weekly downloads. As such, micro-packager popularity was classified as not popular.
We found that micro-packager 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.