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.
Allows fluent syntax for Cassandra Query Language (cql). Basically it creates CQL string queries from JavaScript code.
NOTE! Only CQL3 is supported.
Example:
var stringQuery = fcql.select(['key', 'email', 'last_name'])
.from('user_profiles')
.where( { key: 'my_user' }).build();
results with
SELECT key, email, last_name
FROM user_profiles
WHERE key = 'my_user';
Also raw strings work:
var stringQuery = fcql.select('key, email, last_name')
.from('user_profiles')
.where('key="my_user"').build();
results the same as above.
var fcql = require('fcql');
fcql.create().table('my_mega_table', {
name: fcql.text, // allows usage of both hardcoded ('text') and/or fcql-provided CQL types
eventDate: 'timestamp',
device: fcql.uuid,
sensor: 'int',
description: 'text',
PRIMARY_KEY: [ ['name', 'eventDate'], 'device', 'sensor' ]
}).build();
results with
CREATE TABLE my_mega_table (
name text,
eventDate timestamp,
device uuid,
sensor int,
description text,
PRIMARY KEY ((name, eventDate), device, sensor)
);
fcql.select('something').from('somewhere').where({
aStringKey: {GT: '0', LE: '9'},
anIntKey: 123,
aDateKey: [new Date(3141592653589), new Date(2141592653589)]
});
results with
SELECT something FROM somewhere WHERE
aStringKey > '0' AND aStringKey <= '9'
AND anIntKey = 123
AND aDateKey IN ('2069-07-21T00:37:33.589Z', '2037-11-11T22:50:53.589Z');
It is Open Open Source. Whoever sends a PR, which gets accepted, receives the write permissions.
FAQs
Fluent syntax for Apache Cassandra CQL
The npm package fcql receives a total of 0 weekly downloads. As such, fcql popularity was classified as not popular.
We found that fcql 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
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.