
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
This is a BigQuery client library for Cloudflare Workers. It allows you to query BigQuery from within a Cloudflare Worker.
This is a BigQuery client library for Cloudflare Workers. It allows you to query BigQuery from within a Cloudflare Worker.
npm install cfw-bq
You need to provide the service account credentials as a secret in Cloudflare Workers.
{
"type": "service_account",
"project_id": "your-project",
"private_key_id": "your-private-key-id",
"private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n",
"client_email": "your-service-account-email",
"client_id": "your-client-id",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token"
}
Set the secret in Cloudflare Workers:
wrangler secret put MY_CREDENTIALS
The secret name MY_CREDENTIALS
is just an example. You can use any name you like.
import { BigQuery } from 'cfw-bq';
export interface Env {
MY_CREDENTIALS: string;
}
const project = '{your-project-id}';
export default {
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
const bq = new BigQuery(JSON.parse(env.MY_CREDENTIALS), project);
const query = 'SELECT * FROM `your-project.your-dataset.your-table` LIMIT 10';
const result = await bq.query(query);
return Response.json(result);
}
};
You can specify the schema of the result by providing a generic type argument to the query
method.
interface Row {
id: number;
name: string;
}
const result = await bq.query<Row>(query);
// result is of type Row[]
MIT (see: LICENSE)
FAQs
This is a BigQuery client library for Cloudflare Workers. It allows you to query BigQuery from within a Cloudflare Worker.
The npm package cfw-bq receives a total of 3 weekly downloads. As such, cfw-bq popularity was classified as not popular.
We found that cfw-bq 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.