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.
@enonic/mock-xp
Advanced tools
@enonic/mock-xp
Library to mock Enonic XP API's and state.
Used to run tests in node, without the need to run Enonic XP.
import {deepStrictEqual} from 'assert';
import {
LibNode,
Server
} from '@enonic/mock-xp';
const APP_NAME = 'com.enonic.app.example';
const server = new Server().createRepo({id: APP_NAME});
const libNode = new LibNode({
server
});
describe('whatever', () => {
it(`is correct`, () => {
const connection = libNode.connect({
repoId: APP_NAME,
branch: 'master'
});
const FOLDER_NAME = 'folderName';
const createdNode = connection.create({
_name: FOLDER_NAME
});
deepStrictEqual(
{
_id: createdNode._id,
_indexConfig: {
configs: [],
default: {
decideByType: true,
enabled: true,
fulltext: false,
includeInAllText: false,
indexValueProcessors: [],
languages: [],
nGram: false,
path: false,
},
},
_name: FOLDER_NAME,
_path: createdNode._path,
_nodeType: 'default',
_state: 'DEFAULT',
_ts: createdNode._ts,
_versionKey: createdNode._versionKey,
},
createdNode
);
});
});
FAQs
Mock Enonic XP API JavaScript Library
The npm package @enonic/mock-xp receives a total of 20 weekly downloads. As such, @enonic/mock-xp popularity was classified as not popular.
We found that @enonic/mock-xp 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.
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.