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.
@smarterservices/html-to-pdf-to-s3
Advanced tools
Module that takes a URL and using pdfcrowd pipes the resulting pdf into an s3 bucket
npm install @smarterservices/html-to-pdf-to-s3 -s
let pdfClient = require('@smarterservices/html-to-pdf-to-s3');
let pdf = new pdfClient(config); // config defined below
pdf.convertUrl(url,bucket,name,options)
.then(console.log)
.catch(console.log)
{
"accessKey":"aws access key. not required",
"secretKey":"aws secret key not required",
"region": "aws region. not required defaults to us-east-1",
"pdfCrowd": {
"userName": "pdfCrowd username",
"apiKey": "pdfCrowd api key",
"hostName": "pdfCrowd hostname. omit for default."
}
}
Can use AWS keys in env variable as AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
NOTE: AWS will use credentials in this order passed in to config > in environment var > with your system profile
url
: url that will be converted to pdfbucket
: name of bucket to insert itemname
: name of output item(must end in .pdf)options
: options object for pdfCrowd. This is optional.pdf.convertUrl('http://google.com','testBucket','google.pdf')
.then(console.log)
.catch(console.log)
html
: raw html that will be convertedbucket
: name of bucket to insert itemname
: name of output item(must end in .pdf)options
: options object for pdfCrowd. This is optional.pdf.convertHtml('<strong>Hi</strong>','testBucket','google.pdf')
.then(console.log)
.catch(console.log)
FAQs
Module that takes a URL and using pdfcrowd pipes the resulting pdf into an s3 bucket
We found that @smarterservices/html-to-pdf-to-s3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
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.