Interviews

HackerRank Plagiarism Detection: How It Works

HackerRank runs MOSS code-similarity checks on all tests, and employers can add an AI model that scores copy-paste, tab switches and typing patterns.

By Elena Marsh, Job search and applications writer

Updated 15 min read

Young software developer typing code on a laptop in a modern office setting, focused on programming

HackerRank plagiarism detection uses two systems. One compares your code with other candidates' submissions using a code-similarity tool called MOSS. The other is an optional machine-learning model that watches how you wrote the code: typing patterns, copy-paste events, tab switches and time taken. If either system flags your attempt, the employer gets a High or Medium flag with the evidence and decides what to do. You are not told.

This page covers what each system records, which settings are on by default, the accuracy figures HackerRank publishes, the honest behaviours that can still look suspicious, and how to prepare if you're taking a test from home for a remote job.

Quick answer

HackerRank plagiarism detection runs MOSS code-similarity checks on every coding test. Employers can add an AI model that scores copy-paste activity, tab switching, typing patterns and time spent, plus optional webcam and screen proctoring. Flags are labelled High or Medium and sent only to the employer. HackerRank says its AI model is correct 85% of the time it flags someone and tells employers to review flags by hand (as of November 2026).

How does HackerRank detect plagiarism?

HackerRank detects plagiarism by combining what your final code looks like with how you produced it. HackerRank's AI Plagiarism Detection support article groups the cases it is looking for into three types:

  • using AI tools when the test explicitly prohibits them
  • copying from external sources such as the internet
  • copying from another candidate who took the same test.

It runs two models to catch them.

Standard detection: MOSS code similarity

MOSS (Measure of Software Similarity) is a code-comparison tool that breaks a program into tokens and looks for long overlapping sequences between submissions. HackerRank's MOSS support article) says it is enabled by default for all tests. It compares your code with other submissions to the same question in HackerRank's database, including submissions in other programming languages.

MOSS looks at structure, not surface text. HackerRank states that renaming variables or adding whitespace is "generally ineffective" against it, and the candidate-facing malpractice page lists "modified code that keeps the same logic but changes variable names, structure, or formatting" among the things it monitors.

Advanced detection: the AI plagiarism model

The AI plagiarism model is a machine-learning system that scores your behaviour while you code. HackerRank says it weighs these signals among others (as of November 2026):

  • large blocks of code pasted from outside the test
  • coding patterns, including structural similarity and distinctive styles
  • how your code changed between runs on multi-step tasks
  • switching away from the test tab
  • "suspicious code resetting", where large sections are deleted and replaced with irregular typing or cursor movement.

HackerRank's 2023 blog post on its detection model adds that the model retrains on past data. It also says MOSS alone is unreliable against ChatGPT-style tools, because an AI assistant can produce original code that shares no tokens with anyone else's. That's why the behavioural model exists.

The AI model only covers Coding questions. Employers turn it on under Settings, Test Integrity. When it's on, you have to agree to it before the test starts, so the consent screen tells you which mode you're in.

What signals does HackerRank track during a test?

What HackerRank tracks depends on the settings the employer chose, and the defaults differ. The table below brings together HackerRank's own documentation, checked in November 2026.

SignalWhat is recordedOn by default?What it cannot tell
Code similarity (MOSS)Match percentage with other submissions to the same questionYes, all testsWhere the code came from
Copy-paste trackingPaste events and their frequencyYes, all testsWhether the pasted text was your own
AI plagiarism modelTyping pattern, iterations, resets, time taken, tab switchesNo, employer enables; you consentWhich tool or site you used
Tab proctoringNumber of times and how long you left the windowNo, employer enablesWhat you looked at
Secure ModeFull-screen exits, tab switches, extra monitors; copy-paste blockedNo, employer enablesAnything off-screen
Proctor Mode (AI Add-on)Webcam images, screenshots, monitor count, phone detectionNo, employer enablesIntent

Sources: HackerRank support articles on AI plagiarism detection, MOSS, Secure Mode and Proctor Mode. The copy-paste default comes from a HackerRank article on tab proctoring. All were opened in November 2026.

Copy-paste tracking

Copy-paste tracking records each time content is pasted into the editor. HackerRank's Plagiarism Best Practices Guide tells recruiters to check the copy-paste indicator on the detailed report, and notes that "a rising count suggests more malpractice". The same guide suggests turning off the alert that warns candidates when they paste, so they don't switch to retyping the code instead. You may not get a warning even though pasting is logged.

Tab switching

