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.
@packt/serverless-plugin-package
Advanced tools
A serverless plugin to expose package.json variables
Makes package.json
variables available.in serverless.yml
, and exposes the package.json
version as its semver
components.
Install the plugin using the serverless cli
serverless plugin install -n @packt/serverless-plugin-package
Install the package in your service:
npm install --save-dev @packt/serverless-plugin-package
Then register it in your plugins array in serverless.yml
:
plugins:
- "@packt/serverless-plugin-package"
Note: Don't forget to quoe the plugin name in serverless.yml
, @
has a meaning in yml.
To reference variables from your project's package.json
.
# Becomes name: my-awesome-service-1
name: ${package:name}-${package:semver.major}
...
custom:
# Uses your description from package.json
description: ${package:description}
To reference semver
parts of your project's version
:
custom:
patchVersion: ${package:semver.patch}
minorVersion: ${package:semver.minor}
majorVersion: ${package:semver.major}
FAQs
A serverless plugin to expose package.json variables
The npm package @packt/serverless-plugin-package receives a total of 0 weekly downloads. As such, @packt/serverless-plugin-package popularity was classified as not popular.
We found that @packt/serverless-plugin-package demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.