
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@force-bridge/keystore
Advanced tools
A simple keystore for managing the private keys
import { KeyStore } from '@force-bridge/keystore';
const password = '123456';
const store = KeyStore.createFromPairs(
{
Alice: '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
Bob: '0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',
},
password,
);
const encrypted = store.getEncryptedData();
saveToFile(JSON.stringify(encrypted));
const store = new KeyStore(fs.readFileSync(filePath).toString());
// decrypt before using the keystore
store.decrypt(process.env.KEYSTORE_PASSWORD);
store.getDecryptedByKeyID('Alice');
store.getDecryptedByKeyID('Bob');
function AliceTransferToBob(store: KeyStore<'Alice' | 'AliceSecondary'>) {
const privateKey = store.getDecryptedByKeyID('Alice');
const privateKey1 = store.getDecryptedByKeyID('AliceSecondary');
// typescript would marks error if getting with an unknown key
// const privateKeyUnknown = store.getDecryptedByKeyID('unknown-key');
signTransaction(tx, privateKey);
signTransaction(tx1, privateKey1);
}
FAQs
A simple keystore for managing the private keys
The npm package @force-bridge/keystore receives a total of 18 weekly downloads. As such, @force-bridge/keystore popularity was classified as not popular.
We found that @force-bridge/keystore demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.