
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
combo-lock
Advanced tools
The combo-lock is a combination of a process lock and a thread lock. Usable in cases both multiple threads and multiple processes are sharing the same resource such as a file in the file system.
The module utilizes the FileLock from filelock and the standard Lock from threading.
The FileLock uses a filesystem lock so the initialization of the class requires a path for the lock file.
from combo_lock import ComboLock
lock = ComboLock('/tmp/my.lock')
with lock:
write_my_shared_resource()
A NamedLock will save the lock file to shared memory using memory-tempfile
from combo_lock import NamedLock
lock = NamedLock('some_name')
with lock:
write_my_shared_resource()
The combo-lock was originally created for Mycroft-core but as it's been useful in other projects a separate release seemed appropriate.
FAQs
A combined process and thread lock
We found that combo-lock demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.