Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/jimmykodes/csv-to-json
Take in a CSV file and spit out a JSON array
The CSV file should meet a few requirements:
The default delimiter character is "," but others can be passed using the -delimiter
flag.
The program can read from stdin, or an optional infile, and will output to stdout or an option outfile. This makes
it useful for chaining, especially by piping the output to something like jq
for pretty printing the json.
# Clone the repo:
git clone git@github.com:jimmykodes/csv-to-json.git
# cd to repo
cd csv-to-json
# install
go install ctj.go
# basic usage
ctj [-delimiter CHAR] [in_file] [out_file]
# take a standard csv and put the json on stdout
ctj data.csv
# specify a different delimiter
ctj -delimiter '|' data.csv
# special case for tabs
ctj -delimiter tab data.csv
# save output json
ctj data.csv output.json
# suggestion: pipe to jq for nice json in formatting
ctj data.csv | jq
# useful in a chain
curl "https://someUrl.com/get_a_csv" | ctj | jq
FAQs
Unknown package
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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.