Tab proctoring logs how many times you leave the test window and for how long. The best-practices guide gives recruiters one benchmark: in attempts HackerRank confirmed as plagiarised, the median time outside the window was 65 seconds with one exit. HackerRank describes a longer absence combined with more than one exit as possibly suspicious.

Secure Mode

Secure Mode is a stricter setting that forces the test into full screen and blocks copy and paste. HackerRank's Secure Mode article says candidates get a warning when they leave full screen and an alert when they switch tabs. You can't start with more than one monitor connected, and a monitor plugged in during the test is flagged. Every violation goes into your report, and you end up with an integrity result of High or Medium depending on severity.

Proctor Mode

Proctor Mode is HackerRank's AI proctoring feature, sold as part of its AI Add-on. According to HackerRank's Proctor Mode article, as of November 2026 it:

  • checks the webcam for no face or more than one face
  • detects phones and tablets, even when they're only partly in the frame
  • takes a screenshot every 15 seconds, and every 5 seconds after suspicious activity
  • has a model classify each screenshot, flagging answer-sharing sites, external AI assistants and screen recorders
  • disables copy-paste and requires a single monitor.

Recruiters get a session replay with a searchable timeline. Proctor Mode is only available on tests created after HackerRank's July 2025 release.

What counts as a match? The similarity thresholds

A MOSS flag depends on the match percentage between your code and another submission. HackerRank's MOSS article sets these bands (as of November 2026):

Match percentageFlag level
90% or moreHigh
80% to 90%Medium
Below 80%Low

The best-practices guide adds a rule for short answers. Flagging starts at 75% similarity when a solution has at least 10 lines, and at 90% when it has fewer than 10 lines. The guide also suggests stricter thresholds for easy questions (90%) than for hard ones (75%), because simple problems naturally produce similar code.

Short or very easy solutions are where honest candidates are most exposed to look-alike code. HackerRank says the AI model also struggles there because "there is too little data", although large pastes of external content are still flagged.

Does HackerRank detect ChatGPT and other AI tools?

HackerRank can flag AI-assisted answers, but it cannot name the tool you used. The 2023 blog post says the system detects code from tools like ChatGPT by identifying copy-pasted code from an external source. It does not determine which source the candidate used.

When Proctor Mode is on, the screenshot classifier is designed to spot external AI assistants on screen. Without Proctor Mode, the evidence is behavioural: a paste, a long absence from the tab, or a solution that appears too fast for its length. If you're thinking about live "invisible" helpers, see our pages on whether employers can detect Cluely and the risks of AI interview helpers during a live interview. In short, using them on a test that prohibits AI is malpractice, and the consequences fall on you.

When AI is allowed in a HackerRank test

Some HackerRank tests now allow an AI assistant, and using it then isn't plagiarism. HackerRank's AI-Assisted Tests article describes three levels an employer can set for each section (as of November 2026):

  • No AI assistant.
  • Guarded, the default: a chat for syntax, platform questions and concepts, which won't write complete solutions.
  • Unguarded: plan, ask and agent modes that can write and edit code.

The recruiter sees the full transcript of your conversation with the assistant. If the test gives you a built-in assistant, use that one and not an outside tool, because outside tools still trigger the paste and tab signals.

How accurate is HackerRank plagiarism detection?

HackerRank publishes two different accuracy figures, and they measure different things.

  • 85% precision. The support article says the AI model "has an overall precision of 85%", meaning a flagged session is correct 85% of the time. Put the other way, about 15 in every 100 flags point at someone who did nothing wrong, by HackerRank's own measure.
  • 93% accuracy. The HackerRank plagiarism detection feature page calls the model "93% accurate" and "three times more accurate" than traditional methods, without publishing the method.

Precision is the figure that matters to an honest candidate, because it describes how often a flag is wrong. HackerRank's support article also stresses that people should stay involved in reviewing flags. Its blog recommends that hiring teams don't auto-reject on a flag, and the MOSS article tells recruiters to watch the code playback before deciding.

Whether a particular employer actually does that manual review is up to them. That is the real risk, and you can't control it from your side.

What the employer sees in your HackerRank report

The employer sees a report with the evidence behind any flag. HackerRank's documentation describes these parts (as of November 2026):

  • Candidates tab: flagged candidates are marked with a red triangle.
  • Suspicious Activity tile: a summary of plagiarism details in the test summary.
  • View Matches and Output Diff: side-by-side code comparison with the matching submission.
  • Attempt Activity: where the recruiter confirms or removes the flag with Yes or No.
  • Keystroke Codeplayer and code playback: a replay of how your code was written, so recruiters can jump to the suspicious moments.
  • Excel report: an "Attempt Plagiarism" column showing Yes or No, plus copy-paste frequency.
  • Integrity Summary and session replay: in Secure Mode and Proctor Mode, with timestamps, screenshots and, where enabled, webcam images.

