Lesson plan: Foundations: Web Applications, Databases, and Files

AP Cybersecurity · Unit 5 Securing Applications and Data · Topic Foundations (background for 5.1 to 5.6) · Practice set

At a glance

Suggested time
1 class period (45 min)
Pacing
The unit's first set, before Injection Attacks. The CED gives Unit 5 thirty class periods, split across Topics 5.1 to 5.6 as 5, 7, 4, 5, 2, and 7. This Foundations background sits outside the CED's content periods, and this plan suggests 1 extra day for it. The CED takes for granted how a web application, its server, and its files fit together (5.1.B.9: the files that run web applications are stored in directories on servers). EK 5.1.B.3 and 5.1.B.7 define SQL and a buffer in one line each, and this set fills them out. No EK in Unit 5 names a replica or a backup, so that half of the set and the GitLab story are background for availability in 5.1.C.1 (data destroyed or encrypted so that others cannot access it).
Before this set
None in this unit. From Foundations: Requests, Servers, and Domain Names in Introduction to Security (Unit 1): a browser sends a request to a server, and the server sends a page back. The mini-lesson explains web application, input, database, table, query, path, buffer, replica, and backup as it goes.
Skills
1.A Identify, with and without the support of AI, vulnerabilities, threats, and attack methods, and explain how they generate risk.
2.A Identify security controls, and explain how they mitigate risks.

The one idea: A web application copies what a visitor sends into a query, reads the row the database answers with, and builds the page from it, while its files and its memory hold the rest. A replica copies every change, mistakes included, so only a backup saved before a mistake can undo it, and only one that worked.

Day by day

Day 1 · One request, and the copies of its data45 min

Differentiation

If students are struggling
Project the lesson's request figure with the names covered (browser, web server, the site's program, database) and have students fill them in before Problem 2 🔒 and Problem 5 🔒. For Problem 8 🔒 and Problem 10 🔒, draw a timeline on the board and have students mark each copy's time and the mistake on it before answering.
Extension
Students write a copies table for the club site in the style of Problem 10 🔒, with one hidden flaw (a backup that has been failing, or a copy kept on the same server), and a partner works out which copy would lose the least.
Vocabulary support
web application, input, web server software, database, table, row, column, query, Structured Query Language (SQL), file, path, memory, buffer, replica, backup, offline, tape library.