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.
processor.js is a platform-independent, JavaScript node.js npm-based library for creating problem-oriented object models, implementation of component-based architecture and application of IoC-patterns. See also controls.js COM library.
About the syntax:
// fs.* namespace component module
// Copy files to folder
create('fs.copy', [['libs/jquery.js', 'libs/marked.js', 'libs/bootstrap.js'], 'temp'])
.updateSync();
// Enumerate files in subdirectories
var list =
create('fs.walker [f]', [/.*\.utest\.js/i, 'src'])
.listSync();
// Creating object model
// list source files
root
.add('source:fs.directory force', 'temp')
._add('file1:filereader', 'test1.dat')
._add('file2:filereader', 'test2.dat');
// destination file
root
.add('destination:filewriter', 'temp/out.dat');
// operation
root.add('concat:fs.concat', [root.source.childs, root.destination]);
// events
root.findFirst('filereader')
.on('watcher', function() {
alert('oops! test1.dat file changed!');
});
Approach using OM will allow more flexibility to manage tasks and task parameters. And the possibilities of language, whether it is even and JavaScript, allow you to program components in a simple way, macros and scripts of any complexity.
npm install processor
install modules
npm install com-fs
...
var processor = require('processor'),
create = processor.create.bind(processor);
// using fs namespace components
require('com-fs');
// recursively walk and build file list
create('fs.walker raw', [/.*\.js/, '/src'])
.listSync(function(path) {
...
});
});
GitHub modules list repository
com-fs basic file system components module
FAQs
Component object model library
The npm package processor receives a total of 232 weekly downloads. As such, processor popularity was classified as not popular.
We found that processor 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.
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.