
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
lienv
Advanced tools
LiEnv is a tool to easily get typed values out of strings stored in environment variables.
>>> import lienv
>>> integer = lienv.get(int, "SOME_INTEGER") # SOME_INTEGER="42"
>>> decimal = lienv.get(float, "SOME_FLOAT") # SOME_FLOAT="2.4"
>>> dictionary = lienv.get(dict, "SOME_DICT") # SOME_DICT="{'lienv': 42}"
>>> print(f"{integer} => {type(integer)}")
42 => <class 'int'>
>>> print(f"{decimal} => {type(decimal)}")
2.4 => <class 'float'>
>>> print(f"{dictionary} => {type(dictionary)}")
{'lienv': 42} => <class 'dict'>
Install the latest version with:
pip install lienv
I'll gladly accept feedback and contributions.
Although this project's purpose was to solve problems that at first seemed too simple, the practicality it provided to me was motivation enough to turn it into a library so maybe more people could benefit from it.
I am yet to be proficient in Rust, so pardon my silly mistakes.
FAQs
A tool to easily get typed values out of strings stored in environment variables.
We found that lienv 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
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.