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.
firefox-hash-generator
Advanced tools
This library generates the hashes for firefox and derived browsers' search engine file. The hash is needed to programmatically set the default search engine.
require 'firefox_hash_generator'
FirefoxHashGenerator.generate( :firefox, 'randombytes.default', 'DuckDuckGo', )
The first argument is the browser app name. This can be retrieved from the
browser console
by typing Services.appinfo.name
for your browser. Note that the input
control is disabled by default and is enabled by setting the about:config
pref devtools.chrome.enabled
to true
.
The app name can be provided as a string or, for convenience, a symbol that maps the known browsers to their app names. Currently the following browsers are known:
:firefox
:pale_moon
:waterfox
The second parameter is the basename of the profile directory. It usually consists of a randomly generated string followed by the profile name.
The third parameter is the name of the search engine that is being set as the default one.
The entire process was copied from this amazing guide by Frederick Zhang.
To extract the JSON serialization of the search engine configuration from the
search.json.mozlz4
file (which contains a proprietary header followed by
the LZ4-compressed JSON), use a utility like lz4jsoncat
or this Python code
(which originated from this Python code).
For Ruby, a working LZ4 compressor/decompressor is
extlz4.
Please report via issues and pull requests.
MIT
FAQs
Unknown package
We found that firefox-hash-generator 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.