LUCENT GRID
SQL Lab ยท Database Security Audit (Hard)
Initialising...
๐Ÿ–ฅ๏ธ
SQL Terminal
๐Ÿ“š
Reference
๐Ÿ“Œ OBJECTIVES โ€” NO HINTS
โ—‹Audit all user privileges (SHOW GRANTS)
โ—‹Revoke excessive privileges
โ—‹Enable binary log + audit plugin
โ—‹Encrypt sensitive columns (AES_ENCRYPT)
โ—‹Parameterise vulnerable stored procedure
โ—‹Create row-level access policy
โ—‹Pass all 7 audit checks
0 / 7 complete
SQL TERMINAL โ€” DATABASE SECURITY AUDIT (HARD)
MySQL 8.0 โ€” Lab environment loaded Database Security Audit (Hard) โ€” Hard tier ยท No syntax hints provided โš  This lab tests independent problem-solving. Reference window available. โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
mysql>
COMMAND REFERENCE
AVAILABLE COMMANDS
  • SELECT user, host, Select_priv, Super_priv FROM mysql.user;
  • SHOW GRANTS FOR 'app_user'@'%';
  • REVOKE ALL PRIVILEGES ON *.* FROM 'app_user'@'%';
  • GRANT SELECT, INSERT ON health_db.appointments TO 'app_user'@'%';
  • SET GLOBAL general_log = ON;
  • UPDATE patients SET nhs_number = AES_ENCRYPT(nhs_number, UNHEX(SHA2('key',256)));
  • ALTER PROCEDURE get_patient COMMENT 'PARAMETERISED';
Type keywords from the command list. The terminal will recognise your intent even if the exact syntax differs.
โ˜ฐ BRIEF
๐Ÿ–ฅ Terminal
๐Ÿ“š Reference
MISSION BRIEF

MISSION BRIEFING

DB SECURITY AUDIT โ€” MERIDIAN HEALTH NHS ยท HARD โญโญโญ

SCENARIO

A penetration test found that Meridian Health's patient database has critical security misconfigurations: users have excessive privileges, audit logging is disabled, sensitive columns are unencrypted, and there are SQL injection vulnerable stored procedures. You are the DBA brought in to remediate every finding.

OBJECTIVES

  • Audit all user privileges (SHOW GRANTS)
  • Revoke excessive privileges
  • Enable binary log + audit plugin
  • Encrypt sensitive columns (AES_ENCRYPT)
  • Parameterise vulnerable stored procedure
  • Create row-level access policy
  • Pass all 7 audit checks

HARD MODE RULES

No step-by-step guidance. Use the Reference window for command syntax only. You must determine the approach, the correct columns and order, and verify your own results.

Display Mode
LAB COMPLETE
๐Ÿ†
MISSION ACCOMPLISHED
Database Security Audit (Hard)
โšก
+175 XP
EXPERIENCE EARNED
โฌ† LEVEL UP โ€” Level
โ†’ Return to Labs