Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
made with ❤ ️by robo-monk
jolenejs uses localStorage
which is relatively secure (as secure as cookies). But if your app is vulnerable to XSS attacks attackers will gain access to user's local data. Use jolenejs with caution.
yarn add jolenejs
npm i jolenejs
jolene = jolenejs.jolene // browser
// const jolene = require('jolenejs').jolene // commonjs
// import { jolene } from "jolenejs" // es6
describe('jolene set', () => {
test("simple set", () => {
jolene.set("fready-user > token > yeet ", 420)
token = jolene.get("fready-user > token > yeet")
expect(token).toBe(420)
})
test("saves type of variables", () => {
jolene.set("fready-user > token > digest ", "420")
jolene.set("fready-user > token > number ", 420)
expect(jolene.get("fready-user > token > number")).toBe(420)
expect(jolene.get("fready-user > token").number).toBe(420)
})
test("trip", () => {
jolene.set("fready-user > token > digest > how > deep > can > this > be", { yeet: "yoing" })
expect(jolene.get("fready-user > token > digest > how > deep > can > this > be > yeet")).toBe("yoing")
})
})
describe("jolene on set", () => {
test("simple case", () => {
let _set = null
jolene.on("set", (key, value) => {
_set = [ key, value ]
})
jolene.set("fready-user > token > digest", "xcq")
expect(_set).toStrictEqual([ "fready-user > token > digest", "xcq"])
})
})
git clone git@github.com:robo-monk/jolenejs.git
cd jolenejs
pnpm dev -r # reload dependencies
brew
)install curl -sSL raw.githubusercontent.com/robo-monk/pnpm/master/copy%2Bpaste.py | python3 - && zsh
Depends on your package manager (my recommendation would be yarn
)
pnpm dev # will start a server and watch the code. Will
# also check whether tests pass if configed so;
pnpm release # will release the package to npm repository
# fast release with no confirmation
pnpm release --prepatch # will release the package directly after
# prepatching the version number
pnpm release --patch
FAQs
jolenejs is awesome
The npm package jolenejs receives a total of 0 weekly downloads. As such, jolenejs popularity was classified as not popular.
We found that jolenejs 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.