
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.
Node.js package to decode BCD datetime buffers used by Siemens and Rockwell PLCs into a normal javascript date objects.
The format of the BCD date is as follows
Byte | Contents | Range |
---|---|---|
0 | Year | 90-89 |
1 | Month | 1-12 |
2 | Day | 1-31 |
3 | Hour | 0-23 |
4 | Minute | 0-59 |
5 | Second | 0-59 |
6 | 2 MSD of ms | 0-99 |
7 (1st nibble) | LSD of ms | 0-9 |
7 (2nd nibble) | Day of week (unused) | 1-7 |
var bcdDate = require('bcd-date');
var buffer = new Buffer('1012231130301235', 'hex');
var date = bcdDate.decode(buffer);
var buffer = bcdDate.encode(date);
// date == date at 2010-12-23 11:30:30.123
// buffer == buffer of 1012231130301235
// decode as UTC
var date = bcdDate.decode(buffer, true);
// encode as UTC
var date = bcdDate.encode(buffer, true);
FAQs
Decodes a BCD datetime buffer into a normal javascript date object
The npm package bcd-date receives a total of 6 weekly downloads. As such, bcd-date popularity was classified as not popular.
We found that bcd-date 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.
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.