
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@ovotech/genesys-web-messaging-tester
Advanced tools
Easily write automated, and repeatable tests for Genesys' Web Messenger flows. The library provides a simple API for interacting with conversations, allowing you to send messages and set expectations on replies. It has been designed to run in test frameworks (e.g. Jest) and standalone scripts.
const session = new WebMessengerGuestSession({
deploymentId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
region: 'xxxx.pure.cloud',
});
const convo = new Conversation(session);
await convo.waitForConversationToStart();
await convo.sendText('hi');
await convo.waitForResponseContaining('Please enter your account number');
await convo.sendText('123');
await convo.waitForResponseContaining('Your account number is too short. It is the 6 digit number on your bills');
Install using npm
:
npm install -g @ovotech/genesys-web-messaging-tester
Then write a test. In the example below we test the validation of an account number:
const WebMsgTester = require('@ovotech/genesys-web-messaging-tester');
(async () => {
const session = new WebMsgTester.WebMessengerGuestSession({
deploymentId: process.env.DEPLOYMENT_ID,
region: process.env.REGION,
});
const convo = new WebMsgTester.Conversation(session);
await convo.waitForConversationToStart();
await convo.sendText('hi');
await convo.waitForResponseWithTextContaining(
'Can we ask you some questions about your experience today?',
);
await convo.sendText('Yes');
await convo.waitForResponseWithTextMatchingPattern(/Thank you! Now for the next question[.]+/im, {
timeoutInSeconds: 10,
});
session.close();
})().catch((e) => {
throw e;
});
Finally, run the test by executing the script:
node examples/api/src/js-script.js
Messages sent between the client and Genesys' server can be output by setting the environment variable:
DEBUG=WebMessengerGuestSession
FAQs
Unknown package
We found that @ovotech/genesys-web-messaging-tester demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 36 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.