
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
koa-instance-digest
Advanced tools
A middleware to handle verification of HTTP digest headers as described in [RFC-3230](https://tools.ietf.org/html/rfc3230) "Instance Digests in HTTP".
A middleware to handle verification of HTTP digest headers as described in RFC-3230 "Instance Digests in HTTP".
Note that, as per the RFC, this module provides:
However, it does NOT provide:
Install the package via yarn:
❯ yarn add koa-instance-digest
or via npm:
❯ npm install koa-instance-digest --save
The following algorithms are available: md5, sha, sha-256, sha-512.
The middleware can be configured with the following parameters:
algorithms: List of supported algorithms (all by default).required: Whether to set a digest header as mandatory (false by default).You can change the defaults by doing:
middleware({
algorithms: ['sha-256'],
required: true
});
const { middleware } = require('koa-instance-digest');
const Koa = require('koa');
const app = new Koa();
app.post('/', middleware(), async ctx => {
// Your code here ...
});
app.listen(3000);
The Digest header can be provided as follows:
'Digest: <algorithm>=<value>'
If the header is missing the following header will be added to the response:
'Want-Digest: <list-of-accepted-algorithms>'
❯ yarn test
❯ npm version [<new version> | major | minor | patch] -m "Release %s"
FAQs
A middleware to handle verification of HTTP digest headers as described in [RFC-3230](https://tools.ietf.org/html/rfc3230) "Instance Digests in HTTP".
We found that koa-instance-digest 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.