
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@neoskop/ethereal-secrets-middleware
Advanced tools
An express middleware to expose a REST endpoint to issue secrets for client to encrypt their local stores with (the so called local mode) or to store encrypted data for later retrieval (remote mode). The keys and the cipher texts are stored in a Redis DB.
An express middleware to expose a REST endpoint to issue secrets for client to encrypt their local stores with (the so called local mode) or to store encrypted data for later retrieval (remote mode). The keys and the cipher texts are stored in a Redis DB. Each entry in the database is assigned a time-to-live thus making the secretes ethereal.
let app = express();
app.use('/secrets', etherealSecrets({
local: {
ttl: 15 * 60,
cookie: {
secret: 'icanhazcheezburger?'
}
},
redis: {
host: 'localhost'
}
}));
If a client now issues GET /secrets
the API will return JSON in the
form of:
{
"key": "<the key>"
}
Along with a cookie containing a session ID. On subsequent requests the same key is returned as long as the session is valid and the same cookie is sent with the request.
let app = express();
app.use('/secrets', etherealSecrets({
remote: {
defaultTtl: 24 * 60 * 60
},
redis: {
host: 'localhost'
}
}));
If a client issues POST /secrets
with arbitrary data as post body
parameter data
, the API will return status code 201 and JSON in the
form of:
{
"key": "<the key>"
}
If a client now accesses GET /secrets/<the key>
the API will return
JSON in the form of:
{
"data": "<the data>"
}
FAQs
An express middleware to expose a REST endpoint to issue secrets for client to encrypt their local stores with (the so called local mode) or to store encrypted data for later retrieval (remote mode). The keys and the cipher texts are stored in a Redis DB.
We found that @neoskop/ethereal-secrets-middleware demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.