
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.
Pale: A dead-simple schema validator.
You can install Pale via npm:
npm install --save pale
Or use it directly in browser via cdn service:
https://unpkg.com/pale/build/pale.min.js
import Pale from 'pale';
const check = new Pale({
name: ['string minLength(2)', 'John Doe'],
age: ['number minLength(1) maxLength(3)', '35']
});
check.run()
.then(console.log) // Object with input data
.catch(console.log); // Object showing which validator failed
import Pale from 'pale';
const check = new Pale({
acceptedTerms: ['boolean', true]
});
function boolean(value) {
if (['true', 'false', true, false].includes(value)) {
return true;
} else {
return false;
}
}
check.addValidator(boolean);
check.run();
// ...
import Pale from 'pale';
const check = new Pale({
acceptedTerms: ['boolean', true]
});
Object.keys(check.validators);
// Outputs by default:
// ['string', 'number', 'min', 'max', 'minLength', 'maxLength']
By @Kazzkiq
Pale was made possible by awesome open-source projects such as Rollup.
FAQs
A dead-simple, fat-free, schema validator. Edit
We found that pale demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.