Lesson plan: Unit 5 Performance Task
AP Cybersecurity · Unit 5 Securing Applications and Data · Topic 5.1 to 5.6 Securing Applications and Data (applied) · Performance task
At a glance
- Suggested time
- 2 class periods (45 min)
- Pacing
- In the course this set is listed after the topic sets and before the Unit 5 Test. It sits outside the CED's 30 content periods for Unit 5 (5.1: 5, 5.2: 7, 5.3: 4, 5.4: 5, 5.5: 2, 5.6: 7), so these 2 days come on top of them. Run it in that place, so the debrief doubles as review for the test. It draws on 5.1, 5.2, and 5.6: the attack shapes from Injection Attacks and Memory and Path Attacks, impact from Data Vulnerabilities and Risk, the models from Access Control Models, the modes from File Permissions, and the log reading from Reading Application Logs. Nothing in it uses the cryptography of 5.3 and 5.4.
- Before this set
- The topic sets named above, and the Foundations lesson Web Applications, Databases, and Files for how a portal, its served directory, and its data files fit together. Source B's Bytes column and its 302 on the contact form POST are not explained in the task, so check that students know what each records before they start.
- Skills
- 1.A Identify, with and without the support of AI, vulnerabilities, threats, and attack methods, and explain how they generate risk.1.B Determine ways adversaries exploit vulnerabilities to compromise an asset.1.C Evaluate, with and without the support of AI, the likelihood and impact of risks.2.A Identify security controls, and explain how they mitigate risks.2.B Determine layered security controls that address vulnerabilities.2.D Implement and log mitigations with and without the support of AI.3.D Detect and classify cyberattacks by analyzing digital evidence with and without the support of AI.
The one idea: Every claim in the written answer points at a line the sources print. Each subpart earns one point, and a subpart that asks for an entry or a file name earns nothing without it: the right attack named without the lines that show it earns the naming point and nothing else.
Day by day
Day 1 · Read the sources, answer the ten questions45 min
- Before classProblem 11 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- Open (5 min)the mini-lesson: read it together. It sets the order: read the sources, answer the ten questions, then write. Stop on its last section: one point per subpart, and a subpart marked Explain needs the reason.
- Read the sources (10 min)the mini-lesson: students read the situation and Sources A to D once in full. Ask only orientation questions: which directory the portal serves its public pages from (/var/www/portal/public), which directory Source A lists (/var/www/portal/data), and what the note above Source D says (the register records the access approved; Source A shows the access the server enforces). Do not point at any line yet.
- On their own (20 min)All ten questions, with notes kept as the first lesson's tip asks: Problem 4 🔒 Problem 5 🔒 the attack and the lines that show it · Problem 6 🔒 the impact of one request · Problem 1 🔒 Problem 2 🔒 Problem 3 🔒 reading a mode and setting one · Problem 7 🔒 Problem 9 🔒 Problem 10 🔒 the model in force, the account approved beyond its duties, a model that stops it · Problem 8 🔒 which source carries which kind of claim. Students keep their notes for Day 2.
- Start writing (10 min)Problem 11 🔒: students open the written question and start with part A or B. Its answer saves as a draft while they type, so the work carries over to Day 2. Tell them not to submit today: it takes one submission.
Day 2 · The written question45 min
- Write (45 min)Problem 11 🔒: parts A to E, 14 subparts at one point each. With Day 1's ten minutes that is about 55 minutes, close to the 50 the exam suggests for its free-response question. Its screen repeats the sources numbered 1 to 4 in the task sheet's order (Source A is 1, B is 2, C is 3, D is 4); say so before students start, since their notes say A to D. Students label every subpart and submit once. Answer questions about wording only.
- After classProblem 11 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- Debrief, next classProblem 5 🔒 Problem 1 🔒 Problem 3 🔒 Problem 7 🔒 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
Differentiation
- If students are struggling
- On Day 1, have them underline every Source B request that carries a parameter and mark the three sets of three on each Source A line before the questions. On Day 2, hand out a frame with the fourteen labels, A (i) to E (iii), and one sentence starter ("The entry at ___ shows ___ because ___."), and let them answer the subparts they are sure of first.
- Extension
- 🔒 Teacher notes: sign in as a teacher to see this🔒 Teacher notes: open the full plan to see this
- Vocabulary support
- subject and object, owner and group, regulated data, access register, status code, numeric method. Hold the names of the attack and the access control models for the debrief.
From the course framework
LO 5.1.A Explain how adversaries can exploit application and file vulnerabilities to cause loss, damage, disruption, or destruction.
- 5.1.A.3 When access control settings are weakly configured, many users often have permission to view and sometimes even edit files on a system. Adversaries can take advantage of weak access control settings to steal or destroy files or disrupt an application.
LO 5.1.B Explain how application attacks exploit vulnerabilities.
- 5.1.B.10 In a directory traversal attack, adversaries modify URLs and GET requests to attempt to access sensitive data (e.g., usernames and passwords) on a server's file system.
LO 5.1.C Assess and document risks from application and data vulnerabilities.
- 5.1.C.1 Data security risks can involve a compromise of confidentiality when unauthorized persons can access sensitive data, integrity when data can be manipulated or altered from its intended state, and availability when data can be destroyed or encrypted to prevent others from accessing it.
- 5.1.C.2 High risks from data vulnerabilities often involve highly sensitive data (e.g., data that is governed by laws or regulations) that could be compromised through a highly likely exploit.
LO 5.2.C Determine an appropriate access control model to protect applications and data.
- 5.2.C.2 Role-based access control (RBAC) assigns every subject to a role and defines which roles have which types of access to which objects.
- 5.2.C.3 Rule-based access control (RuBAC) checks a set of rules to determine what type of access a subject should have for a specific object and then allows or denies types of access based on the rules. This access control model is typically layered on top of another access control model.
- 5.2.C.4 Discretionary access control (DAC) gives individual subjects the ability to set the type of access that other subjects have on objects they own. In DAC models some subjects are designated as administrators or super users, and they have the ability to override the access controls established by other subjects.
- 5.2.C.5 Mandatory access control (MAC) follows strict rules for which types of access each subject level has for objects that are above their level, at their level, or below their level. Subject and object levels are assigned by an external administrator.
- 5.2.C.7 The principle of least privilege is the idea that entities should be given exactly as much access as they need to perform their function and no more.
LO 5.2.D Configure access control settings on a Linux-based system.
- 5.2.D.2 There are three types of access to a file in Linux that can be set, and they always come in the following order:
- i. Read access allows a user to view the contents of a file.
- ii. Write access allows a user to make changes to a file.
- iii. Execute access allows a user to run a binary file such as a program.
These are abbreviated
rwx, respectively. If a user only has read and execute permissions (not write), then it would display asr-x. The-symbol indicates the absence of that permission. - 5.2.D.3 There are three default entities for which permissions are set and always in this order: (1) the file owner, (2) the file group, and (3) all other users. The three sets are displayed with no spaces (e.g.,
rwxrwxrwx). - 5.2.D.6 To use
chmodin the numeric method the syntax ischmod ### filename.Each of the three###represents one of the three entities mentioned above (the owner, the group, other nongroup users). - The first#= the owner - The second#= the group - The third#= other nongroup users The permission for each entity is determined by adding up the values for the types of access to be granted: -0= no permissions -1= execute -2= write -4= read Therefore3sets permission to write and execute,5sets permission to read and execute,6sets permission to read and write, and7sets permission to read, write, and execute. - 5.2.D.7 To use
chmodin the symbolic method the syntax ischmod entity +(or -) permission filename.The entities are the user owner, the group, and other nongroup users. Each entity is represented with a single letter.u= user owner,g= group,o= others,a= all. Permission can be either added or removed to any combination of entities.+= add the permission,-= remove the permission. The permissions that can be set areread, write,andexecute.r= read,w= write,x= execute. Entities and permissions can be combined in a single command. To add the read and execute permissions for the group and user owner for a file calledtestfile,the command would bechmod ug+rx testfile.
LO 5.6.E Apply detection techniques to identify and report indicators of application attacks by analyzing log files.
- 5.6.E.1 SQL injection attacks can be detected by reviewing application and server logs of user input for SQL control words and symbols such as:
- A single or double quote character:
",'- Boolean conditions likeOR 1=1- A double dash (which indicates a comment in SQL):--- SQL control words (always in capital letters) likeWHERE, IN, FROM - 5.6.E.2 XSS attacks can be detected by reviewing user input for suspicious tags, particularly the
<script>...</script>tag. - 5.6.E.3 For web applications, buffer overflows can be detected by checking the amount of data the user is sending to the web application in their request. The fields commonly checked are the URL length, cookie length, query string length, and total request length. Long strings in any of these fields can be an indicator of an attempted buffer overflow attack.
- 5.6.E.4 Directory traversal attacks can be detected by reviewing application and server logs.
HTTP GETrequests that include paths with sequences of../are indicators of an adversary attempting a directory traversal.