HEROPS / PRACTICAL V2 / FREE PREVIEW

LOGIN DEFENCE.

Build a defence against repeated failed login attempts.

01 / YOUR MISSION

PROTECT A LOGIN SYSTEM.

Write two JavaScript functions for a fictional authentication system.

Rule A: Block login after 3 or more failed attempts.

Rule B: Reset failed attempts to 0 after a successful login.

All test data is simulated locally. No real accounts or login services are contacted.

LAB 01 / PROGRESS TRACKER

YOUR LAB PROGRESS.

Complete all three stages to finish this free practical preview.

Terminal investigation: 0/3

Coding tests: 0/9

Security reflection: NOT SUBMITTED

02 / INVESTIGATION TERMINAL

INVESTIGATE THE LOGIN ATTEMPTS.

Investigate a fictional authentication system using simulated terminal commands. Start by typing help.

HEROPS CYBERLAB TERMINAL Training environment initialized. Type 'help' to view available commands.
$
02 / CODE WORKSPACE

WRITE YOUR DEFENCE.

03 / TEST RESULTS

YOUR RESULTS.

No tests run yet.
NEED A HINT?

For the first function, compare failedAttempts with 3 using >=.

For the second function, check loginSucceeded before deciding which value to return.

05 / SECURITY REFLECTION

EXPLAIN YOUR DEFENCE.

Why does blocking an account after repeated failed login attempts reduce the risk of brute-force attacks?

Explain what happens when a login succeeds. Write at least 40 characters.

04 / CONTINUE LEARNING

READY FOR MORE?

The full HerOps Practical pathway will include coding challenges, security investigations and defensive exercises.

This preview is local practice only. It does not award XP, unlock paid lessons or issue certificates.

EXPLORE PRACTICAL V2 →