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.
This package provides a BitMap
class which is an array of bits stored in compact format.
bitmap
can be installed from pip
:
$ sudo pip install bitmap
BitMap(maxnum)
: construct a BitMap
object with maxnum
bitsset(pos)
: set the bit at position pos
to 1reset(pos)
: reset the bit at position pos
to 0flip(pos)
: flip the bit at position pos
count()
: return the number of 1ssize()
: return the size of the BitMap
test(pos)
: check if bit at position pos
has been set to 1any()
: check if any bit in the BitMap
has been set to 1none()
: check if none of the bits in the BitMap
has been set to 1all()
: check if all bits in the BitMap
has been set to 1nonzero()
: return indexes of all non-zero bitstostring()
: convert a BitMap
object to 0
and 1
stringfromstring(bitstring)
: create a BitMap
object from 0
and 1
stringfrom bitmap import BitMap
bm = BitMap(32)
print bm.tostring()
bm.set(1)
print bm.tostring()
bm = BitMap.fromstring("00011101")
print bm.tostring()
bm.flip(1)
print bm.tostring()
FAQs
.
We found that bitmap demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.