Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@gxchain2/core
Advanced tools
[![NPM Version](https://img.shields.io/npm/v/@gxchain2/core)](https://www.npmjs.org/package/@gxchain2/core) ![License](https://img.shields.io/npm/l/@gxchain2/core)
The core logic of blockchain node, including:
BlockchainMonitor
: Contains several events
logs
: Emit when a new transaction's log is generatedremovedLogs
: Emit when the transaction has been rolled backnewHeads
: Emit when canonical chain changesIndexer
and BloomBitsFilter
: Create bloom bits index for section
Consensus
: Consensus engine implement
Protocols
: Used for communication and data transmission between nodes
Txpool
: Manage pending and queued transactions
Sync
: Synchronize blocks
Txsync
: Synchronize transactions
Tracer
: Tracer provides an implementation of tracing blocks or transactions
Staking
: An implementation of staking logic
Contracts
: Some classes are used to interact with the smart contract
npm install @gxchain2/core
const node = await NodeFactory.createNode({
databasePath: "path/to/dataDir",
chain: "chainName",
mine: {
enable: true,
coinbase: "address1",
},
network: {
enable: true,
},
account: {
keyStorePath: "path/to/keystore",
unlock: [
["address1", "passphrase1"],
["address2", "passphrase2"],
],
},
});
await node.abort();
FAQs
[![NPM Version](https://img.shields.io/npm/v/@gxchain2/core)](https://www.npmjs.org/package/@gxchain2/core) ![License](https://img.shields.io/npm/l/@gxchain2/core)
We found that @gxchain2/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.