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.
@timsuchanek/copy
Advanced tools
Copy files via command line or Node.js.
$ npm i @apexearth/copy
$ npm i @apexearth/copy -g
const copy = require('@apexearth/copy')
copy({
from, // Source copy path.
to, // Destination copy path.
recursive, // Copy recursively.
overwrite, // Overwrite existing file
overwriteMismatches, // Overwrite if size mismatch or from modified date is more recent.
verbose, // Verbose output.
json, // JSON output. (options: true, "pretty")
ignoreErrors, // Continue on errors.
parallelJobs, // Number of possible concurrent jobs.
state, // Save state for resume ability.
stateFrequency, // Save state frequency.
copyFile, // Supply your own copyFile function. (from, to, cb)
readdir, // Supply your own readdir function. (path, cb)
stat, // Supply your own stat function. (path, cb)
})
.then(() => console.log('done'))
.catch(err => console.error(err))
Usage: node-copy [options] <from> <to>
Options:
-V, --version output the version number
-r, --recursive Copy recursively.
-o, --overwrite Overwrite existing.
--overwrite-mismatches Overwrite if size mismatch or from modified date is more recent.
-v, --verbose Verbose output.
-j, --json <format> JSON output. (options: true, pretty)
-e, --ignore-errors Ignore errors.
-p, --parallel-jobs <n> Number of possible concurrent jobs. (default: 1)
-s, --state <file> Save state to file for resume ability.
--state-frequency <n> Save state frequency. (In <n> files saved.) (default: 100)
-a, --archive <state-file> Attempt to copy as much as possible using options `-mervs <state-file> -p 4` with restart capabilities.
-h, --help output usage information
FAQs
Copy files via Node or command-line!
The npm package @timsuchanek/copy receives a total of 57,179 weekly downloads. As such, @timsuchanek/copy popularity was classified as popular.
We found that @timsuchanek/copy 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.