
Research
/Security News
Compromised npm Packages in the AsyncAPI Namespace Deliver Miasma Botnet Loader
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.
This is a work in progress. It is intended to provide a command-line interface for working with the ArchivesSpace backend API. See http://github.com/archivesspace/archivesspace/.
Install:
$ npm install as-cli
Log in to your ArchivesSpace instance and save your session key:
$ as-cli setup
Select your active repository:
$ as-cli repositories
To see all available subcommands:
$ as-cli
In addition to the built-in commands, you can use a custom script. Your script should assign a single function to the module.exports global object, and that function should take a single argument, which is the activated client.
See https://github.com/lcdhoffman/asapi for more information about working with the api.
$ as-cli run-script path/to/your/script.js
Example script:
module.exports = function(api) {
api.eachResource(function(resource) {
var update = false;
for (var i = 0; i < resource.extents.length; i++) {
if (resource.extents[i] && resource.extents[i].extent_type == 'linear_feet') {
resource.extents[i].number = (resource.extents[i].number * 0.3048) + "";
resource.extents[i].extent_type = "linear_meters";
update = true;
}
}
if (update) api.updateRecord(resource, function(err, body) {
if (err) {
throw (err).
} else {
console.log(body);
}
});
});
});
I'm still trying to figure out a way for ad-hoc scripts to use require in a way that doesn't require a local node-modules directory. For the time being, if your script requires a 3rd party module, you'll need to make nodejs think your working directory is a project. (i.e., run npm init and install modules locally, or symink to your global node_modules directory).
FAQs
Command line tool suite for ArchivesSpace
The npm package as-cli receives a total of 3 weekly downloads. As such, as-cli popularity was classified as not popular.
We found that as-cli 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
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.