
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
feathers-jwt-impersonate
Advanced tools
A custom verifier that sits on top of feathers-authentication and feathers-authentication-jwt
DISCLAIMER: Use this at your own risk. This is a very early prototype.
This is a feathers-authentication plugin that implements user impersonation. It is just a simple custom verifier that sits on top of feathers-authentication-jwt. As such, the default options are the same, except for these ones:
{
name: 'impersonate',
entity: 'user',
service: 'users',
rolesField: 'roles',
allowedRole: 'admin',
Verifier: ImpersonateVerifier,
}
This is a very crude/simple solution, but it works right now. will add tests as soon as time permits.
yarn add feathers-jwt-impersonate
or
npm install feathers-jwt-impersonate --save
import authentication from 'feathers-authentication';
import impersonate from 'feathers-jwt-';
.
.
.
export default function() {
const app = this;
const config = app.get('authentication');
app.configure(authentication(config));
app.configure(impersonate());
.
.
.
}
app.service('authentication').hooks({
before: {
create: [authentication.hooks.authenticate(['impersonate'])],
},
});
{
"strategy": "impersonate",
"userId": "596d4832c816ca24a29b1b81" // userId of the user that you want to impersonate
}
PRs and code reviews are welcome to make this more generic / acceptable to use for a wide variety of cases.
FAQs
A custom verifier that sits on top of feathers-authentication and feathers-authentication-jwt
The npm package feathers-jwt-impersonate receives a total of 1 weekly downloads. As such, feathers-jwt-impersonate popularity was classified as not popular.
We found that feathers-jwt-impersonate 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.