
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A JavaScript library for listing, parsing, and verifying the contents and signatures of electronic documents (eDoc) and Associated Signature Containers (ASiC-E), supporting EU eIDAS standards for digital signatures and electronic seals.
A JavaScript/TypeScript library for viewing and verifying EU standard ASiC-E containers, including Latvian eDoc files, which use the same format with a different extension. It works in both browser and Node.js environments.
Note: Work in progress. This library still needs broader real-world testing with ASiC-E implementations from more EU countries.
npm install edockit
If you implement trusted-list checking, TRUSTED-LIST.md is required reading. The README only covers the quick-start path.
import { parseEdoc, verifySignature } from "edockit";
import { createTrustListProvider } from "edockit/trusted-list";
const container = parseEdoc(fileBuffer);
const trustListProvider = createTrustListProvider({
url: "/assets/trusted-list.json",
});
const result = await verifySignature(container.signatures[0], container.files, {
includeChecklist: true,
trustListProvider,
revocationOptions: {
proxyUrl: "https://cors-proxy.example.com/?url=",
},
trustedListFetchOptions: {
proxyUrl: "https://cors-proxy.example.com/?url=",
},
});
console.log(result.status, result.statusMessage);
console.log(
result.checklist?.find((item) => item.check === "issuer_trusted_at_signing_time"),
);
Use revocationOptions.proxyUrl in browsers because OCSP and CRL endpoints usually do not support CORS. trustedListFetchOptions.proxyUrl is only needed if the verifier must fetch issuer certificates to strengthen trusted-list matching.
verifySignature() returns:
status: "VALID" | "INVALID" | "INDETERMINATE" | "UNSUPPORTED"statusMessage: a human-readable explanationchecklist: optional structured verification steps when includeChecklist: truetrustListMatch: signer-issuer trust-list result when trustListProvider is configuredtimestampTrustListMatch: timestamp-authority trust-list result when trustListProvider is configuredallowWeakDnOnlyTrustMatch is off by default, so DN-only trusted-list matches remain indeterminate.
Recommended production path:
createTrustListProvider({ url }).Build-time generation uses the Node-only helper:
import { generateTrustedListBundle } from "edockit/trusted-list/build";
await generateTrustedListBundle({
outputPath: "public/assets/trusted-list.json",
});
Runtime local matching uses:
import { createTrustListProvider } from "edockit/trusted-list";
Other opt-in trusted-list subpaths:
edockit/trusted-list/build: Node-only bundle generation helpersedockit/trusted-list/http: tiny remote API wrapperedockit/trusted-list/bundled: explicit bundled fallback snapshotFor proper trusted-list integration, remote API usage, hybrid local+remote setups, the provider contract, and bundle/manifest details, read TRUSTED-LIST.md.
The root package also exposes timestamp helpers:
import { getTimestampTime, parseTimestamp, verifyTimestamp } from "edockit";
Use these if you need direct RFC 3161 parsing or verification outside verifySignature().
.edocThe library has been used in production to verify ASiC-E containers across a range of signature algorithms, certificate authorities, and vendor implementations.
If the library fails to parse a valid container or does not recognize a signature format, please open an issue or contact edocviewer@zenomy.tech and attach the sample file (if it does not contain sensitive or personal data). Real-world samples from other EU and non-EU countries are especially helpful.
Contributions are welcome, especially:
FAQs
A JavaScript library for listing, parsing, and verifying the contents and signatures of electronic documents (eDoc) and Associated Signature Containers (ASiC-E), supporting EU eIDAS standards for digital signatures and electronic seals.
The npm package edockit receives a total of 88 weekly downloads. As such, edockit popularity was classified as not popular.
We found that edockit demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.