learntodriveai.dev/Cybersecurity/Assessing a Small Business Booking Site for SQL Injection
CybersecurityProject 016 unitsVerified on 16 October 2026

Assessing a Small Business Booking Site for SQL Injection

Jean-Marc RasoanaivoOwner and Manager · Eco-lodge · Nosy Be, Madagascar
Email · from Jean-Marc
I have no idea if our website is secure. A freelance developer in Antananarivo built it for us using PHP and a database.
Chat with Jean-Marc

What you hand back

  • A scoped, authorized assessment plan
  • Confirmed SQL injection findings with evidence
  • The attack traced in the Grafana logs
  • A tested fix using a prepared statement
  • A hardened server, verified by re-scan
  • A plain-language report for the owner

6 units

  1. Unit 1: The Brief and the Lab

    Set up the project folder and governance file, then start the booking page lab and the log dashboard.

    Open unit 1
  2. Unit 2: Reconnaissance

    Gather passive findings, then run an Nmap service scan within the scope document and interpret what it shows.

    Open unit 2
  3. Unit 3: Exploitation

    Run sqlmap against the booking search parameter, separate confirmed results from possible ones, and extract the guest data it exposes.

    Open unit 3
  4. Unit 4: The Other Side

    Find the same attack in the Grafana logs, read it against normal traffic, and read the Sigma rule.

    Open unit 4
  5. Unit 5: Fix and Harden

    Fix the injection, re-test with sqlmap to catch the weak escape-based fix, then apply a prepared statement.

    Open unit 5
  6. Unit 6: The Report

    Fill in the report template in plain language, check the risk ratings, and record each hardening change with its verification.

    Open unit 6
Read the full brief

You're assessing the booking system for an eco-lodge on Nosy Be, Madagascar — testing it for SQL injection, detecting the attack in the logs, fixing what you find, and delivering a report the owner can understand.

The discipline skills: running a structured security engagement from both sides — scanning with Nmap, exploiting with sqlmap, reading the same attack in Grafana's log view, writing a remediation that actually holds up when you re-test, and producing a report that maps findings to ATT&CK and OWASP.

The AI-direction lesson: this is your first time directing AI through a security workflow. AI will generate remediation code, scan interpretations, and report language that look correct — and some of it won't be. It will report uncertain sqlmap results as confirmed findings. It will suggest a fix using mysqli_real_escape_string instead of a prepared statement, and that fix will pass a casual glance but fail the re-test. It will recommend scanning targets outside your scope document. The skill is not running the tools. The skill is catching what AI got wrong before it becomes a finding you stand behind.

Your Role

You're doing a security assessment of Jean-Marc's booking site — testing from the attacker's side, then switching to the defender's view to see what the same attack looks like in the logs. By the end, Jean-Marc gets a report explaining what you found and what to fix.

Everything is provided. Scope document, attack methodology, detection templates, remediation guidance, report template. Your job is to direct Claude through each phase and verify the results.

What's New

This is the first project, so everything is new ground.

You'll direct an AI agent through a real security assessment workflow — scanning, exploiting, detecting, fixing. The interesting part is the perspective shift. The same SQL injection looks completely different depending on whether you're the attacker running sqlmap or the defender reading access logs in Grafana. That dual view is the core of what makes this work.

The hard part isn't running the tools. It's catching when Claude gets something wrong. Claude will suggest fixes that look correct but don't hold up when you re-test. It will report uncertain results as confirmed findings. It will suggest scanning things that aren't in scope. Your verification is what makes the difference between output that was produced and output that was checked.

Tools

  • Docker — runs the target application (DVWA) and the monitoring stack (Grafana, Loki, Alloy)
  • Nmap — network scanning and port/service discovery
  • sqlmap — SQL injection testing
  • Grafana — viewing logs and alerts from the defender's side
  • Claude Code — AI agent directing all tool execution
  • Git/GitHub — version control and project submission

Materials

You'll receive a complete set of project materials:

  • Scope document defining what you're authorized to assess
  • TTP selection document and step-by-step attack methodology
  • Sigma rule template for detection engineering
  • Remediation guidance document
  • Hardening checklist
  • Report template for Jean-Marc
  • DVWA Docker environment (the target application)
  • Grafana/Loki/Alloy monitoring stack (the defender's view)
  • Project governance file
Materials · 12 files
Start Project 1

You work at a computer with a terminal. Signed in, your place is saved.