Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@useoptic/standard-rulesets
Advanced tools
Optic includes the following rulesets:
Run these locally using optic
cli or in optic cloud which integrates with github and gitlab.
Turn on breaking changes by adding the breaking-changes into your optic.dev.yml
file
ruleset:
- breaking-changes
You can also exclude certain operations in breaking changes by exempting operations with a certain extension. E.g.
ruleset:
- breaking-changes:
exclude_operations_with_extension: x-draft # if an operation has the extension x-draft, optic will not check for breaking changes
paths:
/api/users:
get:
x-draft: true # this endpoint will not be checked for breaking changes
...
The rules that are enforced are:
Turn on naming enforcement to ensure your OpenAPI spec is has consistent naming conventions
The configuration options are:
ruleset:
- naming:
required_on: always # also available are 'added' or addedOrChanged
requestHeaders: camelCase #also available are Capital-Param-Case, param-case PascalCase and snake_case
queryParameters: camelCase
responseHeaders: camelCase
cookieParameters: camelCase
properties: camelCase
pathComponents: camelCase
Require an example to be present in your schemas, and ensure that they match the schema object
The configuration options are:
ruleset:
- examples:
required_on: always # also available are 'added' or addedOrChanged
require_request_examples: true # default is false
require_response_examples: true # default is false
require_parameter_examples: true # default is false
FAQs
Unknown package
The npm package @useoptic/standard-rulesets receives a total of 10,523 weekly downloads. As such, @useoptic/standard-rulesets popularity was classified as popular.
We found that @useoptic/standard-rulesets demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.