
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@samouraiwallet/auth47
Advanced tools
A JS implementation of the Auth47 protocol.
This library uses ES Modules. Node.js v14 or later is required.
Source code was written in Typescript. Type definitions are included in the published bundle.
import crypto from 'crypto'
import { Auth47Verifier } from '@samouraiwallet/auth47';
const verifier = new Auth47Verifier('https://samourai.io/auth');
// Generate random nonce
const nonce = crypto.randomBytes(12).toString('hex');
const uri = verifier.generateURI({'nonce': nonce});
console.log('URI generated:', uri);
const proof_received = {
'auth47_response': '1.0',
'challenge': 'auth47://aerezerzerze23131d?r=https://samourai.io/auth',
'nym': 'PM8TJTLJbPRGxSbc8EJ...TzFcwQRya4GA',
'signature': 'Hyn9En/w5I2LHR...ct8mbFD86o='
};
// Verify the proof (use bitcoin network defined as default)
const verifiedProof = verifier.verifyProof(proof_received);
if (verifiedProof.result === 'ok') {
console.log('Proof is valid');
}
else {
// log given error
console.log(verifiedProof.error);
}
FAQs
A JS implementation of the Auth47 protocol
The npm package @samouraiwallet/auth47 receives a total of 1,734 weekly downloads. As such, @samouraiwallet/auth47 popularity was classified as popular.
We found that @samouraiwallet/auth47 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.