
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@ssc-half-light/message
Advanced tools
Create and verify signed messages with Fission libraries.
npm i @ssc-half-light/message
import { create } from '@ssc-half-light/message'
// const { crypto } = program.components
await create(crypto, { type: 'test', value: 'wooo' })
The returned object has a format like
{
author: 'did:key:...',
signature: '123abc',
...message
}
[!NOTE]
the message will have the fieldsauthorandsignatureappended to it.authoris the DID that was used to sign this message. It is read byverify(message).
import { test } from '@nichoth/tapzero'
import { create } from '@ssc-half-light/message'
let req
test('create message', async t => {
// program is from
// const program = await odd.program({
// ...config
// })
const { crypto } = program.components
req = await create(crypto, { type: 'test', value: 'wooo' })
t.ok(req, 'message was created')
t.equal(typeof req.signature, 'string', 'should have a signature')
t.ok(req.author.includes, 'did:key:', 'should have an author field')
t.equal(req.type, 'test', 'should have the properties we passed in')
})
import { test } from '@nichoth/tapzero'
import { verify } from '@ssc-half-light/message'
test('verify a message', async t => {
// `req` is the message we created above
const isOk = await verify(req)
t.equal(isOk, true, 'should return true for a valid message')
})
FAQs
Create and verify signed messages
We found that @ssc-half-light/message 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.