Code playback is the best protection you have. Steady, readable progress with sensible runs and fixes is hard to mistake for copying, even when the final answer looks like someone else's.

Does HackerRank tell you if you were flagged?

No. HackerRank's candidate support page states that it does not share plagiarism check results with candidates. Questions about an assessment go to the recruiter or hiring manager. HackerRank's candidate pages don't describe a separate appeal route, and the employer makes the hiring decision.

In practice, you'll usually only learn about a flag if the employer tells you, often in a rejection email or when asked to explain an answer. If you think a flag was wrong, our guide on being falsely flagged for cheating in an online interview covers how to word a calm reply and what evidence to point to.

Innocent behaviours that can look suspicious

Honest candidates can set off the same signals as cheaters, especially when testing from home in a different country from the employer. These are the common ones, based on the signals HackerRank documents.

  1. Pasting your own code. You draft in VS Code or a notebook and paste the whole thing in. HackerRank's FAQ says solving a standard coding question externally and pasting it in "is likely to be flagged". Projects with an offline workflow, where you push from your own IDE, are not flagged. Type into the HackerRank editor unless the instructions say otherwise.
  2. Looking up documentation. Checking Python's docs for a function signature is a tab switch. If the test allows documentation, keep lookups short and few. If it doesn't, don't do it.
  3. Deleting and rewriting. Throwing away 40 lines and starting again is normal, but the model watches for "suspicious code resetting". Rewriting is fine. Typing a long, perfect replacement in one burst after a long pause can look odd. Commented-out notes on your new approach make the playback easier to follow.
  4. Short, standard answers. A five-line two-pointer solution can match hundreds of others. HackerRank raises the bar to 90% for short code for this reason, but a flag can still happen. Clear names and a brief comment on your reasoning help the reviewer.
  5. Someone walking into the room. In Proctor Mode, a second face on camera is a flag. Shared flats and family homes make this common. Tell people beforehand, close the door and position the camera so the doorway is out of shot.
  6. A phone on the desk. Proctor Mode detects phones even when they're partly in view. If you need your phone as a hotspot backup, put it out of frame.
  7. A second monitor or docking station. Secure Mode and Proctor Mode require one monitor. Unplug the extra screen before you start, because plugging it in mid-test is logged.
  8. Connection drops. HackerRank's documentation doesn't say how disconnections appear in reports, so we couldn't confirm it. If your connection drops, email the recruiter straight away with the time and what happened, so there's a record from your side.

A pre-test checklist for remote candidates

Running through this list before you open the link avoids the avoidable flags. It is based on HackerRank's integrity settings above.

  • Read the test instructions and the consent screen. They tell you whether AI is allowed, which proctoring is on, and whether documentation is permitted.
  • Use one monitor and one browser window. Close chat apps, AI tools and screen recorders.
  • Write all code in the HackerRank editor. Don't paste from other files.
  • Run a webcam and microphone check if Proctor Mode is on. Make sure your face is lit and nobody else is in the frame.
  • Put your phone out of camera view and on silent.
  • Have backup internet ready (a mobile hotspot on a different network), and plan for power cuts if they're common where you live.
  • Note the test's deadline in your own time zone (see below).
  • Keep a short note of anything unusual during the test, such as a dropped connection or an interruption, to send the recruiter afterwards.

For how to prepare for the questions themselves, see our guide on how to pass an assessment test for a remote job. Our software engineer interview questions cover what usually follows a HackerRank round.

Test deadlines across time zones: a worked example

Many HackerRank invitations give a window to start the test. Employers usually write the deadline in their own time zone, so convert it before you plan your evening. The example below uses assumed times to show how the conversion works.

Example: an invitation says "complete by 11:59pm Pacific Time on Friday 20 November 2026". US daylight saving ended on 1 November 2026, so Pacific Time is UTC-8. The deadline is 07:59 UTC on Saturday 21 November.

Where you liveUTC offset (late November)Deadline in local time
LondonUTC+0Saturday 07:59
LagosUTC+1Saturday 08:59
NairobiUTC+3Saturday 10:59
KarachiUTC+5Saturday 12:59
BengaluruUTC+5:30Saturday 13:29
ManilaUTC+8Saturday 15:59
São PauloUTC-3Saturday 04:59

In this example, a candidate in Asia actually has until Saturday afternoon. A candidate in Brazil loses the window at about 5am on Saturday. Starting close to the deadline is risky everywhere, because a timed test that runs past the window can cut off. Check whether your invitation has both a start window and a duration.

