
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
A python module to parse Android.bp files (wrapper for android_bp rust module)
This module will quickly parse Android.bp files and provide a python interface to access the data.
This module is only intended to parse Android.bp files, not to generate or rewrite them.
from android_bp import Blueprint
# bp is a rust object, but behave mostly like a read only python object
bp = Blueprint.from_file("Android.bp")
# for debug, you can print any of internal objects
# they will be printed as rust would in debug fmt
print(bp)
# internal variables are accessible as a python dict
print(bp.variables)
# modules are accessible as a python list
for m in bp.modules:
if m.__type__ == "rust_binary":
# module properties can be accessed directly as python attributes
print(m.name)
# or iter them by type
for m in bp.modules_by_type("rust_host_test"):
# or via __dict__
print(m.__dict__["name"])
# for convenience, unknown properties return None (not an AttributeError)
print(m.unknown_attribute) # prints None
# map properties are accessible as python dicts
print(m.test_options['unit_test'])
FAQs
A python module to parse Android.bp files
We found that android-bp 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 uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.