Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
restify-session
Advanced tools
Readme
This module is made to manage session without cookies in a REST server powered by restify. Please install Redis (>=2.0.0) in your server to enable this module. To create documentation you must install JSDuck and type in your terminal:
$ ./gen_doc.sh
When you need to access to your REST server with session from a javascript app for iOS bundled as native app using Phonegap/Cordova, you can't use cookies because since iOS 5 these are disables by default.
Install restify-session
as usual:
$ npm install --save restify-session
Is very simple to enable session:
// dependencies
var restify = require('restify'),
session = require('restify-session')({
debug : true,
ttl : 2
});
// create the server
var server = restify.createServer();
// attach the session manager
server.use(session.sessionManager)
// attach a route
server.get('/', function(req, res, next){
res.send({ success: true, session: req.session });
return next();
});
// start the server
server.listen(3000);
Save this file as server.js and start it in a terminal window:
$ node server.js
Open your browser and put the address of your server:
http://localhost:3000
Now you see an answer like this:
{"success":true,"session":{"sid":"ViS5pHE5n8McblTATbyFUJTGJyzVFeXOcAEZ41Zs"}}
You can see your session id (sid) into the response header:
Session-Id ViS5pHE5n8McblTATbyFUJTGJyzVFeXOcAEZ41Zs
See full documentation into doc folder.
All tests are written in mocha and designed to be run with npm:
$ npm test
FAQs
Session manager for REST server without cookies
We found that restify-session 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.