
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
@apicurio/data-models-spectral-extension
Advanced tools
An extension to validate Spectral rulesets using apicurio-data-models
Spectral is a popular open-source JSON/YAML linter by Stoplight. This extension lets you validate your data models using the Apicurio Data Models library with Spectral rulesets.
Install with npm:
npm install @apicurio/data-models-spectral-validation-extension
Load a Spectral ruleset from a configuration file:
import { SpectralValidationExtension, bundleAndLoadRuleset } from '@apicurio/data-models-spectral-validation-extension';
import { fetch } from '@stoplight/spectral-runtime';
import * as path from 'path';
import * as fs from 'fs';
const rulesetFilepath = path.join(__dirname, ".spectral.yaml");
const spectral = new SpectralValidationExtension({
ruleset: await bundleAndLoadRuleset(rulesetFilepath, { fs, fetch })
});
Or you can pass in a ruleset object:
import { SpectralValidationExtension } from '@apicurio/data-models-spectral-validation-extension';
import { truthy } from '@stoplight/spectral-functions';
import { DiagnosticSeverity } from '@stoplight/types';
const spectral = new SpectralValidationExtension({
ruleset: {
rules: {
'title-required': {
given: '$.info',
description: 'Info title is required',
severity: DiagnosticSeverity.Hint,
then: {
function: truthy,
field: 'title'
}
}
}
}
});
Now you can call Library.validateDocument(...) to validate your data model using the Spectral ruleset:
import { Library, ValidationProblem, ValidationProblemSeverity } from 'apicurio-data-models';
const validationProblems = await Library.validateDocument(document, null, [spectral]);
FAQs
An extension to validate Spectral rulesets using apicurio-data-models
We found that @apicurio/data-models-spectral-extension 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.