
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the projectās GitHub releases.
@nickgraffis/blackjack
Advanced tools
š Black Jack!
~> npm install -g @nickgraffis/blackjack
~> blackjack
Try to get the highest card total without going over 21. 2 - 9 is face value ['š', 'šø', 'š¤“'] are all 10 'A' is 11 or 1 if you bust 'A' + ['š', 'šø', 'š¤“'] is Black Jack! Automatic winner Dealer will not hit past 17 Tie goes to the house :(
Pretty simple and straight forward, except the recursive design of the computers hand.
var computerAsyncHand = function() {
if (computerTurn < 2) {
computerHand.push(randomPoints());
computerTurn++;
computerHand.push(randomPoints());
computerTurn++;
console.log(dealCard(computerHand[0], randomInt(4)));
console.log(dealCard(computerHand[1], randomInt(4)));
console.log(computerHand.reduce((a, b) => a + b, 0));
sleep(1000);
}
if (computerHand.includes(11)) {
var Ace = computerHand.indexOf(11);
computerHand[Ace] = 1;
console.log('Dealer score is now ' + computerHand.reduce((a, b) => a + b, 0) + ', using the A as a 1!');
}
if (computerHand.reduce((a, b) => a + b, 0) > 17) {
//Game Over
return;
} else {
computerHand.push(randomPoints());
computerTurn++;
console.log(dealCard(computerHand[computerTurn - 1], randomInt(4)));
console.log(computerHand.reduce((a, b) => a + b, 0));
}
sleep(1000);
computerAsyncHand();
}
FAQs
šBlack Jack
We found that @nickgraffis/blackjack 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the projectās GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.