
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
This project extends python's argparse module to allow for environment variable overrides of command line arguments.
The rule for environment variable overrides is as follows:
Stable release version:
pip install argparsenv
Latest development version:
pip install git+https://github.com/snaeil/argparsenv
This module builds on top of python's standard library argparse.
import argparsenv
env_arg_parser = ArgumentParser()
env_arg_parser.add_argument(
"--port",
dest="port",
env_var="MY_APP_DB_PORT",
default="3306",
)
With this ArgumentParser instance, the port argument can be set in three ways:
python my_app.py --port 3307
.env
file):export MY_APP_DB_PORT=3307
python my_app.py
3306
):python my_app.py
Contributions are welcome! For feature requests, bug reports or questions, please open an issue. For code contributions, please open a pull request.
The development environment can be set up using nix
and devenv
:
bash <(curl -L https://nixos.org/nix/install) --no-daemon
~/.config/nix/nix.conf
contains the following lines:
experimental-features = nix-command flakes
devenv
by running:
nix profile install --accept-flake-config 'nixpkgs#devenv'
nix profile install 'nixpkgs#nix-direnv'
Then add nix-direnv to $HOME/.config/direnv/direnvrc
:
source $HOME/.nix-profile/share/nix-direnv/direnvrc
~/.bashrc
),
as described in the direnv documentation:FAQs
Extends python's argparser with environment variables
We found that argparsenv 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
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.