Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
The copyright for the software, documentation, and associated files are held by the author.
Copyright 2013 Todd A. Jacobs
All rights reserved.
The AUTHORS file is also included in the source tree.
The software is licensed under the GPLv3. The LICENSE file is also included in the source tree.
This README is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
tweet_compressor is Ruby gem that performs successive text transformations in order to shrink input text below Twitter's 140-character limit while preserving the integrity of hashtags and links.
This software is tested against the current Ruby 2.x series. It is unlikely to work without minor editing on 1.9.3, and you're on your own for anything earlier than 1.9.1.
Installing tweet_compressor couldn't be easier. Just follow these two simple steps:
gem install tweet_compressor
tweet_compressor <tweet>
No screenshots here, just samples of what you can expect to see on standard output when you run the program.
Example of text that requires no compression.
$ tweet_compressor foo
Chars: 3, Compression: 0.0%
foo
Example of extremely heavy compression. Trims 196 characters about the Gettysburg Address down to 137.
$ tweet_compressor 'Four score and seven years ago our fathers
brought forth on this continent a new nation, conceived in liberty,
and dedicated to the proposition that all men are created equal.
#speech #Lincoln'
Chars: 137, Compression: 28.65%
4 scr &7 yrs ago our fthrs brght frth on ths cntnt a new ntn,cncvd
in lbrty,& dctd to the prpstn tht al men are crtd eql.#speech
#Lincoln
Example of assumed compression from Twitter's built-in URL shortener.
$ tweet_compressor 'http://tweet_compressor/knows/twitter/shortens/urls/to/20/characters'
Chars: 20, Compression: 70.59%
http://tweet_compressor/knows/twitter/shortens/urls/to/20/characters
This is an open-source project. Contributors are highly encouraged to open pull-requests on GitHub.
FAQs
Unknown package
We found that tweet_compressor 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.