Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
rjspotter-bloomfilter
Advanced tools
= BloomFilter
Counting Bloom Filter implemented in Ruby.
Bloom filter is a space-efficient probabilistic data structure that is used to test whether an element is a member of a set. False positives are possible, but false negatives are not. For more detail: http://en.wikipedia.org/wiki/Bloom_filter
== Implementation
Instead of using k different hash functions, this implementation seeds the CRC32 hash with k different initial values (0, 1, ..., k-1). This may or may not give you a good distribution, it all depends on the data.
== Example
require 'bloomfilter'
bf = BloomFilter.new(10, 2, 1) bf.insert("test") bf.include?("test") => true bf.include?("test2") => false bf.delete("test") bf.include?("test") => false
bf["test2"] = "bar" bf["test2"] => "bar" bf["test3"] => nil
bf.stats Number of filter bits (m): 10 Number of filter elements (n): 2 Number of filter hashes (k) : 2 Predicted false positive rate = 10.87%
== Configuring Bloom Filter
Performance of the Bloom filter depends on a number of variables:
To figure out the values for these parameters, refer to: http://www.igvita.com/2008/12/27/scalable-datasets-bloom-filters-in-ruby/
== Credits Tatsuya Mori valdzone@gmail.com (Original: http://vald.x0.com/sb/)
FAQs
Unknown package
We found that rjspotter-bloomfilter demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.