
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
github.com/athletictuxe/lfmap
Generic concurrent lock-free map for Golang.
Key features:
range
iteration over consistent snapshot of map without locking other threads and without copying all data in map to maintain that snapshot.sync.Map
allows only CAS operations against single key and that's it.See godoc examples.
goos: linux
goarch: amd64
pkg: github.com/athletictuxe/lfmap
cpu: Intel(R) N100
BenchmarkLFMapSet-4 165698 11190 ns/op
BenchmarkSyncMapSet-4 857448 2302 ns/op
BenchmarkLFMapGet-4 3221922 365.1 ns/op
BenchmarkSyncMapGet-4 5302554 189.9 ns/op
BenchmarkLFMapRange1000000-4 8 142530076 ns/op
BenchmarkSyncMapRange1000000-4 7 150277709 ns/op
PASS
ok github.com/athletictuxe/lfmap 31.614s
So far lfmap is 2-6 times slower than sync.Map
, mostly because of underlying immutable ds performance. However, nice transactional properties may make it useful.
FAQs
Unknown package
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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.