Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
import cuffeo from "cuffeo";
(async () => {
const clients = [
{
type: "irc",
enabled: true,
network: "name",
host: "localhost",
port: 6697,
ssl: true,
selfSigned: false,
sasl: false,
nickname: "nickname",
username: "username",
password: "password",
realname: "realname",
channels: [
"#blah"
]
},
{
type: "tg",
enabled: true,
token: "token",
pollrate: 1001
},
{
type: "slack",
enabled: true,
token: "token"
}
];
const bot = await new cuffeo(clients);
// events
bot.on("message", msg => {
msg.reply("hello, world!");
});
bot.on("info", msg => {
console.log(msg);
});
bot.on("error", err => {
console.error(err);
});
bot.on("ctcp:ping", msg => { // irc only
msg.write(`notice ${msg.user.nick} :${e.message}`);
});
bot.on("ctcp:version", msg => { // irc only
msg.write(`notice ${msg.user.nick} :\u0001VERSION blah\u00001`);
});
})();
{
"type": "irc",
"enabled": true,
"network": "name",
"host": "localhost",
"port": 6697,
"ssl": true,
"selfSigned": false,
"sasl": false,
"nickname": "nickname",
"username": "username",
"password": "password",
"realname": "realname",
"channels": [
"#blah"
]
}
{
"type": "tg",
"enabled": true,
"token": "token",
"pollrate": 1001
}
{
"type": "slack",
"enabled": true,
"token": "token"
}
returns an object, containing:
variable | type | explanation | note |
---|---|---|---|
type | string | irc, tg or slack | |
network | string | irc only, other it'll be "telegram" or "slack" | |
channel | string | ||
user | object | see below | |
message | string | ||
time | string | timestamp | |
raw | object | ||
reply | function | ||
replyAction | function | ||
replyNotice | function | ||
self | object | ||
_chan | object | irc only | |
_user | object | irc and telegram only | |
join | function | join a channel | irc only |
part | function | part a channel | irc only |
whois | function | request a whois | irc only |
write | function | write raw lul |
variable | type |
---|---|
account | string |
prefix | string |
msg.reply("message");
msg.replyAction("message");
msg.replyNotice("message"); // same as reply() on Slack and Telegram
msg.join("#channel");
msg.part("#channel", "message");
// or
msg.part([ "#channel1", "#channel2" ], "message");
msg.whois("user");
// or
msg.whois([ "user1", "user2" ]);
msg.reply("[color=red]message[/color]");
allowed colors:
msg.reply("[b]bold[/b]");
msg.reply("[i]italic[/i]");
FAQs
A multi-protocol chatbot library with nearly zero dependencies.
The npm package cuffeo receives a total of 19 weekly downloads. As such, cuffeo popularity was classified as not popular.
We found that cuffeo 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.