Fiveable
🔒AP Cybersecurity
​

🔒AP Cybersecurity

Device Security Analysis
​
Unit 4: Securing Devices
FRQ Types & Units

Each FRQ type tests specific skills taught in particular units. Here's why certain units appear for each question type:

This mapping reflects College Board's exam structure - each FRQ type tests specific skills that are taught in particular units.

Practice FRQ 1 of 161/16

1. The following sources all come from the same device (hostname: mx01.local, IP address 10.10.5.50) and were captured during a routine risk assessment. Use them to answer parts A through E.

Source 1 — Device Firewall Settings

Rule Number

Action

Source

Destination

Direction

Port Number

Protocol

1

Allow

ALL

10.10.5.50

Inbound

25

SMTP

2

Allow

ALL

10.10.5.50

Inbound

993

IMAPS

3

Allow

10.10.5.0/24

10.10.5.50

Inbound

22

SSH

4

Allow

10.10.5.50

ALL

Outbound

53

DNS

5

Allow

10.10.5.50

ALL

Outbound

80

HTTP

6

Allow

10.10.5.50

ALL

Outbound

443

HTTPS

7

Allow

10.10.5.50

ALL

Outbound

25

SMTP

8

Deny

ALL

ALL

Inbound

ALL

ALL

Source 2 — /home/sysadmin/.bash_history

</>TEXT
sudo tail -n 10 /home/sysadmin/.bash_history
1  sudo systemctl status postfix
2  sudo systemctl restart postfix
3  cd /etc/postfix
4  ls -la
5  nano main.cf
6  postmap /etc/postfix/virtual
7  systemctl reload postfix
8  ping -c 4 8.8.8.8
9  apt update
10 apt upgrade -y

Source 3 — /var/log/auth.log

</>TEXT
sudo tail -n 15 /var/log/auth.log
1  Oct 14 08:12:01 mx01 CRON[4121]: pam_unix(cron:session): session opened for user root
2  Oct 14 08:12:01 mx01 CRON[4121]: pam_unix(cron:session): session closed for user root
3  Oct 14 08:15:22 mx01 vsftpd[5102]: Failed login for invalid user admin from 198.51.100.73 port 21 ftp
4  Oct 14 08:15:23 mx01 vsftpd[5104]: Failed login for invalid user root from 198.51.100.73 port 21 ftp
5  Oct 14 08:15:24 mx01 vsftpd[5106]: Failed login for invalid user administrator from 198.51.100.73 port 21 ftp
6  Oct 14 08:15:24 mx01 vsftpd[5108]: Failed login for invalid user user from 198.51.100.73 port 21 ftp
7  Oct 14 08:15:25 mx01 vsftpd[5110]: Failed login for invalid user test from 198.51.100.73 port 21 ftp
8  Oct 14 08:15:26 mx01 vsftpd[5112]: Failed login for invalid user guest from 198.51.100.73 port 21 ftp
9  Oct 14 08:15:27 mx01 vsftpd[5114]: Failed login for invalid user info from 198.51.100.73 port 21 ftp
10 Oct 14 08:15:28 mx01 vsftpd[5116]: Failed login for invalid user webmaster from 198.51.100.73 port 21 ftp
11 Oct 14 08:15:28 mx01 vsftpd[5118]: Failed login for invalid user mail from 198.51.100.73 port 21 ftp
12 Oct 14 08:15:29 mx01 vsftpd[5120]: Failed login for invalid user postmaster from 198.51.100.73 port 21 ftp
13 Oct 14 08:18:40 mx01 kernel: [12456.789] [UFW BLOCK] IN=eth0 OUT= MAC=00:1a:2b:3c:4d:5e SRC=192.0.2.15 DST=10.10.5.50 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=12345 DF PROTO=TCP SPT=54321 DPT=110 WINDOW=65535 RES=0x00 SYN URGP=0
14 Oct 14 08:20:05 mx01 sshd[5201]: Accepted publickey for sysadmin from 10.10.5.15 port 49152 ssh2
15 Oct 14 08:20:05 mx01 sshd[5201]: pam_unix(sshd:session): session opened for user sysadmin

Source 4 — /var/log/syslog

