
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.