
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.
replit-identity
Advanced tools
A simple package to interact with the Replit CLI's identity command.
Supports TypeScript
Create and verify Replit Identity tokens.
const { create, verify } = require('replit-identity');
const audience = 'target-repl-id';
const token = await create(audience);
const info = await verify(token, audience);
console.log(info);
npm install replit-identity
Important: This package can only be used within a Replit environment.
The replit-identity
module exports the following functions:
create
Creates a new identity token.
audience
(string): The target audience for the token.verify
Verifies an existing identity token.
token
(string): The token to verify.audience
(string): The audience to verify against.Example return value:
const info = {
slug: "repl-name",
replId: "unique-repl-id",
audience: "target-repl-id",
username: "jane_doe" ,
userId: 12345,
runtime: {
// Based on Replit environment:
interactive: {
cluster: 'example-cluster',
subcluster: 'example-subcluster'
},
// Or:
hosting: {
cluster: 'example-cluster',
subcluster: 'example-subcluster'
},
// Or (if in deployment):
deployment: true,
}
}
FAQs
A simple package to interact with the Replit CLI's identity command.
The npm package replit-identity receives a total of 27 weekly downloads. As such, replit-identity popularity was classified as not popular.
We found that replit-identity demonstrated a healthy version release cadence and project activity because the last version was released less than 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.