Who uses HackerRank tests, and where you'll meet them

HackerRank tests are most common in software engineering, data and QA hiring. Remote employers often send them as the first technical screen after a CV review. You'll meet them whatever the job's location rule, whether it's open worldwide, limited to EMEA or LATAM, or open in named countries only. The integrity checks are the same wherever you take the test.

The test itself doesn't change who can be hired, though. Passing it won't make a US-only role open to someone in Pakistan or Kenya. Check the location line on the job before spending two hours on an assessment. On RemoteApply, every listing in remote tech jobs shows where applicants may live. The software engineer role guide explains what these roles usually test for.

What happens if the employer confirms plagiarism?

Plagiarism consequences are set by the employer, not by HackerRank. HackerRank's candidate pages do not list penalties. The best-practices guide suggests that employers state "zero tolerance" in the instructions and warn that plagiarism leads to disqualification.

In practice, a confirmed flag usually means rejection for that role. Some employers recheck flagged candidates with a live coding session instead of rejecting them outright. That is a fair outcome if you were wrongly flagged, because you can show the reasoning live. We couldn't find any HackerRank statement saying flags are shared between employers, so we can't confirm whether a flag at one company follows you to another.

Frequently asked questions

Does HackerRank detect copy and paste?

Yes. HackerRank tracks copy-paste events on all tests by default, and recruiters see a copy-paste indicator and frequency in your report. When Secure Mode or Proctor Mode is on, copying and pasting is blocked entirely. Pasting your own code from another editor can still count against you, so type in the HackerRank editor.

Can HackerRank see my screen?

Only if the employer turned on Proctor Mode, which you have to agree to before starting. In Proctor Mode, HackerRank takes a screenshot every 15 seconds, and every 5 seconds after suspicious activity, and classifies each one. Without Proctor Mode, HackerRank records tab and window activity, not your screen contents.

Does HackerRank use your webcam?

HackerRank uses the webcam only when the employer enables image proctoring or Proctor Mode, and you're asked for permission first. Proctor Mode checks for no face or more than one face, and detects phones or tablets in view. If the consent screen doesn't ask for camera access, the webcam isn't being used.

Does changing variable names get around HackerRank plagiarism detection?

No. HackerRank states that its MOSS comparison works on code structure, so renaming variables or adding whitespace is generally ineffective. Its candidate pages list reformatted code with the same logic as monitored malpractice. On top of that, the behavioural model records how the code was produced, not only what it looks like at the end.

Can HackerRank flag you for plagiarism if you didn't cheat?

Yes, it can. HackerRank says its AI model is correct 85% of the time when it flags someone, so some flags are wrong. Short, standard solutions and pasted self-written code are the usual causes. HackerRank tells employers to review the code playback by hand before acting on a flag.

Is HackerRank plagiarism detection on in practice tests?

HackerRank's documentation describes plagiarism detection for employer tests and doesn't say it runs on public practice problems. We couldn't confirm the practice-site rules from HackerRank's pages. What is documented is that MOSS runs on every employer test by default.

Can I use Google during a HackerRank test?

It depends on the employer's instructions. A search usually means leaving the test tab, which is recorded when tab proctoring is on and triggers a warning in Secure Mode. If the instructions don't say documentation is allowed, assume it isn't, and ask the recruiter before the test.

Key takeaways

  • HackerRank plagiarism detection always runs MOSS code-similarity checks. Employers can add an AI model that scores paste events, tab switches, typing patterns and time taken.
  • MOSS flags matches of 90% or more as High and 80% to 90% as Medium. Shorter solutions under 10 lines need 90% similarity to be flagged.
  • HackerRank reports 85% precision for its AI model, so some flags are wrong, and it tells employers to review flags by hand.
  • Candidates aren't told about plagiarism results. Only the employer sees the flag, the evidence and the code playback.
  • Writing all your code in the HackerRank editor, using one monitor and keeping the camera frame clear avoids most false flags.

Next steps

Read the consent screen on your next HackerRank invitation to see which checks are on, then work through the pre-test checklist above. If you're looking for roles where you'll meet these tests, browse remote tech jobs by where applicants may live, and set up an email alert on the jobs board so new listings that match your location reach you first.

Sources

Share or discuss this article

All posts

How to Pass a Typing Test

Pass a typing test by beating the employer's net WPM with 97%+ accuracy. Most job tests subtract errors, so a clean 45 WPM can…

16 min read

AI Interviewer: What to Expect

An AI interviewer runs a 15 to 30 minute on-demand interview, asks follow-ups and scores your answers for a human recruiter. Format, proctoring and…

16 min read