Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

hackerrank-cli

Latest version: v2026.11.24

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
PyPI package Publisher: adamtheturtle
0 Stars
0 Forks
5 Versions
500 Downloads
Python Repo language

Scan summary

hackerrank-cli was last scanned on 24 Nov 2026 at version 2026.11.24. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest was published on 24 Nov 2026.
  • Findings: No rules fired in version 2026.11.24.
  • Downloads: 500 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2026.11.24 LATEST 24 Nov 2026 No rules fired
2026.11.10.1 10 Nov 2026 No rules fired
2026.11.10 10 Nov 2026 No rules fired
2026.11.7 7 Nov 2026 Not shown
2026.10.30 30 Oct 2026 Not shown

No rules fired in 2026.11.24

Findings

Findings for v2026.11.24. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2026.11.24; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

hackerrank-cli

Upload starter files to an existing HackerRank for Work project question using the hackerrank Python SDK. This independent CLI replaces only the project archive, preserving the question's name, problem statement, environment, scoring settings, and other metadata.

The initial scope is project questions such as fullstack, frontend, and backend projects. Language-specific coding-question stubs are outside this CLI's initial scope.

Requires Python 3.13 or later. Install from PyPI:

.. code-block:: console

uv tool install hackerrank-cli hackerrank --help

Or install the checkout for development:

.. code-block:: console

uv sync --locked uv run hackerrank --help uv run python -m hackerrank_cli --version

pip install hackerrank-cli is also supported.

Usage

Use synthetic question ID 123456 below in place of your own question ID. Exactly one content source is required:

.. code-block:: console

hackerrank questions upload 123456 --directory ./starter --dry-run hackerrank questions upload 123456 --directory ./starter --exclude '*.zip' hackerrank questions upload 123456 --file ./starter.py

Real uploads read HACKERRANK_API_TOKEN from the environment. Get a key from the HackerRank for Work API tokens page. Missing, empty, and whitespace-only keys fail clearly. Dry runs run offline without credentials.

Exactly one of --directory or --file is required. Both replace the entire project archive. --file creates a one-file project using the basename of the source. This option creates a project from the file itself.

File bytes are preserved exactly, including binary files, CRLF, blank lines, trailing whitespace, UTF-8 BOMs, and documentation markers. Empty single files are valid. Supply paths and IDs explicitly. Inputs are fully read, staged, and archived before credentials are read or a mutation is issued. POSIX executable bits are preserved. Errors exit nonzero. API response bodies and credentials are never printed. The default retry count is zero, matching the released SDK. Set --retries 3 to delegate retries and backoff to the SDK for this repeatable upload. Retry behavior comes from the SDK. Each attempt uses the same prepared archive bytes.

Offline archives

Export the same project ZIP locally without a question ID, credentials, or network access:

.. code-block:: console

hackerrank questions archive --directory ./starter --exclude '*.zip' --output ./starter.zip hackerrank questions archive --file ./starter.py --output - > ./starter.zip

--output is required. Choose a new destination file or pass - to write ZIP bytes to standard output. Shell redirection controls whether its destination is overwritten. Source validation and packaging finish before the output is opened. The source options, ignore rules, file contents, and executable permissions match questions upload.

Native project configuration

Both questions archive and questions upload accept --configuration-file ./native.yml. The file must contain a UTF-8 native HackerRank document with version: 1.0 and a configuration mapping. Its bytes replace the root hackerrank.yml entry or add it if absent. Other files and their executable permissions are preserved. Dry runs validate the configuration and include hackerrank.yml in the file listing without credentials or network requests.

Existing native files may include additional configuration keys. Invalid YAML fails before the CLI writes an archive or uploads it.

Directory selection

  • Both Git and non-Git directories work. Paths are relative to the current working directory. A Git worktree's .git file also identifies its root.
  • In a Git repository, rules are inherited from the nearest Git root down to the upload directory. Outside Git, rules start at the upload directory. Unrelated parent .gitignore files are not used.
  • Each traversed directory adds its own .gitignore rules. Later matching rules override earlier ones, and deeper files override ancestor rules. Interpret each pattern relative to the directory that defines it. Directory-only rules and negations follow Gitignore semantics. Excluded directories are pruned, so a child cannot re-include itself unless its parent is re-included first. This also applies to ancestors of an explicitly selected nested upload root.
  • Ignore rules apply to tracked files too. Global Git excludes and .git/info/exclude are not read. Hidden files, including .gitignore, are uploaded unless excluded.
  • .git files and directories are always excluded at every depth. Explicit source paths inside Git metadata are rejected, including an upload rooted at a .git directory. Repeatable --exclude PATTERN options form a final Gitignore rule layer, relative to the upload root. This layer can exclude files re-included by .gitignore. Later negations in this layer take precedence over its earlier patterns. It cannot re-include a file excluded by .gitignore or Git metadata.
  • Use --git-index with --directory in a Git checkout or linked worktree to include existing tracked files even if .gitignore matches them. Repository ignore rules still filter files Git does not track, and --exclude applies to every selected file. Both commands skip deleted files and submodules in this mode.
  • ZIP files are included by default. Use --exclude '*.zip' to omit them. Add other exclusions explicitly, such as --exclude node_modules/.
  • Selected symlinks (including directory, broken, and external links) and symlinks in the source path are rejected rather than dereferenced. Ignored links are skipped. Symlinked .gitignore files are rejected when their rules would be read. Special files are rejected. Empty selections fail. Selected files are copied to a temporary directory without dereferencing links. The CLI packages these prepared files through the SDK. The released SDK handles multipart serialization, authentication, network requests, response decoding, and retries.

Development and distribution

Development checks, release setup, and build instructions for Docker, Nix, and standalone binaries are in docs/source/development.rst. The generated CLI reference is in docs/source/cli.rst. There are no prebuilt artifacts yet.

See docs/source/migration.rst for migrating an existing shell uploader and keeping repository-specific snippet preparation outside this CLI.

System prompts for project questions

Set an existing project question's AI assistant prompt from a UTF-8 file:

.. code-block:: console

$ hackerrank questions set-system-prompt 123456 --prompt-file prompt.txt

Use --dry-run to validate without credentials or network access. Prompts may contain up to 15,000 characters. Text is sent exactly as read, including whitespace and line endings. An empty file explicitly clears the prompt. The command uses the SDK metadata helper to preserve other question fields. A missing problem statement or duration fails before the update.

Complete API access

The api command group exposes all 76 documented v3, ATS and SCIM operations. Use hackerrank api operations to list names and api describe OPERATION to inspect parameters and body schemas.

.. code-block:: console

hackerrank api call api_list_all_tests --query '{"limit": 10}' hackerrank api call api_update_interviewer_note --path '{"interview_id": "123"}' --body-file note.json --dry-run

--path and --query accept JSON objects. --body-file reads a JSON object from a UTF-8 file, or stdin when set to -. Real v3 requests use HACKERRANK_API_TOKEN. SCIM requests use their own HACKERRANK_SCIM_API_TOKEN and provisioning host. Dry runs validate requests offline, before reading credentials. Responses include status, headers and complete JSON data, including empty and pending responses.

The complete API commands require hackerrank>=2026.11.7.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases hackerrank-cli

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229