
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
[](https://www.npmjs.com/package/enoch)
npm i enoch
At the top of your node file, include this line:
const enoch = require('enoch');
To store logs, attach the .store() function to the Express route as a middleware either by doing:
app.use('**', enoch.store());
to capture all routes or directly on the route like:
router.post('/example', enoch.store(), (req, res, next) => {
// Do something
next();
});
Enoch stores logs as JSON files, in order to clean up old JSON files and prevent excess disk usage, call the cleanup file like so:
enoch.clean('0 0 * * *', 60);
The 2 parameters to provide are:
So in the above example, this will start a cron job to run every day at midnight and will remove JSON logs which are more than 60 days old.
Enoch has a basic UI which will create a route named /enoch-logs to be used by the application to fetch the logs. It also creates a subdiretory named /enoch which you can navigate to to view your API logs. Add these routes to your applcication by including the following line in your Node applicaiton.
enoch.serve(app);
To run in dev mode simply clone the repo, navigate to the directory and run npm run dev which will allow you to edit the UI directly with the Angular CLI on port 4000. You can also run npm run prod to serve the UI from the Node.js server. This will run Enoch, including the UI, on your local machine at localhost:8085. You will need to supply some sample logs in the /logs directory.
FAQs
[](https://www.npmjs.com/package/enoch)
We found that enoch 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.