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.
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.
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.