AP® Cybersecurity Securing Devices Practice Questions
Work through AP Cybersecurity practice questions on Securing Devices, then check each answer against a worked solution.
Free · no sign-up Open questions need no account. Sign up or log in to open the rest.
Subtopic: Detecting Attacks on Devices Clear filter
Question 2
Device Security Analysis
The following sources all come from the same device and are captured in a risk assessment for this device.
Source 1
The device's IP address is 192.168.1.10.
Device Firewall Settings
| Rule Number | Action | Source | Destination | Direction | Port Number | Protocol |
|---|---|---|---|---|---|---|
| 1 | Deny | 172.45.66.184 | 192.168.1.10 | Inbound | 22 | SSH |
| 2 | Allow | ALL | 192.168.1.10 | Inbound | 21 | FTP |
| 3 | Allow | ALL | 192.168.1.10 | Inbound | 80 | HTTP |
| 4 | Allow | ALL | 192.168.1.10 | Inbound | 445 | SMB |
| 5 | Allow | ALL | 192.168.1.10 | Inbound | 443 | HTTPS |
| 6 | Allow | ALL | 192.168.1.10 | Inbound | 22 | SSH |
| 7 | Allow | 172.45.66.184 | 192.168.1.10 | Inbound | 3306 | MySQL |
| 8 | Allow | ALL | 192.168.1.10 | Inbound | 3389 | RDP |
| 9 | Allow | 192.168.1.50 | 192.168.1.10 | Inbound | 5900 | VNC |
| 10 | Deny | ALL | ALL | Inbound | ALL | ALL |
Source 2
sudo tail -n 30 /var/log/app/network_app.log 1 - Nov 10 09:00:11 ubuntu sudo: jprice : TTY=pts/0 ; PWD=/home/jprice ; USER=root ; COMMAND=/usr/bin/less/var/log/syslog 2 - Nov 10 09:00:15 ubuntu sudo: pam_unix(sudo:session): session opened for user root by jprice(uid=1000) 3 - Nov 10 09:00:35 ubuntu apt-get[1345]: Get:1 http://archive.ubuntu.com jammy InRelease [265 kB] 4 - Nov 10 09:00:46 ubuntu apt-get[1345]: Get:2 http://security.ubuntu.com jammy-security InRelease [110 kB] 5 - Nov 10 09:00:55 ubuntu apt-get[1345]: Fetched 375 kB in 19s (19.7 kB/s) 6 - Nov 10 09:01:00 ubuntu apt-get[1345]: Reading package lists... Done 7 - Nov 10 09:01:01 ubuntu sudo: pam_unix(sudo:session): session closed for user root 8 - Nov 10 09:02:14 ubuntu jprice: executed command: 'ufw status verbose' 9 - Nov 10 09:02:14 ubuntu jprice: executed command: 'systemctl status apache2' 10 - Nov 10 09:02:16 ubuntu jprice: executed command: 'tail -n /var/log/auth.log' 11 - Nov 10 09:03:10 ubuntu jprice: executed command: 'systemctl status apache2' 12 - Nov 10 09:03:35 ubuntu systemd[1]: Starting Daily apt download activities... 13 - Nov 10 09:03:36 ubuntu systemd[1]: Finished Daily apt download activities. 14 - Nov 10 09:04:00 ubuntu jprice: executed command: 'ss -tuln' 15 - Nov 10 09:04:01 ubuntu jprice: executed command: 'cat /etc/ufw/user.rules' 16 - Nov 10 09:05:11 ubuntu jprice: executed command: 'journalctl -xe' 17 - Nov 10 09:05:32 ubuntu jprice: executed command: 'df -h' 18 - Nov 10 09:05:50 ubuntu jprice: executed command: 'du -sh /var/log' 19 - Nov 10 09:06:02 ubuntu jprice: executed command: 'top -n 1' 20 - Nov 10 09:06:33 ubuntu jprice: executed command: 'curl -I http://localhost' 21 - Nov 10 09:06:33 ubuntu sudo: pam_unix(sudo:session): session opened for user root by jprice(uid=1000) 22 - Nov 10 09:06:34 ubuntu sudo: pam_unix(sudo:session): session closed for user root 23 - Nov 10 09:07:01 ubuntu CRON[1773]: pam_unix(cron:session): session opened for user root by (uid=0) 24 - Nov 10 09:07:01 ubuntu CRON[1773]: pam_unix(cron:session): session closed for user root 25 - Nov 10 09:07:45 ubuntu jprice: executed command: 'ip addr' 26 - Nov 10 09:07:47 ubuntu jprice: executed command: 'netstat -tulnp' 27 - Nov 10 09:08:10 ubuntu jprice: executed command: 'ufw status verbose' 28 - Nov 10 09:08:11 ubuntu systemd[1]: Reloading firewall rules (ufw.service)... 29 - Nov 10 09:08:11 ubuntu systemd[1]: Reloaded firewall rules (ufw.service). 30 - Nov 10 09:08:20 ubuntu jprice: executed command: 'exit'
Source 3
sudo tail -n 30 /var/log/auth.log 1 - Nov 10 14:11:43 ubuntu sshd[1123]: Server listening on 0.0.0.0 port 22. 2 - Nov 10 14:11:43 ubuntu sshd[1123]: Server listening on :: port 22. 3 - Nov 10 14:21:01 ubuntu vsftpd[2184]: Failed login for invalid user admin from 203.0.113.25 port 21 ftp 4 - Nov 10 14:21:02 ubuntu vsftpd[2186]: Failed login for invalid user root from 203.0.113.25 port 21 ftp 5 - Nov 10 14:21:03 ubuntu vsftpd[2188]: Failed login for invalid user test from 203.0.113.25 port 21 ftp 6 - Nov 10 14:21:04 ubuntu vsftpd[2190]: Failed login for invalid user guest from 203.0.113.25 port 21 ftp 7 - Nov 10 14:21:05 ubuntu vsftpd[2192]: Failed login for invalid user ubuntu from 203.0.113.25 port 21 ftp 8 - Nov 10 14:21:06 ubuntu vsftpd[2194]: Failed login for invalid user deploy from 203.0.113.25 port 21 ftp 9 - Nov 10 14:21:07 ubuntu vsftpd[2196]: Failed login for invalid user support from 203.0.113.25 port 21 ftp 10 - Nov 10 14:21:08 ubuntu vsftpd[2198]: Failed login for invalid user admin1 from 203.0.113.25 port 21 ftp 11 - Nov 10 14:21:09 ubuntu vsftpd[2200]: Failed login for invalid user oracle from 203.0.113.25 port 21 ftp 12 - Nov 10 14:21:10 ubuntu vsftpd[2202]: Failed login for invalid user ftp from 203.0.113.25 port 21 ftp 13 - Nov 10 14:22:14 ubuntu sshd[2234]: Connection closed by authenticating user jprice 192.168.1.50 port 22 [preauth] 14 - Nov 10 14:22:15 ubuntu sshd[2234]: Accepted password for jprice from 192.168.1.50 port 22 ssh2 15 - Nov 10 14:22:15 ubuntu sshd[2234]: pam_unix(sshd:session): session opened for user jprice by (uid=0) 16 - Nov 10 14:25:47 ubuntu sudo: jprice : TTY=pts/0 ; PWD=/home/jprice ; USER=root ; COMMAND=/usr/bin/apt update 17 - Nov 10 14:25:47 ubuntu sudo: pam_unix(sudo:session): session opened for user root by jprice(uid=1000) 18 - Nov 10 14:25:48 ubuntu sudo: pam_unix(sudo:session): session closed for user root 19 - Nov 10 14:28:02 ubuntu sshd[2331]: Connection closed by 203.0.113.25 [preauth] 20 - Nov 10 14:29:01 ubuntu CRON[2345]: pam_unix(cron:session): session opened for user root by (uid=0) 21 - Nov 10 14:29:01 ubuntu CRON[2345]: pam_unix(cron:session): session closed for user root 22 - Nov 10 14:30:17 ubuntu kernel: [UFW BLOCK] IN=eth0 OUT= SRC=203.0.113.25 DST=192.168.1.10 PROTO=TCP PORT=25 SYN 23 - Nov 10 14:30:18 ubuntu sshd[2369]: Failed password for invalid user user from 203.0.113.25 port 22 ssh2 24 - Nov 10 14:30:18 ubuntu sshd[2370]: Received disconnect from 203.0.113.25 port 49151:11: Bye Bye [preauth] 25 - Nov 10 14:30:18 ubuntu kernel: [UFW BLOCK] IN=eth0 OUT= SRC=203.0.113.25 DST=192.168.1.10 PROTO=TCP PORT=77 SYN 26 - Nov 10 14:31:55 ubuntu systemd-logind[99]: New session 7 of user jprice. 27 - Nov 10 14:31:55 ubuntu systemd: Started Session 7 of user jprice. 28 - Nov 10 14:31:55 ubuntu sudo: jprice : TTY=pts/0 ; PWD=/home/jprice ; USER=root ; COMMAND=/usr/bin/journalctl -xe 29 - Nov 10 14:31:55 ubuntu sudo: pam_unix(sudo:session): session opened for user root by jprice(uid=1000) 30 - Nov 10 14:31:56 ubuntu sudo: pam_unix(sudo:session): session closed for user root
Source 4
sudo tail -n 30 /var/log/nginx/access_log 1 - 192.168.1.50 - jprice [10/Nov/2025:09:02:14 -0500] "GET /index.html HTTP/1.1" 200 4212 "-" "Mozilla/5.0 (Ubuntu)" 2 - 192.168.1.50 - jprice [10/Nov/2025:09:02:15 -0500] "GET /assets/css/style.css HTTP/1.1" 200 1024 "-" "Mozilla/5.0 (Ubuntu)" 3 - 192.168.1.50 - jprice [10/Nov/2025:09:02:15 -0500] "GET /assets/js/main.js HTTP/1.1" 200 2876 "-" "Mozilla/5.0 (Ubuntu)" 4 - 192.168.1.50 - jprice [10/Nov/2025:09:02:16 -0500] "GET /images/logo.png HTTP/1.1" 200 2048 "-" "Mozilla/5.0 (Ubuntu)" 5 - 192.168.1.50 - jprice [10/Nov/2025:09:02:17 -0500] "GET /about.html HTTP/1.1" 200 3198 "-" "Mozilla/5.0 (Ubuntu)" 6 - 192.168.1.50 - jprice [10/Nov/2025:09:02:18 -0500] "GET /contact.html HTTP/1.1" 200 2951 "-" "Mozilla/5.0 (Ubuntu)" 7 - 192.168.1.50 - jprice [10/Nov/2025:09:02:20 -0500] "POST /contact_form HTTP/1.1" 200 87 "https://example.local/contact.html" "Mozilla/5.0 (Ubuntu)" 8 - 192.168.1.50 - jprice [10/Nov/2025:09:02:21 -0500] "GET /dashboard HTTP/1.1" 200 4981 "-" "Mozilla/5.0 (Ubuntu)" 9 - 192.168.1.55 - - [10/Nov/2025:09:03:10 -0500] "GET /api/user/profile?id=12 HTTP/1.1" 200 614 "-" "curl/7.81.0" 10 - 192.168.1.55 - - [10/Nov/2025:09:03:11 -0500] "GET /api/data/list HTTP/1.1" 200 1187 "-" "curl/7.81.0" 11 - 192.168.1.55 - - [10/Nov/2025:09:03:12 -0500] "POST /api/user/update HTTP/1.1" 200 152 "-" "curl/7.81.0" 12 - 10.0.0.5 - admin [10/Nov/2025:09:04:01 -0500] "GET /admin/login HTTP/1.1" 200 4329 "-" "Mozilla/5.0 (Windows NT 10.0)" 13 - 10.0.0.5 - admin [10/Nov/2025:09:04:02 -0500] "POST /admin/login HTTP/1.1" 302 112 "https://example.local/admin/login" "Mozilla/5.0 (Windows NT 10.0)" 14 - 10.0.0.5 - admin [10/Nov/2025:09:04:03 -0500] "GET /admin/dashboard HTTP/1.1" 200 6275 "-" "Mozilla/5.0 (Windows NT 10.0)" 15 - 203.0.113.45 - - [10/Nov/2025:09:04:11 -0500] "GET ../../../../etc/passwd HTTP/1.1" 400 234 "-" "curl/7.68.0" 16 - 203.0.113.45 - - [10/Nov/2025:09:04:12 -0500] "GET ../../../etc/shadow HTTP/1.1" 403 312 "-" "curl/7.68.0" 17 - 203.0.113.45 - - [10/Nov/2025:09:04:13 -0500] "GET ../../../var/www/html/config.php.bak HTTP/1.1" 404 198 "-" "curl/7.68.0" 18 - 192.168.1.55 - - [10/Nov/2025:09:04:15 -0500] "GET /api/status HTTP/1.1" 200 94 "-" "curl/7.81.0" 19 - 192.168.1.50 - jprice [10/Nov/2025:09:04:16 -0500] "GET /logout HTTP/1.1" 302 51 "-" "Mozilla/5.0 (Ubuntu)" 20 - 192.168.1.50 - jprice [10/Nov/2025:09:04:17 -0500] "GET /login.html HTTP/1.1" 200 3811 "-" "Mozilla/5.0 (Ubuntu)" 21 - 192.168.1.50 - jprice [10/Nov/2025:09:05:00 -0500] "GET /favicon.ico HTTP/1.1" 200 428 "-" "Mozilla/5.0 (Ubuntu)" 22 - 192.168.1.50 - jprice [10/Nov/2025:09:05:22 -0500] "GET /docs/index.html HTTP/1.1" 200 2491 "-" "Mozilla/5.0 (Ubuntu)" 23 - 192.168.1.55 - - [10/Nov/2025:09:05:23 -0500] "GET /api/docs HTTP/1.1" 200 682 "-" "curl/7.81.0" 24 - 192.168.1.50 - jprice [10/Nov/2025:09:05:25 -0500] "GET /help HTTP/1.1" 200 4122 "-" "Mozilla/5.0 (Ubuntu)" 25 - 192.168.1.55 - - [10/Nov/2025:09:05:26 -0500] "GET /api/user/profile?id=14 HTTP/1.1" 200 637 "-" "curl/7.81.0" 26 - 10.0.0.5 - admin [10/Nov/2025:09:05:27 -0500] "GET /admin/settings HTTP/1.1" 200 5214 "-" "Mozilla/5.0 (Windows NT 10.0)" 27 - 10.0.0.5 - admin [10/Nov/2025:09:05:28 -0500] "POST /admin/update HTTP/1.1" 200 164 "-" "Mozilla/5.0 (Windows NT 10.0)" 28 - 192.168.1.50 - jprice [10/Nov/2025:09:05:29 -0500] "GET /assets/js/analytics.js HTTP/1.1" 200 1193 "-" "Mozilla/5.0 (Ubuntu)" 29 - 192.168.1.50 - jprice [10/Nov/2025:09:05:30 -0500] "GET / HTTP/1.1" 200 4231 "-" "Mozilla/5.0 (Ubuntu)" 30 - 192.168.1.50 - jprice [10/Nov/2025:09:05:31 -0500] "GET /images/banner.jpg HTTP/1.1" 200 3087 "-" "Mozilla/5.0 (Ubuntu)"
Source 5
ls -l /home/jprice/Documents -rw-r--r-- 1 jprice jprice 2143 Nov 08 09:15 report.txt -rw------- 1 jprice jprice 1024 Nov 02 09:01 secrets.key -rwxr-xr-x 1 jprice jprice 8576 Nov 10 11:02 backup.sh -r--r----- 1 jprice admin 3421 Nov 06 11:53 config.cfg -rw-rw-r-- 1 jprice devteam 5012 Nov 10 09:04 notes.md -rwx------ 1 jprice jprice 7744 Nov 10 06:17 deploy_script -rw-r----- 1 jprice admin 2088 Nov 09 09:36 database.ini -rwxrwx--- 1 jprice devteam 9281 Nov 04 01:27 run_tests.sh -rw-r--rw- 1 jprice shared 3999 Nov 01 12:08 public_data.csv
Source 6
Required Activities:
Users must keep the operating system and installed software up to date.
Permitted Activities:
Users may connect peripheral devices such as keyboards, mice, monitors, and printers as needed for daily work.
Prohibited Activities:
Users may not connect external drives, USB storage devices, or other removable media unless explicitly authorized.
Users may not modify system configurations, security settings, or access controls without authorization.
Users may not access social media websites on this device.
Device Security Analysis
Use the given information to respond to parts A, B, C, D, and E. Label any subparts (e.g., i and ii) that may be present.
Part A
Consider the policy for the device in Source 6.
- Explain how one part of the policy helps protect the device.
- Explain how one rule in the current policy could be modified to make the device more secure. Include a specific example in your response.
Part B
In the authorization log, there is evidence of a password attack in rows 3–12.
- Describe the evidence in the log file that indicates a password attack. Include specific entries from the log file in your response.
- Identify the IP address of the adversary.
Part C
Consider all the sources from the device.
- Explain how the permission settings for one file in the
/home/jprice/Documentsdirectory determine the level of access for that file for the owner, group, and all other users on the system. Include the name of the file in your response. - Other than removing all permissions from all users, describe one way the permission settings for one file on the system could be configured to restrict access for some users on the device. Include the name of the file in your response.
- Using the explanation from part C (ii), write one or more chmod commands that set the permissions described.
Part D
Consider all the sources from the device.
- Explain how one connection attempt on the device was blocked by the device's firewall. Include evidence from a log file in your response.
- Other than allowing all traffic for all services, describe a modification to one firewall rule that would allow the connection attempt identified in part D (i).
- Other than allowing the connection attempt identified in part D (i), describe one impact of your modification from part D (ii) on incoming or outgoing network traffic on the device.
Part E
Apart from the password attack identified in part B, there is evidence of another attack on the device. Consider all the sources from the device.
- Determine the type of attack evidenced in a log file.
- Describe specific information in the log file that indicates the attack named in part E (i).
- Describe one way an automated system could halt this type of attack in real time.
- This attack could be mitigated by an automated system, such as a firewall, IDS, IPS, or AI. Identify a different countermeasure that could mitigate, prevent, or deter the attack.
Main Solution
Overview
This 14-point FRQ tests integrated analysis across six evidence sources: a firewall ACL, two system logs, a web access log, a directory listing, and an Acceptable Use Policy. The student must cross-reference these sources to (A) evaluate policy, (B) detect a password attack, (C) analyze Linux file permissions and write chmod commands, (D) explain firewall blocking and propose modifications, and (E) identify a second distinct attack. Each subpart is worth 1 point; total = 14 points.
Part A — Acceptable Use Policy (2 points)
Model Response (College Board)
(i) Not allowing users to connect removable media devices helps protect the device against malware that could be installed on it. Because the organization does not have control over external devices, they cannot guarantee that no malware will automatically be installed when they are plugged into the device.
(ii) The AUP could require the system to check for updates within a certain time frame, such as weekly. If they force the system to check for updates weekly, this will ensure that all patches are installed in a timely fashion.
Why These Answers Earn Points
A(i) — 1 point: The response identifies a specific policy rule (no removable media) and explains the protective mechanism (prevents auto-install of malware from uncontrolled devices). Both elements are required — naming a rule without explaining its protective effect earns 0.
A(ii) — 1 point: The response proposes a modification to an existing rule (tightening the "keep updated" requirement to a weekly schedule) with a specific example. Adding a brand-new rule does not earn the point — the prompt requires modifying an existing rule.
Alternative Acceptable Answers
- (i) "The policy requires users to keep the OS and installed software up to date, which ensures known vulnerabilities are patched and reduces the risk of adversaries exploiting them."
- (ii) "Modify the removable media rule to also block wireless external storage like Bluetooth file transfers, eliminating an additional attack vector."
Part B — Password Attack Detection (2 points)
Model Response (College Board)
(i) There are multiple failed login attempts within seconds of each other all from the same device. Row 3 is the first failed login at 14:21:01, and 9 seconds later there are 10 failed login attempts ending on row 12 at 14:21:10.
(ii) 203.0.113.25
Why These Answers Earn Points
B(i) — 1 point: Identifies the pattern of multiple failed logins from a single source in rapid succession and cites specific log entries (Row 3 at 14:21:01, Row 12 at 14:21:10, 9-second window). Both pattern identification and concrete log evidence are required.
B(ii) — 1 point: Correctly identifies the single attacking IP as 203.0.113.25. Listing additional incorrect IPs, partial IPs (e.g., "113.25"), or a port number earns 0.
What the Evidence Shows
Rows 3–12 of Source 3 (auth.log) show 10 consecutive failed FTP login attempts from IP 203.0.113.25 targeting different usernames (admin, root, test, guest, ubuntu, deploy, support, admin1, oracle, ftp). This is a textbook username enumeration / password spraying attack against port 21 (FTP).
Part C — Linux File Permissions (3 points)
Model Response (College Board)
(i) In the run_tests.sh file, the owner of the file and the group devteam have all permissions (read, write, and execute) for the file because the first and second groupings have rwx, while all other users on the system have no permissions for the file because the last grouping has ---.
(ii) To harden the report.txt file, they could remove the read permission from both the group and all other users for this system.
(iii) chmod g-r report.txt and then chmod o-r report.txt
Why These Answers Earn Points
C(i) — 1 point: Names a specific file (run_tests.sh) and correctly explains all three permission groupings — owner rwx (full), group rwx (full for devteam), others --- (no permissions). The permission interpretation must be accurate for all three classes.
C(ii) — 1 point: Proposes a valid permission tightening on a named file (report.txt). The current permission -rw-r--r-- exposes the file to all users; removing read from group and others restricts it appropriately. The file in C(ii) does not have to be the same file as C(i).
C(iii) — 1 point: Provides syntactically correct chmod commands that produce the permissions described in C(ii). Symbolic mode (g-r, o-r) and octal mode (chmod 600 report.txt) are both acceptable. The command may begin with sudo but is not required to.
Decoding Source 5 (file-by-file)
| File | Permissions | Owner | Group | Others |
|---|---|---|---|---|
| report.txt | -rw-r--r-- | rw- | r-- | r-- |
| secrets.key | -rw------- | rw- | --- | --- |
| backup.sh | -rwxr-xr-x | rwx | r-x | r-x |
| config.cfg | -r--r----- | r-- | r-- | --- |
| notes.md | -rw-rw-r-- | rw- | rw- | r-- |
| deploy_script | -rwx------ | rwx | --- | --- |
| database.ini | -rw-r----- | rw- | r-- | --- |
| run_tests.sh | -rwxrwx--- | rwx | rwx | --- |
| public_data.csv | -rw-r--rw- | rw- | r-- | rw- |
Multiple files are valid choices for C(i) — backup.sh, secrets.key, run_tests.sh, or report.txt are all common picks. The file public_data.csv is a notable security concern (others have write access), making it a strong candidate for C(ii).
Part D — Firewall Blocking Analysis (3 points)
Model Response (College Board)
(i) Since firewall rule 10 denies all traffic to port 25 due to the absence of an allow rule, when the connection attempt from IP 203.0.113.25 occurs on line 22 in the auth log, the attempt to access port 25 is blocked.
(ii) Rule 2 of the firewall could change the port number from 21 to 25.
(iii) Changing the port in rule 2 to 25 from 21 would stop all inbound FTP/port 21 traffic to the device.
Why These Answers Earn Points
D(i) — 1 point: Identifies a specific blocked connection from a log entry (Source 3, line 22: UFW BLOCK to port 25 from 203.0.113.25) and explains the firewall mechanism (Rule 10's catch-all deny matches because no earlier rule allows port 25). Line 25 (UFW BLOCK port 77) is an equally valid alternative.
D(ii) — 1 point: Proposes a specific rule modification that would allow the blocked traffic (changing Rule 2 from port 21 to port 25, or adding/modifying any rule to allow port 25 above Rule 10). Adding "allow all" does NOT earn the point — the prompt forbids it.
D(iii) — 1 point: Describes a side effect of the modification beyond just allowing the originally blocked traffic. Changing Rule 2's port from 21 to 25 stops all FTP traffic — that's the consequence. Simply restating that the original connection is now allowed does not earn the point.
Key Firewall Insight
Source 1's ACL contains no rule for port 25 (SMTP) or port 77, so any inbound traffic on these ports falls through to Rule 10 (Deny ALL). The auth log evidence at lines 22 and 25 confirms exactly this: [UFW BLOCK] ... PORT=25 SYN and [UFW BLOCK] ... PORT=77 SYN.
Part E — Second Attack Identification (4 points)
Model Response (College Board)
(i) Directory traversal attack
(ii) In lines 15–17 of the web application log (source 4), there are attempts of "../..", which is the classic sign of a directory traversal attack. They are attempting to go back in the file structure of the system where the web application is hosted — where they could try to access parts of the system that they should not have access to.
(iii) An automated system could notice the malicious signs of a directory traversal attack and shut down the IP address from accessing the machine. So, in this case, it would stop the IP address of 203.0.113.45 from accessing the device when it recognizes the "../.." in the URL.
(iv) The system could sanitize the user inputs to not allow any "../.." in the URL submitted by the user.
Why These Answers Earn Points
E(i) — 1 point: Correctly names directory traversal. Naming a password attack (already identified in Part B) does not earn the point — the prompt explicitly asks for a different attack. DDoS, ping flood, or ARP poisoning all earn 0.
E(ii) — 1 point: Cites Source 4 lines 15–17 and describes the ../ pattern as the indicator of path traversal. Specific URLs (../../../../etc/passwd, ../../../etc/shadow, ../../../var/www/html/config.php.bak) are visible in those lines.
E(iii) — 1 point: Describes a real-time automated response: detecting the ../ pattern and blocking/blacklisting the source IP (203.0.113.45). Pre-attack changes (patching, training, OS updates) do not earn the point — the prompt requires real-time halting.
E(iv) — 1 point: Identifies a countermeasure that is NOT firewall/IDS/IPS/AI. Input sanitization (rejecting ../ sequences before they reach the filesystem) is the canonical answer. Any other automated detection system is explicitly disqualified by the prompt.
Key Attack Insight
Source 4 lines 15–17 show three consecutive requests from IP 203.0.113.45 (a different attacker IP than Part B's 203.0.113.25 — these are two separate adversaries) attempting to access /etc/passwd, /etc/shadow, and config.php.bak via ../ path traversal. The 400/403/404 response codes show the server blocked or could not find these — but the attack pattern is unmistakable.
Scoring Summary
| Part | Subparts | Points | Focus |
|---|---|---|---|
| A | i, ii | 2 | AUP analysis |
| B | i, ii | 2 | Password attack detection |
| C | i, ii, iii | 3 | Linux permissions + chmod |
| D | i, ii, iii | 3 | Firewall blocking + modification |
| E | i, ii, iii, iv | 4 | Directory traversal + countermeasure |
| Total | 14 |
Skills tested: 2.A, 2.B, 2.C, 2.D, 3.B, 3.D. Learning Objectives: 3.1.A, 3.4.B, 3.4.D, 3.5.A, 3.5.E, 4.1.C, 4.2.D, 4.3.A, 4.3.C, 4.4.A, 4.4.D, 5.1.B, 5.2.D, 5.5.B, 5.6.E.
Teacher Explanation
This FRQ assesses Skills 2.A, 2.B, 2.C, 2.D, 3.B, 3.D and an extensive set of Learning Objectives spanning Units 3, 4, and 5 (3.1.A, 3.4.B, 3.4.D, 3.5.A, 3.5.E, 4.1.C, 4.2.D, 4.3.A, 4.3.C, 4.4.A, 4.4.D, 5.1.B, 5.2.D, 5.5.B, 5.6.E). The cognitive demand is the highest on the exam — students must integrate evidence across six heterogeneous sources, apply multiple frameworks (risk assessment, permission analysis, firewall semantics, attack identification), and write responses calibrated to specific verb cues (Explain, Describe, Identify, Determine, Write).
Point distribution and difficulty by part:
- Part A (2 pts): Lowest difficulty. Students who read Source 6 carefully can earn both points with reasonable explanations. Common loss: identifying a policy rule without explaining its protective mechanism.
- Part B (2 pts): Low-moderate. The password attack pattern in Source 3 rows 3–12 is overt. Students who fail B(i) usually omit specific log citations; students who fail B(ii) confuse the FTP source IP (203.0.113.25) with the directory traversal IP from Part E (203.0.113.45).
- Part C (3 pts): Moderate-high. Requires fluency with Linux symbolic permissions. C(iii) penalizes weak chmod syntax — students who write
chmod -rw---instead ofchmod 600orchmod go-rtypically lose this point. - Part D (3 pts): High. The first-match firewall logic is conceptually demanding, and D(iii) requires identifying a non-obvious side effect (loss of FTP service after porting Rule 2 from 21 to 25). Many students earn D(i) and D(ii) but lose D(iii).
- Part E (4 pts): Highest weight on the question. Each subpart targets a different cognitive operation: identification (i), evidence (ii), automated response (iii), and non-automated countermeasure (iv). E(iv) is the most-missed subpart because students don't read the "other than firewall/IDS/IPS/AI" exclusion and default to one of those.
Most common errors observed in pilot scoring:
- Failure to cite specific evidence. Students write conceptual answers without log line numbers or rule references. Rubric requires specifics.
- Reusing the password attack in Part E. Despite the explicit "apart from" instruction, ~20% of students name the password attack again in E(i), forfeiting all 4 points in Part E.
- Confusing the two attacker IPs. 203.0.113.25 (Part B, FTP brute force) vs 203.0.113.45 (Part E, web directory traversal). Mixing them in B(ii) or E(ii) loses points.
- Weak chmod syntax in C(iii). Students invent non-existent flags or mix octal and symbolic. The rubric is strict on syntax validity.
Teaching recommendations:
- Drill source mapping. Give students 5–6 FRQ-style sources and a list of subpart prompts; have them map source › subpart in under 3 minutes. Builds the navigation skill students need under exam time pressure.
- Build a Linux permission decoding worksheet. Source 5 has 9 files; have students decode each one into owner/group/others permissions, then write the chmod command (both symbolic and octal) that would create or modify each. This single exercise covers C(i)–C(iii) thoroughly.
- Run a firewall trace exercise. Give the ACL from Source 1 and ask students to predict the outcome for 6–8 different traffic profiles (port 25, port 80 from external, port 22 from 172.45.66.184, etc.). This builds the first-match intuition needed for Part D.
- Compare attack signatures side by side. Display password attack logs (Source 3 rows 3–12) and directory traversal logs (Source 4 rows 15–17) on the same slide. Force students to identify the distinguishing patterns. Mixing these two attacks is the most common error in Part E.
- Practice the "other than" trap. Construct prompts with "other than X" exclusions and grade student responses strictly. The exclusion-violation pattern in D(ii), D(iii), and E(iv) is the highest-leverage practice opportunity.
The FRQ rewards methodical, evidence-based reasoning over comprehensive knowledge dumps. A student who knows less but cites correctly will outscore a student who knows more but stays vague.
Education Coach Advice
Strategy for 14-point integrated FRQs:
1. Read all sources before any subpart. The FRQ provides 6 sources but each subpart only requires 1–2 of them. Map sources to subparts before writing: Source 6 › Part A. Source 3 rows 3–12 › Part B. Source 5 › Part C. Source 1 + Source 3 (UFW BLOCK lines) › Part D. Source 4 › Part E.
2. Always cite specific evidence. "Describe" and "Explain" verbs require concrete log entries, line numbers, or rule numbers. "Multiple failed logins" alone is NOT enough — you must reference Row 3 at 14:21:01 and Row 12 at 14:21:10. Vague answers without specific citations lose points consistently.
3. Read the prompt's exclusions carefully. Several subparts contain explicit "other than" clauses: "Other than removing all permissions from all users" (C ii), "Other than allowing all traffic for all services" (D ii), "Other than allowing the connection attempt identified" (D iii), and the firewall/IDS/IPS/AI exclusion in E iv. Violating these earns 0 even if your answer is technically valid.
4. The two attacks have different attacker IPs. Part B's adversary is 203.0.113.25 (password attack from outside via FTP). Part E's adversary is 203.0.113.45 (directory traversal via web). Do NOT conflate them.
5. For Part C, choose a file you can analyze confidently. Source 5 lists 9 files. Pick one with a clear, simple permission pattern (e.g., backup.sh has rwxr-xr-x — easy to explain) rather than an unusual one. Confidence in your analysis matters more than choosing the "most interesting" file.
6. chmod commands work in symbolic OR octal. chmod g-r report.txt and chmod 600 report.txt are both acceptable as long as they produce the permissions you described in C(ii). Don't mix the two notations in one command.
7. For Part E (iv), input sanitization is the safe answer. The prompt explicitly disqualifies firewall, IDS, IPS, and AI. The standard CED countermeasure for directory traversal that is NOT in the disqualified list is input sanitization (stripping ../ from URLs before processing).
Time budget: The exam allots roughly 30–40 minutes for this single FRQ. Spend 5 minutes reading and mapping sources, then 5–7 minutes per part. Don't spend 15 minutes on Part A perfecting your AUP analysis — every point is worth the same.
Watch for these traps:
- Identifying a password attack in Part E. The prompt says "apart from the password attack in Part B." Reusing it earns 0.
- Skipping the file name in C(i) or C(ii). The prompt explicitly requires the file name. Forgetting it earns 0 even if the rest is perfect.
- Vague E(iii) answers. "An IDS would detect it" is too generic. You need to describe the mechanism: pattern detection of
../+ IP block. - Reusing the connection from D(i) in D(iii). D(iii) explicitly asks for a side effect other than the originally blocked connection.
Traps
Trap 1 — Reusing the password attack in Part E. The prompt explicitly states "apart from the password attack identified in part B." Students who miss this clause name the password attack again in E(i), losing all 4 points in Part E (the chain collapses because E(ii)–(iv) all refer back to E(i)). Defense: highlight the word "apart" while reading the prompt; force yourself to look for a second attack in a different source.
Trap 2 — Conflating the two attacker IPs. 203.0.113.25 (Source 3, FTP brute force) and 203.0.113.45 (Source 4, directory traversal) are two distinct adversaries. Students who skim assume one attacker is responsible for everything and put the wrong IP in B(ii) or E(ii). Defense: when you identify an attacker, write the exact IP next to the source line in your scratch notes. Cross-check IPs before submitting each subpart.
Trap 3 — Omitting the file name in Part C. The prompt for C(i) and C(ii) explicitly requires "Include the name of the file in your response." Students who explain permissions correctly but forget to name the file lose 1 point. Defense: read every "Include..." instruction carefully and treat it as a hard requirement.
Trap 4 — Vague D(iii) impact descriptions. D(iii) asks for a side effect of the proposed modification, specifically excluding the originally blocked connection. Students who write "the attacker can now connect" lose the point — that's the connection they just allowed, not a side effect. Defense: ask yourself "what else changes" beyond the intended fix.
Trap 5 — Picking a disqualified countermeasure in E(iv). The prompt explicitly forbids firewall, IDS, IPS, and AI. Students who write "use an IPS" or "install an IDS" lose this 1 point. Defense: input sanitization is the safe canonical answer. Other valid options: secure coding practices, path canonicalization, web application firewall configuration (only if not classified as "firewall" in your understanding — risky), restricting filesystem access for the web server user.
Trap 6 — Listing multiple attack types in E(i). The rubric notes: "Indicate multiple attack types where at least one attack is incorrect › 0 points." A student who hedges with "ARP poisoning or directory traversal" earns 0, even though directory traversal is correct. Defense: commit to one answer.
Trap 7 — chmod syntax errors in C(iii). Students invent flags like chmod -rw------- file or mix octal with symbolic. The rubric only accepts valid Linux syntax. Defense: pick one notation and stick to it. Octal (chmod 600 file) is harder to mess up than symbolic for new students; symbolic (chmod go-r file) is more flexible if you know it.
Trap 8 — Pre-attack countermeasures in E(iii). E(iii) asks how an automated system halts the attack in real time. Suggesting "install updates" or "train users to recognize the attack" earns 0 — those are preventive, not real-time. Defense: real-time = the attack is happening now; the system must detect and stop it as it unfolds. IPS-style blocking is the canonical real-time response.
Question 3
A retail chain's e-commerce platform handles both known threats (frequently seen in industry threat feeds) and novel attacks (with no known signatures). Traffic patterns are largely predictable during standard business operations. The platform has a generous security budget and handles sensitive payment data. Which detection approach is MOST appropriate?
Main Solution
Answer
Hybrid detection covers both threat categories: signatures efficiently catch known attacks, anomaly detection catches novel ones. The predictable baseline supports anomaly detection without excessive false positives, and the sensitive payment data with generous budget justifies the higher cost.
Answer: Correct: C
Answer images
Question 4
AP® and Advanced Placement® are registered trademarks of the College Board, which is not affiliated with, and does not endorse, Verityprep. Names are used for identification purposes only.