</>TEXT
sudo grep "UFW BLOCK" /var/log/syslog | tail -n 9
1  Oct 14 09:01:10 mx01 kernel: [15001.102] [UFW BLOCK] IN=eth0 OUT= MAC=... SRC=203.0.113.42 DST=10.10.5.50 LEN=60 TOS=0x00 PREC=0x00 TTL=52 ID=4111 DF PROTO=TCP SPT=38192 DPT=21 WINDOW=1024 RES=0x00 SYN URGP=0
2  Oct 14 09:01:10 mx01 kernel: [15001.105] [UFW BLOCK] IN=eth0 OUT= MAC=... SRC=203.0.113.42 DST=10.10.5.50 LEN=60 TOS=0x00 PREC=0x00 TTL=52 ID=4112 DF PROTO=TCP SPT=38192 DPT=22 WINDOW=1024 RES=0x00 SYN URGP=0
3  Oct 14 09:01:10 mx01 kernel: [15001.108] [UFW BLOCK] IN=eth0 OUT= MAC=... SRC=203.0.113.42 DST=10.10.5.50 LEN=60 TOS=0x00 PREC=0x00 TTL=52 ID=4113 DF PROTO=TCP SPT=38192 DPT=23 WINDOW=1024 RES=0x00 SYN URGP=0
4  Oct 14 09:01:11 mx01 kernel: [15001.115] [UFW BLOCK] IN=eth0 OUT= MAC=... SRC=203.0.113.42 DST=10.10.5.50 LEN=60 TOS=0x00 PREC=0x00 TTL=52 ID=4114 DF PROTO=TCP SPT=38192 DPT=80 WINDOW=1024 RES=0x00 SYN URGP=0
5  Oct 14 09:01:11 mx01 kernel: [15001.120] [UFW BLOCK] IN=eth0 OUT= MAC=... SRC=203.0.113.42 DST=10.10.5.50 LEN=60 TOS=0x00 PREC=0x00 TTL=52 ID=4115 DF PROTO=TCP SPT=38192 DPT=110 WINDOW=1024 RES=0x00 SYN URGP=0
6  Oct 14 09:01:11 mx01 kernel: [15001.125] [UFW BLOCK] IN=eth0 OUT= MAC=... SRC=203.0.113.42 DST=10.10.5.50 LEN=60 TOS=0x00 PREC=0x00 TTL=52 ID=4116 DF PROTO=TCP SPT=38192 DPT=143 WINDOW=1024 RES=0x00 SYN URGP=0
7  Oct 14 09:01:12 mx01 kernel: [15001.130] [UFW BLOCK] IN=eth0 OUT= MAC=... SRC=203.0.113.42 DST=10.10.5.50 LEN=60 TOS=0x00 PREC=0x00 TTL=52 ID=4117 DF PROTO=TCP SPT=38192 DPT=443 WINDOW=1024 RES=0x00 SYN URGP=0
8  Oct 14 09:01:12 mx01 kernel: [15001.135] [UFW BLOCK] IN=eth0 OUT= MAC=... SRC=203.0.113.42 DST=10.10.5.50 LEN=60 TOS=0x00 PREC=0x00 TTL=52 ID=4118 DF PROTO=TCP SPT=38192 DPT=3306 WINDOW=1024 RES=0x00 SYN URGP=0
9  Oct 14 09:01:12 mx01 kernel: [15001.140] [UFW BLOCK] IN=eth0 OUT= MAC=... SRC=203.0.113.42 DST=10.10.5.50 LEN=60 TOS=0x00 PREC=0x00 TTL=52 ID=4119 DF PROTO=TCP SPT=38192 DPT=3389 WINDOW=1024 RES=0x00 SYN URGP=0

Source 5 — ls -l /etc/postfix

</>TEXT
ls -l /etc/postfix
-rw-r--r-- 1 root root       1450 Oct 10 09:15 aliases
-rw-r--r-- 1 root root      12288 Oct 10 09:16 aliases.db
-rw-r--r-- 1 root root      28456 Oct 12 14:30 main.cf
-rw-r--r-- 1 root root       6120 Oct 10 09:15 master.cf
-rw-rw-r-- 1 root mailadmin   256 Oct 13 11:05 sasl_passwd
-rw-r--r-- 1 root root      12288 Oct 13 11:06 sasl_passwd.db
-rw-r--r-- 1 root root        340 Oct 10 09:15 virtual

Source 6 — Acceptable Use Policy

  • Keep operating systems and mail server software updated with the latest security patches.

  • Use strong, unique passwords for all administrative and service accounts.

  • Remote SSH access from authorized administrative subnets (10.10.5.0/24).

  • Approved monitoring and logging agents.

  • Storing unencrypted credentials in world-readable files.

  • Disabling host-based firewalls or modifying rules without change approval.

  • Installing unauthorized software or running unnecessary services (e.g., FTP, Telnet).


A.

Consider the policy for the device in Source 6.

i.

Explain how one part of the policy helps protect the device.

ii.

Explain how one rule in the current policy could be modified to make the device more secure. Include a specific example in your response.

B.

In the authorization log (Source 3), there is evidence of a password attack in rows 3–12.

i.

Describe the evidence in the log file that indicates a password attack. Include specific entries from the log file in your response.

ii.

Identify the IP address of the adversary.

C.

Consider the file listing for the device in Source 5.

i.

Explain how the permission settings for the sasl_passwd file determine the level of access for that file for the owner, group, and all other users on the system.

ii.

Other than removing all permissions from all users, describe one way the permission settings for the sasl_passwd file could be configured to restrict access for some users on the device.

iii.

Using the explanation from part C (ii), write one or more chmod commands that set the permissions described.

D.

Consider the firewall settings and logs from the device.

i.

Explain how one connection attempt on the device was blocked by the device’s firewall. Include evidence from a log file in your response.

ii.

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).

iii.

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.

E.

Apart from the password attack identified in part B, there is evidence of another attack on the device in Source 4.

i.

Determine the type of attack evidenced in the log file.

ii.

Describe specific information in the log file that indicates the attack named in part E (i).

iii.

Describe one way an automated system could halt this type of attack in real time.

iv.

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.

Timed

00:00

Response auto-saves






Pep

essential ap study content awaits..

Features
Testimonials
Testimonials
start studying →
FRQ Directions
Free Response Question Practice

This practice environment simulates the AP AP Cybersecurity Free Response Questions section. Here are some guidelines:

  • Read each question carefullybefore responding. Pay attention to command verbs like "identify," "explain," "analyze," or "evaluate."
  • Use the timer to practice time management. You can pause, restart, or hide the timer as needed.
  • Mark for Review if you want to come back to a question later.
  • Your responses are saved automatically as you type. You can also use the drawing tool for questions that require diagrams or graphs.
  • Use the toolbar for formatting options like bold, italic, subscript, and superscript.
  • Navigate between questions using the Previous and Next buttons at the bottom of the screen.

Tip: Answer all parts of each question. Partial credit is often available, so even if you are unsure, provide what you know.