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.
Expand your arguments, expand your mind.
Basically a cli wrapper for dargs
that allows you to easily externalize arguments and flags
for passing to cli's that don't support .*rc
or other configuration files.
npm install --save-dev exargs
# or
yarn add exargs
This utility depends on argument expansion in order to work properly.
// package.json
{
"scripts": {
"start:long": "mycmd --with=alot,of,arguments,oh,so,long --why=do,i,have,all,of,this,in,here --what=have,i,done,to,deserve,this",
"start:short": "mycmd $(exargs .mycmdrc)"
}
}
// .mycmdrc
{
"with": "alot,of,arguments,oh,so,long",
"why": "do,i,have,all,of,this,in,here",
"what": "have,i,done,to,deserve,this"
}
All of the options accepted by dargs
can be passed to exargs
. The only way to pass these options currently is to add a $
property to the configuration file you have specified.
// .mycmdrc
{
"$": {
"combine": ["property"]
},
"property": ["one", "two"]
}
There are also some options added to make exargs
more configurable:
combine
Array - specify fields which should be rolled up into a single string to avoid dargs
generating multiple arguments.combine
Without combine
:
{
"with": ["alot", "of", "arguments", "oh", "so", "long"]
}
// yields: --with=alot --with=of --with=arguments --with=oh --with=so --with=long
With combine
:
{
"$": {
"combine": ["with"]
},
"with": ["alot", "of", "arguments", "oh", "so", "long"]
}
// yields: --with=alot --with=of --with=arguments --with=oh --with=so --with=long
FAQs
Argument expansion utility.
The npm package exargs receives a total of 1 weekly downloads. As such, exargs popularity was classified as not popular.
We found that exargs demonstrated a not healthy version release cadence and project activity because the last version was released 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.