
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
dpm-googlebard1
Advanced tools
A simple Node.js module for creating GoogleBard chatbot using Bard's official API.
To install the package, run the following command:
npm install googlebard
import { Bard } from "googlebard";
let bot = new Bard(`YOUR_COOKIES`);
let response = await bot.ask("Hello?");
console.log(response);
__Secure-{account_number}PSID
(e.g. __Secure-1PSID
). Ensure you are copying the correct cookie corresponding to the account number, which can be found in the URL as bard.google.com/u/3
. If your account number is /u/3
, search for the cookie beginning with __Secure-3PSID
.import { Bard } from "googlebard";
let cookies = `__Secure-1PSID=<YOUR_COOKIE>`;
let bot = new Bard(cookies, {
inMemory: false, // optional: if true, it will not save conversations to disk
savePath: "./conversations.json", // optional: path to save conversations
proxy: {
// optional: proxy configuration
host: process.env.PROXY_HOST,
port: process.env.PROXY_PORT,
auth: {
username: process.env.PROXY_USERNAME,
password: process.env.PROXY_PASSWORD,
},
protocol: "http",
},
});
let conversationId = "conversation name"; // optional: to make it remember the conversation
let response = await bot.ask("Hello?", conversationId); // conversationId is optional
console.log(response);
// Simulating response streaming
await bot.askStream(
(res) => {
console.log(res);
},
"Hello?",
conversationId,
);
FAQs
A reverse engineered API for Google Bard chatbot
The npm package dpm-googlebard1 receives a total of 3 weekly downloads. As such, dpm-googlebard1 popularity was classified as not popular.
We found that dpm-googlebard1 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.