Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Ash is a framework for the bohemian web developer. Executed on Node.js or run in the client, Ash provides an intuitive, unrestrictive boudoir in which creators can frolic with and fondly tease the interwebs. The truths and understandings upheld in the body of code known as Ash are;
The project is still in its early stages and is currently showing signs of emergent behavior. Once it chills out I'll add the obligatory "Getting Started" documentation here.
Install Ash;
npm install ash -g
Create a file called helloworld.js in an empty directory;
define({
index: function (api) {
api.done("Hello world.");
}
});
In the same directory start Ash;
ash start
Open http://localhost:3000/?module=helloworld&method=index in a browser.
To run the same code 100% in the browser you need to add one file name init.js with the content;
require(["lib/adapters/dom"]);
Then start Ash in webapp mode;
ash webapp
Open http://localhost:3000/?module=helloworld&method=index in a browser.
request = {
module: "", // a relative path to a module
method: "", // the function to call on the module
inputs: {} // a map of values to be made avaliable to the function
};
response = {
done: function (data, meta){
// Adapter to runtime
},
flush: function (data, meta) {
// Adapter to runtime
}
};
dispatcher = function (request, response) {
// Map request object to function (api)
};
api = {
done: response.done,
flush: response.flush,
dispatch: dispatcher,
use: { /* helpers */ }
};
Defined using the Asynchronous Module Definition API, Function Collections are a grouping mechanism for organizing your code. Each function defined in the collection must take exactly one argument, the value of which is a Runtime Agnostic Api Object.
define({
index: function (api) {
api.done("Hello world.");
}
});
Defined using the Asynchronous Module Definition API, helpers are attached to a Runtime Agnostic Api Object when specified in Function Collections. Helpers can implement the function init(), which if present will be called immediately after the helper is created.
define({
init: function (request, response, api) {
// Store for use later
},
func: function () {
// Add functions
}
});
Helpers are specified in Function Collections by the use of a helpers attribute whose value is an array.
define({
helpers: ["config"],
index: function (api) {
var module = api.use.config.get("module");
api.done("This is module: " + module);
}
});
FAQs
Ash is a distributed presentation framework for the bohemian web developer.
The npm package ash receives a total of 2 weekly downloads. As such, ash popularity was classified as not popular.
We found that ash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.