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.
@ibm-cloud/openapi-ruleset
Advanced tools
This package contains a custom Spectral ruleset for validating OpenAPI documents. It extends the spectral:oas
ruleset, for which it defines custom severity levels. It also contains a number of additional rules based on API design requirements and guidance from IBM Cloud. This is the default ruleset used in the ibm-openapi-validator
package.
npm install @ibm-cloud/openapi-ruleset
Note that installation is only required if using this package programmatically or extending it in a Spectral config file written in JavaScript. It is not required if extending the ruleset in a Spectral config file written in YAML or JSON.
# .spectral.yaml
extends: '@ibm-cloud/openapi-ruleset'
rules:
content-entry-provided: off
// .spectral.js
const ibmOpenapiRuleset = require('@ibm-cloud/openapi-ruleset');
module.exports = {
extends: ibmOpenapiRuleset,
rules: {
'content-entry-provided': 'off'
}
};
// your-module.js
const ibmOpenapiRuleset = require('@ibm-cloud/openapi-ruleset');
const { Spectral } = require('@stoplight/spectral-core');
function async runSpectral(openapiDocument) {
const spectral = new Spectral();
spectral.setRuleset(ibmOpenapiRuleset);
results = await spectral.run(openapiDocument);
console.log(results);
}
FAQs
Spectral ruleset for validating IBM Cloud services
The npm package @ibm-cloud/openapi-ruleset receives a total of 183,427 weekly downloads. As such, @ibm-cloud/openapi-ruleset popularity was classified as popular.
We found that @ibm-cloud/openapi-ruleset demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 23 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.