Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
kdgrass
Advanced tools
Readme
KDBush with flat API, which turns out to be even faster.
const kdgrass = require('kdgrass')
let grass = kdgrass(points);
let ids1 = grass.range(10, 10, 20, 20); // bbox search - minX, minY, maxX, maxY
let ids2 = grass.within(10, 10, 5); // radius search - x, y, radius
Creates an index from the given points.
points
: Input array of points in [x, y, x, y, ...]
form.nodeSize
: Size of the KD-tree node, 64
by default. Higher means faster indexing but slower search, and vise versa.let index = kdgrass(points, 64);
Finds all items within the given bounding box and returns an array of indices that refer to the items in the original points
input array.
let results = index.range(10, 10, 20, 20).map((id) => points[id]);
Finds all items within a given radius from the query point and returns an array of indices.
let results = index.within(10, 10, 5).map((id) => points[id]);
FAQs
KDBush with flat API
We found that kdgrass demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.