Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@contrast/reporter
Advanced tools
@contrast/reporter
Set up agent IO.
Reporting in the agent follows the PUB-SUB model. Reporters are nothing more than subscribers of messages published by the various agent components. Reporters can collect messages of interest and do with them what they will.
If a reporter want's to communicate with the agent, e.g. send it new settings to update feature behaviors, then it will publish the appropirate message to which the agent component is listening.
Like other services, core will compose @contrast/reporters
into the dependency container object.
const { reporters } require('@contrast/core')();
Clients can than await
any reporter initialization code and respond to any errors.
try {
await reporters.install();
} catch (error) {
// maybe we failed to connect to teamserver or something?
// decide what to do.
}
Other than that, it's just plugging into the agent's event stream.
// e.g. teamserver Protect reporter pseudocode
module.exports = function(deps) {
return {
async install() {
await this.startup(deps);
await this.appCreate(deps);
['InputAnalysis', 'BlockAtPerimeter', 'SinkEvent', 'HTTPRequest'].forEach((msgName) => {
deps.messages.on(msgName, (msg) => {
putInQueueAndReportLater(msgName, msg);
});
});
}
};
};
FAQs
Subscribes to agent messages and reports them
The npm package @contrast/reporter receives a total of 13,043 weekly downloads. As such, @contrast/reporter popularity was classified as popular.
We found that @contrast/reporter 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.