Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
challenger-code
Advanced tools
Challenge yourself with coding exercises. Official website: challengerco.de.
If you want to install locally:
$ npm i challenger-code
Start with
$ npm start
You will need a running instance of MongoDB listening to 127.0.0.1,
no security.
It will use database cc
.
You will need to have a file in the root directory
called .challenger-code.json
, containing:
{
"jwtSecret": "...",
"githubId": "...",
"githubSecret": "..."
}
The first value jwtSecret
is used to encrypt JWT tokens,
so make sure that it is kept secret.
The next values githubId
and githubSecret
are used to authenticate using GitHub.
Please refer to
GitHub: Authorizing OAuth Apps
for details.
The following API calls are published.
GET /api/challenge/:owner/list
Returns a list of challenges with id
and name
from owner
.
GET /api/challenge/:owner/:id
Returns the challenge with the given owner
and id
.
POST /api/challenge/:owner/:id/run
Runs the given challenge id
from owner
with some code.
Body parameters:
code
: the code to run.This is a list of things I'm working on. Please let me know if you want to tackle any so we don't duplicate efforts. Thanks!
challengeco.de/owner/challenges
.The project uses fastify. It loosely follows the structure of fastify-example-twitter.
Challenge runs now have id
, not challengeId
.
If you want to preserve your existing challenge runs,
use this script on the mongo
console:
> db.runs.find().snapshot().forEach(e => db.runs.update({_id: e._id}, {$set: {id: e.challengeId}})
The code and challenges are open for participation. Pull requests are very welcome!
(C) 2020 Alex Fernández. Licensed under the GPL v3. See LICENSE file for details.
FAQs
Challenger code.
The npm package challenger-code receives a total of 3 weekly downloads. As such, challenger-code popularity was classified as not popular.
We found that challenger-code 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.