Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
A simple node tool to provide easy management of host overrides.
In my current role I work on a MacBook Pro and frequently need to locally host websites in a virtual machine running Windows. In order to minimise the number of applications running in the virtual machine I use an OS X web browser to access the websites hosted by the virtual machine.
This means I end up adding host overrides to the hosts file very frequently. Even more so If I work from a location other than the office and my virtual machine is assigned a dynamic IP.
The aim of this project is to produce a tool which provides a quick and easy command line interface to manipulate the hosts file on OS X.
You should be able to specify an IP for a development machine and add domains which should point to that IP. If I update the IP for the development machine, all the domains should update too.
I'm sure additional features will appear as the project progresses.
Install from npm.
npm install -g hostsman
Currently must be used with sudo
to allow appropriate write access.
hostsman --help
FAQs
Hosts file management for OS X.
The npm package hostsman receives a total of 0 weekly downloads. As such, hostsman popularity was classified as not popular.
We found that hostsman 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.