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.
restfs exposes your file system as a rest api via nodejs. this is not a static file server, but instead lets you browse stats, and manipulate files through arbitrary paths.
$ npm install restfs
you can create a restfs api using the standalone server or including it in your own. either method exposes a standard REST interface which currently implements the following methods:
GET /path/to/directory
- returns stats for a collection of filesGET /path/to/file
- returns stats for a specific filePOST /path/to/file
- create a specific fileDELETE /path/to/file
- removes a specific fileto start a simple server, simply run restfs
. dir
and port
options are available, which default to process.cwd()
and 8000
respectively. to browse a given directory from http://localhost:8000/, simply run
$ restfs
you can provide restfs as middleware to your http, connect, or express server. the restfs
function accepts two arguments: path
, and api_base
which default to /
and /
respectively. for instance, to access the directory foo
under my home directory /home/catshirt
, via http://localhost/foo
var http = require('http'),
restfs = require('../lib/restfs'),
server = http.createServer();
server.on('request', restfs('/home/catshirt'));
server.listen(80);
FAQs
RESTfs is a pluggable REST Service loading API Modules from the file system
We found that restfs 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.