
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@ublend-npm/serverless-website-component
Advanced tools
Deploy a static website to AWS S3 in seconds using Serverless Components.
$ npm install -g serverless
$ mkdir my-website
$ cd my-website
the directory should look something like this:
|- code
|- index.html
|- serverless.yml
|- .env # your AWS api keys
# .env
AWS_ACCESS_KEY_ID=XXX
AWS_SECRET_ACCESS_KEY=XXX
The code
directory could either be a simple directory of html/css/js assets files, or a full fledged React app.
# serverless.yml
name: my-website
stage: dev
myWebsite:
component: "@serverless/website"
inputs:
code:
root: ./ # The root folder of your website project. Defaults to current working directory
src: ./src # The folder to be uploaded containing your built artifact
hook: npm run build # A hook to build/test/do anything to your code before uploading
region: us-east-1 # The AWS region to deploy your website into
bucketName: myBucket # (Optional) The Bucket name where `src` files/folder will be upload.
# If not provided, it will create random bucket name and upload `src` files
cloudFront: # (Optional)
waitForCreateDistribution: true # (Optional) wait for create cloudfront distribution to complete
waitForUpdateDistribution: false # (Optional) wait for update cloudfront distribution to complete
customOrigin: true # (Optional) wait for custom origin to avoid s3 bucket redirect during cloudfront creation
env: # Environment variables to include in a 'env.js' file with your uploaded code.
API_URL: https://api.com
# You can specify a custom domain name for your website.
# You must have a public hosted zone available for this domain in AWS Route53.
# This is done automatically for you if you've purchased the domain via AWS Route53.
domain: www.example.com
$ serverless
Checkout the Serverless Components repo for more information.
New versions of this fork should be published from the master
branch
using npm publish
. Remember to bump the package version as appropriate before publishing.
FAQs
The npm package @ublend-npm/serverless-website-component receives a total of 39 weekly downloads. As such, @ublend-npm/serverless-website-component popularity was classified as not popular.
We found that @ublend-npm/serverless-website-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 19 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.