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/abishek90/community-detection-on-a-spatial-graph
This is a code to detect communities in a spatial random graph
There are two algorithms implemented - A GBG algorithm that is published in our paper (http://abishek90.github.io/CommDet.pdf), and an improved spectral synchronization algorithm that is not published, but empirically performs better.
To use the algorithm, run the `simulation_spectral.py' script. The parameters for this are a large integer N, a real number \lambda and 0 \leq b < a \leq 1. These parameters can be set in the main function at the end of the code script 'simulation_spectral.py'. These parameters indicates that there are roughly \lambda N nodes in the graph, half of which are in one community and the rest in another. The nodes have an uniform location label in the set [-\sqrt{N}/2,\sqrt{N}/2]^2. Conditional on the locations and communities, two nodes of the same community at a distance of \sqrt{\log(n} are connected with probability a and two nodes of opposite communities with distance between them smaller than \sqrt{\log(n} are connected with probability b. Nodes farther than \sqrt{\log(n}} are not connected. The Community Detection problem refers to how and when can one recover the communities, from a random sample of the graph and locations.
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.