Securing endpoints and servers
SecurityX CAS-005 · Lesson 14 of 24 · 1:52:48
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the CompTIA SecurityX (CAS-005) exam. In this lesson: application control and endpoint privilege management, anti-malware, HIDS and HIPS, EDR, and logging, SELinux, host firewalls, browser isolation, configuration management, and MDM, and attacker techniques like credential dumping and lateral movement. Includes three original practice questions, with Thornbury Biotech, a fictional biotech company whose security architect designs and runs its security, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
One workstation, three servers
At Thornbury Biotech, a lab workstation ran a program nobody had approved, and within an hour the attacker had reached three servers. The endpoint agent saw it, but the alert waited in a queue, and the attacker had already cleared some logs. The review asks a simple question: which controls on endpoints and servers would have stopped each step?
Controlling what runs
Application control decides which programs may run at all: an allow list allows only approved software, while a block list stops known bad software and lets everything else through. Allow lists identify software by publisher signature, file hash, or path, and path rules are weak wherever users can write files. Start in audit mode, which only logs what would be blocked, then enforce once the list is complete, and cover scripts and installers, not only programs. Endpoint privilege management removes local administrator rights from everyday accounts, and elevates only specific approved applications, on request or by rule. Without admin rights, malware has a much harder time installing services, changing security settings, or stealing other users' credentials.
Detecting on the host
Anti-malware compares files with signatures of known threats and adds heuristics and behavior checks, but signatures need constant refreshing and miss new variants. A host-based intrusion detection system, or HIDS, watches logs, files, and settings and alerts on suspicious changes, like file integrity monitoring on critical binaries, while a host-based intrusion prevention system, or HIPS, can also block the action. Endpoint detection and response, or EDR, continuously collects process, file, network, and registry activity, detects malicious behavior, and lets responders isolate the host, stop a process, or quarantine a file remotely. Event logging must capture the right events, like process creation with command lines, sign-ins, and script activity, and forward them to a central system such as a SIEM, with synchronized clocks. Logs that stay only on the host can be erased by an attacker, so central collection, and alerts on stopped agents or cleared logs, matter as much as the detections themselves.
Isolating and enforcing
SELinux adds mandatory access control to Linux: every process and file carries a label, called a security context, and the policy decides which labels may interact, even for processes running as root. It runs in enforcing mode, which blocks and logs, or in permissive mode, which only logs and is meant for testing, and disabling it removes that protection entirely. When SELinux blocks a service, check the denial in the audit log: a file with the wrong label, often after a move, is fixed by restoring its default context, and a suggested policy rule must be reviewed before use. A host-based firewall filters traffic on each machine, keeps working off the corporate network, and can block connections between workstations, which attackers use to spread. Browser isolation runs web content away from the device, often in a remote container that sends only a safe rendering, so malicious code on a page never reaches the endpoint.
Configuration, MDM, and attack surface
Configuration management starts from a secure baseline, like a CIS Benchmark or a hardened golden image, and applies it the same way to every server and endpoint. Drift happens when settings change outside that process, so tools compare each system with its baseline, report the differences, and put the approved settings back automatically. Mobile device management, or MDM, enrolls phones, tablets, and laptops, enforces passcodes, encryption, and patch levels, and reports compliance to conditional access. On personal devices, it can manage only a work container or the work apps, and a selective wipe removes company data while leaving personal data alone. Attack surface reduction removes what is not needed, like unused services, open ports, old software, and risky behaviors like office documents starting scripts, and attack surface monitoring keeps looking, from inside and from the internet, for anything newly exposed.
Attacker techniques: getting in and up
MITRE ATT&CK describes attacker tactics, techniques, and procedures, or TTPs, and helps map each technique to the controls and detections that answer it. Injection puts attacker input or code where it runs with someone else's trust: SQL or command injection on servers, and process injection on endpoints, where malicious code hides inside a legitimate process. The answers are input validation and parameterized queries on servers, and on endpoints, protected processes and EDR rules that flag one process writing into another's memory. Privilege escalation turns a foothold into admin or root rights, through unpatched kernel or driver flaws, services that run with high rights from writable paths, or misconfigured sudo rules and scheduled tasks. Credential dumping pulls passwords, hashes, or tickets from memory, like the LSASS process on Windows, or from files like the shadow file on Linux, and protections like LSA protection and Credential Guard keep those secrets out of reach.
Attacker techniques: running, moving, hiding
Unauthorized execution runs code the organization never approved, often through built-in tools like PowerShell or script hosts, a practice called living off the land, because those tools are trusted and already installed. Application control that covers scripts, and alerts on unusual process chains, like a document starting a command shell, are the answers. Lateral movement reuses stolen credentials or tickets to reach other hosts, through remote desktop, file shares, or remote management tools, with techniques known as pass the hash and pass the ticket. Host firewalls that block connections between workstations, a unique local admin password on every machine, and distinct admin accounts for each tier all cut those paths. Defensive evasion, which MITRE ATT&CK now splits into stealth and defense impairment, hides the attack by stopping security agents, clearing logs, or disguising files, so turn on tamper protection, forward logs off the host, and alert whenever an agent goes silent.
Recap
Let's recap. Application control allows only approved software, starting in audit mode, and endpoint privilege management removes everyday admin rights. Anti-malware, HIDS, HIPS, and EDR detect on the host, and central logging keeps the evidence out of an attacker's reach. SELinux enforces labels with mandatory access control, host firewalls filter each machine, and browser isolation keeps web code off the device. Baselines and drift checks hold configurations, MDM manages mobile devices, and attack surface work removes and watches what is exposed. And injection, privilege escalation, credential dumping, unauthorized execution, lateral movement, and defensive evasion each have controls that answer them.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Thornbury wants to stop programs that users copy from USB drives or shared folders from running on lab workstations, while approved software keeps working. Which control fits best?
- A host firewall that denies inbound traffic
- A HIDS with file integrity monitoring
- Browser isolation for all web traffic
- Application control with an allow list
Show the answer
Application control with an allow list
An allow list lets only approved software run, so anything else is blocked, wherever it came from. “A host firewall that denies inbound traffic” only filters network connections, not which programs run. “A HIDS with file integrity monitoring” would detect changes and alert, but it would not stop the program. And “Browser isolation for all web traffic” only protects web browsing, not USB drives or shares.
After Thornbury’s admins moved a web application’s files to a new folder, the Linux server returns permission errors, and the audit log shows SELinux denials. What is the best fix?
- Disable SELinux on the server
- Restore the files’ default SELinux labels
- Keep SELinux in permissive mode for good
- Grant the web service account full control of the folder
Show the answer
Restore the files’ default SELinux labels
Moved files keep their old label, so restoring the default context fixes the denials and keeps the protection. “Disable SELinux on the server” would remove mandatory access control from the whole server. “Keep SELinux in permissive mode for good” only logs denials without blocking anything, and it is meant for testing. And “Grant the web service account full control of the folder” would not help, because SELinux checks labels on top of normal permissions.
Thornbury’s EDR shows a process on an engineer’s laptop reading the memory of LSASS, and minutes later, the same account signs in to several file servers with its password hash. Which sequence of techniques does this show?
- Defensive evasion, then injection into a process
- Privilege escalation through a service
- Credential dumping, then lateral movement
- Unauthorized execution of a macro
Show the answer
Credential dumping, then lateral movement
Reading LSASS memory is credential dumping, and reusing the hash on other servers is lateral movement. “Defensive evasion, then injection into a process” would show agents stopped or logs cleared, and nothing here hides the activity. “Privilege escalation through a service” is about gaining higher rights on one host, which the scenario does not describe. And “Unauthorized execution of a macro” is about a document running code, which the logs do not mention.