Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@jkbonfield/htscodecs
Advanced tools
This directory contains javascript implementations of the custom codecs using in CRAM 3.1, capable of being run under node.js.
These is not written for speed, but for clarity and as an exercise in checking the pseudocode in the CRAM specification. It is written as close to this pseudocode as is possible.
Prerequisites: minimist package for command line parsing and bzip2 for part of the arith_gen.js code.
npm install minimist
npm install bzip2
Makes a buffer appear to be a stream with ReadByte, ReadITF8, etc functions.
Implements the order-0 and order-1 rans (4x8) decoder as used in CRAM3.0.
A command line tool to exercise the rans.js code, included for debug purposes.
A 16-bit renormalising variant of rANS above. This also includes transforms for RLE, bit-packing and 4-way interleaving.
Arithmetic (range) coding with Schindler carry handling.
An adaptive model for keeping track of symbol frequencies.
Wrapper around arith_sh.js to perform order-0/1 encoding with RLE and bit-packing. Plus debug command line tool
Implements the fqzcomp quality compression codec. Plus debug command line tool.
Implements the tokenise_name3 read identifier compression codec. Plus debug command line tool.
The various main js files can be used for adhoc testing. There is also a Makefile which performs checks against known defined data streams and does round-trip testing in both Javascript and if compiled the C variant. You can set CORPUS make variable to a larger data set such htscodecs-corpus.
eg.
make check CORPUS=../tests/htscodecs-corpus/
FAQs
Reference implementation of CRAM 3.1 codecs
The npm package @jkbonfield/htscodecs receives a total of 105 weekly downloads. As such, @jkbonfield/htscodecs popularity was classified as not popular.
We found that @jkbonfield/htscodecs 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.