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.
bw_matchbox
is a web app for matching two Brightway. It allows you to do complicated matches, such as:
You can install bw_matchbox via [pip] from [PyPI]:
pip install bw_matchbox
It's possible to install the library itself for development purposes (in the cloned project):
pip install -e .
This library depends on:
brightway25
)docopt-ng
flask
and flask_httpauth
tomli
werkzeug
This is a flask
application. Flask has a debug server suitable for development, but it should not be used for production!
To use bw_matchbox
, you need to do the following:
Configuration is done via a toml
file. See config_example.toml
for the structure of this file. Here is an example:
[users]
jane = "deer"
john = "doe"
[roles]
editors = ["jane"]
reviewers = ["john"]
[configs]
my_config = { project = "something", source = "database A", target = "database B", proxy = "database C"}
[files]
output_dir = "/Path/to/some/directory"
The config.toml
file needs to provide the following:
[users]
section: Authentication, via a set of usernames and passwords[roles]
section: The exact role labels must be used. Editors can make changes, reviewers can only comment.[configs]
section: A combination of Brightway project and the source, target and proxy databases.[files]
section: Currently only uses the output_dir
key.The easiest way to set this up is with:
matchbox setup
This will create stub configuration and changes files in your current working directory - note that you should change the configuration and username/password in config.toml
.
Just run:
matchbox webapp config.toml
You will need to configure the Flask app using configure_app
, or re-implement its functionality. Here is an example using waitress:
from bw_matchbox import matchbox_app, configure_app
config_filepath = "/path/to/config.toml"
app = configure_app(config_filepath, matchbox_app)
from waitress import serve
serve(app, port=8080)
Once the app is running and configured locally or remotely, connect to the correct address and port. If you are running locally, this is probably either http://localhost:5000
or http://127.0.0.1:5000
.
In the first screen, choose the Brightway project you want to work on. This is matchbox-example
if you ran matchbox example_project
.
On the next screen, choose one database as the source, and a different database as the target. Currently you need to specify a new proxy database by typing a new database name into the Create a new database input box.
Contributions are very welcome. To learn more, see the Contributor Guide.
Distributed under the terms of the MIT license, bw_matchbox is free and open source software.
If you encounter any problems, please [file an issue] along with a detailed description.
FAQs
Browser to match Brightway databases
We found that bw-matchbox 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.