
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@digitalbazaar/zcapld
Advanced tools
Javascript reference implementation for Authorization Capabilities for Linked Data.
TODO
TBD
To install from NPM:
npm install @digitalbazaar/zcapld
To install locally (for development):
git clone https://github.com/digitalbazaar/zcapld.git
cd zcapld
npm install
TBD
See the contribute file!
PRs accepted.
If editing the Readme, please conform to the standard-readme specification.
Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com
New BSD License (3-clause) © Digital Bazaar
6.0.0 - 2022-01-11
createRootCapability
helper function to construct root zcaps from
a root invocation target and a root controller.maxClockSkew
param that defaults to 300
seconds. This parameter
defines the maximum clock skew that will be accepted when comparing
capability expiration date-times against the current date (or other
specified date) and when comparing a capability invocation proof against
the capability's delegation proof.invocationTarget
. This eliminates
optionality, simplifying implementations.parentCapability
MUST be passed so that the chain can be auto-computed.
Passing capabilityChain
is no longer permitted.capabilityAction
when creating capability invocation
proofs and expectedAction
when verifying proofs; removing previous
optionality simplifies implementations.expires
is not permitted on root capabilities and is
required on delegated capabilities. Removing optionality here simplifies
implementations and improves security by reducing surface and providing
an "out" for zcaps that can not be easily revoked by causing them to
always expire eventually.currentDate
and date
parameters that were serving
the same purpose. These params are only used for verification and the date
parameter is used by the base class provided by jsonld-signatures, so the
currentDate
parameter has been removed; use date
instead, it is only
used for verification of proofs, not creation of proofs.invocationTarget
MUST be specified in capability invocation
proofs, it will not default to the invocationTarget
specified in the
capability. Removing this optionality removes complexity in implementations.capabilityChain
and capabilityChainMeta
that are passed
to inspectCapabilityChain
include entries for the root capability. The
verifyResult
is null
for the root zcap.allowTargetAttenuation=true
allows both path- or query-based
invocation target attenuation. Turning this on means a verifier will allow
accept delegations (and invocations) where a suffix has been added to the
parent zcap's invocation target (invoked zcap's invocation target). The
suffix must starts with /
or ?
if the invocation target prefix has no ?
and &
otherwise.invoker
and delegator
properties.
Only controller
is now permitted and it is required
, i.e., a ZCAP MUST
have a controller
property, the value of the ZCAP's id
property is not
considered a default controller value for the ZCAP. This change simplifies
ZCAP implementations and better reflects the fact that a delegation cannot
actually be restricted -- a system can only force users to use data model
and protocol-external mechanisms to delegate. This change keeps all
delegation within the data model/protocol for improved auditability.FAQs
Linked Data Capabilities reference implementation.
The npm package @digitalbazaar/zcapld receives a total of 1 weekly downloads. As such, @digitalbazaar/zcapld popularity was classified as not popular.
We found that @digitalbazaar/zcapld demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.