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.
[image] Efesto
To see the latest implementation on Efesto, take a look at the Changelog
install Efesto in your project using
npm install efesto
or
yarn add efesto
In your app file use express to define the main API path and use the efesto main function as middleware
import efesto from "efesto"
import {createServer } from "http"
class App {
public app: express.Application;
constructor() {
this.app = express();
this.config();
}
private function config(){
this.app.use(
"yourMainApi/path",
efesto({
authMiddleware: yourAuthMiddleware(),
errorMiddleware:yourErrorMiddleware(),
absoluteDirRoutes: "efesto/files/main/path",
relativeDirSwaggerDeclarationsPath: "swagger/generation/out/dir",
isProduction: isProduction,
})
);
}
}
const app = new App().app
const server = createServer(app)
server.listen(4646, ()=>{
console.log("Server listening on port 4646")
})
now your server is ready to go!
Efesto path generation is based on the structure of the files in the efesto directory.
For example, if you have declared "/efesto" as efesto's main directory and you create the "efesto/users" file the endpoint will be yourApiMain/path/users
.
Efesto also supports dynamic parameters in the API paths. For example, if your create the "efesto/users/[id]" the endpoint will be yourApiMain/path/users/:id
each efesto file must have
FAQs
![Efesto](https://efesto.mabiloft.com/efesto_logo.png)
The npm package efesto receives a total of 526 weekly downloads. As such, efesto popularity was classified as not popular.
We found that efesto demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.