
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
js1k-compress
Advanced tools
<img src=https://js1k-compress.solsort.com/icon.png width=96 height=96 align=right>
Two source code compressors, for JS1K. Makes self-extracting JavaScript. Both are less than 1KB.
Full of bugs, may or may not work :)
Usage example:
$ npm install js1k-compress
[...]
$ node
> compress = require('js1k-compress')
[Function]
> compressed = compress(require('fs').readFileSync('lz.js','utf-8'));
'(f=(i,o,p,c)=>(c=i.charCodeAt(p),c?f(i,o+(c<256?i[p]:o.slice(c&2047,(c&2047)+(c>>11))),++p):o))(`/***᠁、态쀁ꀁ\\n * ᡈえ恈쁈遈1K LZ77 source compression npm module碅See http://js1k-䃱.solsort.ᣱ for descript境...
> console.log(eval(compressed));
/********************************************************************
* *
* *
* 1K LZ77 source compression npm module *
* *
* *
* See http://js1k-compress.solsort.com for description *
* *
* *
* *
********************************************************************/
var compress = input => {
[...]
> require('fs').writeFile('./lz.min.js', 'eval(' + compressed + ')');
undefined
> require('lz.min.js');
[Function]
> // lz.js has now been minified, saved as lz.min.js, and is working :)
Files:
grammar.js
- version 1, grammar based compressionlz.js
- version 2, semi-lz77entry-*
compressed versions of abovebuild.js
node script that uses the module, and makes the entriesindex.html
shows the readme, and runs some of the entries in the browserFAQs
1K LZ77 source compression npm module
We found that js1k-compress 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.