Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/myonim/go-map-reduce
This is to simulate a basic Map Reduce procedure on a distributed system.
host1
and host2
are machines with their request latencies log.
The final result of the Map Reduce will be a file with count of latencies above one second and below one second.
func main() {
// do map op for both hosts
// this simulates a distributed systems
go doMap(HOSTS[0])
go doMap(HOSTS[1])
time.Sleep(time.Second)
Shuffle(HOSTS)
reduceInput := getReduceInput()
Reduce(reduceInput)
}
Map function is called on both hosts. Here, the call is concurrent because in a distributed systems, every machine would call the Map function simultaneously.
After doMap
the Shuffle
function is called to create the intermediate arguments for the reduce function.
Finally, the Reduce
function is called and generates the required result inside reduce_results/result.txt
file.
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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.