
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
observable set (using mobx) that produces rows of rfc6902 patches (using fast-json-patch) as readable stream.
import {Kek} from "kek"
import assert = require("assert")
type IModel = {
id: string
n: number
}
const models: IModel[] = [
{ id: "foo", n: 10 },
{ id: "bar", n: 5 }
]
const kek = new Kek<IModel>(models)
function nSum(models: IModel[]): number {
return kek.children.reduce<number>((acc, x) => {
acc += x.n
return acc
}, 0)
}
const reads = kek.observe((value, r) => {
assert(kek.children === value)
if (nSum(kek.children) === 22) {
r.dispose()
}
})
reads.on("data", changes => {
console.log(changes)
})
const baz = { id: "baz", n: 1 }
kek.add(baz)
kek.batch(() => {
baz.n = 5
kek.add({ id: "qux", n: 0 })
kek.add({ id: "quux", n: 0 })
})
kek.children.forEach(model => {
if (model.id !== "baz") {
model.n += 1
}
})
outputs:
[ { op: 'add', path: '/2', value: { id: 'baz', n: 1 } } ]
[ { op: 'replace', path: '/2/n', value: 5 },
{ op: 'add', path: '/3', value: { id: 'qux', n: 0 } },
{ op: 'add', path: '/4', value: { id: 'quux', n: 0 } } ]
[ { op: 'replace', path: '/0/n', value: 11 } ]
[ { op: 'replace', path: '/1/n', value: 6 } ]
import {Kek} from "kek"
FAQs
observable set that produces rows of rfc6902 patches as readable stream
We found that kek demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.