
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@pathcheck/bbs-cbld-sdk
Advanced tools
Verifiable QR SDK for BBS+ Vaccination Credentials with CBOR-LD
JavaScript Implementation of W3C Verifiable QR Credentials with BBS+ -> CBOR-LD -> QR.
npm install @pathcheck/cbld-sdk --save
With the keys:
const keyPair = {
id: "did:example:489398593#test",
controller: "did:example:489398593",
privateKeyBase58: "5D6Pa8dSwApdnfg7EZR8WnGfvLDCZPZGsZ5Y1ELL9VDj",
publicKeyBase58: "oqpWYKaZD9M1Kbe94BVXpr8WTdFBNZyKv48cziTiQUeuhm7sBhCABMyYG4kcMrseC68YTFFgyhiNeBKjzdKk9MiRWuLv5H4FFujQsQK2KTAtzU8qTBiZqBHMmnLF4PL7Ytu"
}
And a JSON-LD Payload
const TEST_PAYLOAD = {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/pathogen/v1",
"https://w3id.org/security/bbs/v1"
],
"id": "http://example.org/credentials/",
"type": [
"VerifiableCredential"
],
"expirationDate": "2021-02-05T20:29:37Z",
"credentialSubject": {
"type": "DGCProofOfCovidTest",
"testInformation": {
"type": "DGCTestInformation",
"testType": "loinc#LP217198-3",
"testResult": "POS",
"testCenter": "Hospital Na Františku Prague",
"testValidatorId": "test-id",
"countryOfTestAdminstration": "it"
},
"personalInformation": {
"type": "DGCSubject",
"familyName": "Schmidt",
"givenName": "Abdiel",
"birthDate": "1987-07-07",
"gender": "F"
}
}
};
Add keys to the Resolver Cache and call the signAndPack to create the URI for the QR Code:
const {sign, verify, pack, unpack, signAndPack, unpackAndVerify, addCache} = require('../lib/index');
addCache(mockKeyPair);
const qrUri = await signAndPack(TEST_PAYLOAD, keyPair);
And call the unpack and verify to convert the URI into the payload:
const jsonld = await unpackAndVerify(qrUri);
npm install
npm test
FAQs
Verifiable QR SDK for BBS+ Vaccination Credentials with CBOR-LD
We found that @pathcheck/bbs-cbld-sdk 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.