
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.
import { MemStore, Repository, BaseTypes } from 'graft-db';
// create the store where things get persisted
const store = new MemStore();
// create a repository (one repository can have many tags/branches)
let r = new Repository({ store, id: 'myrepo' });
// create/fetch a branch and name
let master = r.latest().checkout('master');
master = master.set('n1', {type: BaseTypes.Node});
master = master.set('n2', {type: BaseTypes.Node});
// update the 'master' tag to point to this state
master = master.commit();
// fetch new metadata into r
r = r.latest();
// checkout another copy of the master branch
let wip = r.latest().checkout('master');
wip.key() === master.key(); // => true
// change wip and commit to master
wip = wip.set('n100', {type: BaseTypes.Node});
wip = wip.commit();
// continue working on master
// and now try to commit
master = master.set('n3', {type: BaseTypes.Node});
master = master.commit(); // fail 'needs rebase' since upstream is ahead
// fix it by pulling latest
master = master.pull();
// or fix it by rebasing from wip
master = master.rebase(wip);
// now can commit
master.commit();
// create a node to represent a "Person" type
master = master.set('uuid-person', {type: BaseTypes.Node, name: 'Person'});
// create a property to hold the person's name
master = master.set('uuid-person-name', {type: BaseTypes.String, name: 'name', nullable: true});
// create an "instance" of a person node
master = master.set('uuid-jeff', {type: 'uuid-person'});
// store a name
master = master.setString('uuid-jeff-name', 'jeff');
master = master.set('uuid-jeff-name', {type: 'uuid-person-name', value: {
type: ValueKeyTypes.data,
id: 'uuid-jeff-name',
}});
// create a node to represent a "Person" type
master = master.setType({
name: 'Person',
properties: {
name: { type: BaseTypes.String, },
}
});
// create an "instance" of a person node
master = master.setNode({
type: 'Person',
values: {
name: 'jeff',
}
});
let result;
[result, mastelr] = master.query(`{
node(id: 'uuid-jeff') {
...on Person {
name
}
}
}`); // => {data: { node: { name: 'jeff' } } }
FAQs
```javascript import { MemStore, Repository, BaseTypes } from 'graft-db';
The npm package graft-db receives a total of 6 weekly downloads. As such, graft-db popularity was classified as not popular.
We found that graft-db 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.