
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
bip39lib
Advanced tools
Pure Python BIP39 mnemonic code library for generating deterministic wallet seeds.
pip install bip39lib
from bip39lib import generate_mnemonic, mnemonic_to_seed, validate_mnemonic
# Generate a 12-word mnemonic (128 bits of entropy)
mnemonic = generate_mnemonic()
print(mnemonic) # abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about
# Validate the mnemonic
is_valid = validate_mnemonic(mnemonic)
print(is_valid) # True
# Convert mnemonic to seed (for HD wallet derivation)
seed = mnemonic_to_seed(mnemonic, passphrase="")
print(seed.hex()) # 64-byte seed
generate_mnemonic(entropy_bits: int = 128, wordlist: list[str] | None = None) -> str - Generate mnemonic from entropymnemonic_to_seed(mnemonic: str, passphrase: str = "") -> bytes - Convert mnemonic to seedvalidate_mnemonic(mnemonic: str, wordlist: list[str] | None = None) -> bool - Validate mnemonic checksumentropy_to_mnemonic(entropy: bytes, wordlist: list[str] | None = None) -> str - Convert entropy to mnemonicmnemonic_to_entropy(mnemonic: str, wordlist: list[str] | None = None) -> bytes - Convert mnemonic to entropyget_wordlist(lang: str = "en") -> list[str] - Get BIP39 wordlist by languagegit clone https://github.com/daedalus/bip39lib.git
cd bip39lib
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
FAQs
Pure Python BIP39 mnemonic code library
We found that bip39lib 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.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.