Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
github.com/walah/go-csv-parser
I was working on a project where we had multiple services with in one project (e.g. Web, SafeKeeping, IOS, Call Notice, etc.). WEB was the front-end that will let the user upload the CSV file, and prepare it. After that, other services can collect the data using a POST request.
The whole CSV file parsing is devided into 2 parts...
It converts the contents of the passed/received file into a multipart.Writer
form file so the data can be passed to next service.
It returns the correct HTTP Content-Type, the form content as bytes, and a possible error.
(WEB service will collect the CSV file from the user, prepare it using
MultipartWriter()
and send it off to other/next service.)
It reads the records from the passed/received CSV-encoded file and returns the parsed data (in a 2D String slice format) to the next service.
It also gives an option to include or exclude file header.
(Other services will collect the file/data from the POST request and
parse it using the MultipartReader()
)
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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.