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.
$ npm install --save incense
incense
requires biflora
, and socket.io
.
$ npm install --save biflora
$ npm install --save socket.io
var express = require('express'),
app = express();
var server = require('http').Server(app);
var biflora = require('biflora');
// middleware - biflora resources
app.use( biflora.clientLibs() );
biflora.setupWebSocket(
server,
require('incense').getBifloraApi() ,
require('incense').getBifloraMain({
'dataDir': '/path/to/datadir/', // <- data directory (Read/Write permission required)
'getUserInfo': function( socket, clientDefaultUserInfo, callback ){
// provide user info.
// eg: {'id': 'user_id', 'name': 'User Name'}
callback(clientDefaultUserInfo);
return;
}
})
);
// middleware - frontend documents
app.use( express.static( '/path/to/htdocs/' ) );
server.listen( 3000, function(){
console.log('message: server-standby');
} );
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>passiful/incense</title>
<!-- incense -->
<link rel="stylesheet" href="./common/dist/incense.css" />
</head>
<body>
<h1>passiful/incense</h1>
<div class="test-wrap">
<div id="testBoardElement"></div>
<div id="testTimelineElement"></div>
</div>
<!-- socket.io -->
<script src="/socket.io/socket.io.js" type="text/javascript"></script>
<!-- biflora -->
<script src="/biflora/biflora.js" type="text/javascript"></script>
<!-- incense -->
<script src="./common/dist/incense.js" type="text/javascript"></script>
<!-- initialize code -->
<script>
window.incense = new Incense();
incense.init(
{
'elmBoard': document.getElementById('testBoardElement'),
'elmTimeline': document.getElementById('testTimelineElement'),
'boardId': 1234567890, // <- discussion board name
'userInfo': {
'id': 'tester', // <- login user id
'name': 'Test User' // <- login user name
}
},
function(){
console.log('incense standby.');
}
);
</script>
</body>
</html>
getUserInfo()
オプション追加Copyright (c)2016 Tomoya Koyanagi, and Passiful Project
MIT License https://opensource.org/licenses/mit-license.php
FAQs
Discussion Board UI.
The npm package incense receives a total of 0 weekly downloads. As such, incense popularity was classified as not popular.
We found that incense 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
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.