Curated

Security

0 votes

Questions120

  1. Question 51

    Security

    An administrator protects an SSH private key with a passphrase and connects to many servers each day. Typing the passphrase for every connection is slowing the work, and the key must stay protected on disk. What should the administrator do?

    Show the answer

    Correct answerA. Start ssh-agent and load the private key into it with ssh-add

    ssh-agent holds the decrypted private key in memory after one ssh-add, so later connections need no passphrase while the file stays encrypted. Loading the public key is wrong because the agent stores private keys to sign challenges.

    Open this question
  2. Question 52

    Security

    An administrator wants to enable the sshd jail and lengthen the ban time on a server running fail2ban. The settings must survive package upgrades. Where should the changes be made?

    Show the answer

    Correct answerB. In an override file at /etc/fail2ban/jail.local

    jail.local overrides jail.conf and is not replaced during upgrades. Editing jail.conf directly risks losing changes when the package updates it, and fail2ban.conf holds daemon settings, not per-jail ban times.

    Open this question
  3. Question 53

    Security

    A Linux server is administered remotely over telnet on TCP port 23. An audit finding states that administrator credentials cross the network in cleartext. Which action BEST resolves the finding?

    Show the answer

    Correct answerC. Enable sshd from OpenSSH and disable the telnet service

    SSH encrypts authentication and the session, so it replaces telnet's cleartext traffic. Changing the port or restricting source addresses still sends credentials unencrypted, so the finding remains.

    Open this question
  4. Question 54

    Security

    Staff upload files to a Linux server using vsftpd with their local accounts. A packet capture shows usernames and passwords in cleartext. Users must keep logging in with the same accounts. Which change BEST removes the exposure?

    Show the answer

    Correct answerC. Disable vsftpd and have users transfer files with SFTP through sshd

    SFTP runs inside the encrypted SSH channel and uses the existing local accounts. TFTP is also unencrypted and has no user authentication, so it is weaker than FTP. Active mode only changes how data connections are made.

    Open this question
  5. Question 55

    Security

    A security audit finds telnet, FTP, and TFTP services running on a Linux server. Which four actions remove the exposure and provide a secure way to keep needed functionality? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Remove the telnet-server, vsftpd, and tftp-server packages that are no longer neededB. Stop and disable the telnet and TFTP socket units with systemctl disable --nowC. Block TCP ports 21 and 23 and UDP port 69 at the host firewallD. Provide file transfer through SFTP using the existing sshd service

    AWhy this is right: Removing packages that are no longer needed eliminates the services and their attack surface.

    BWhy this is right: Disable --now stops the socket units and keeps them from starting at boot.

    CWhy this is right: Blocking FTP, telnet and TFTP ports at the host firewall closes the exposure if a service returns.

    DWhy this is right: SFTP runs over the existing SSH service, so file transfer stays available and encrypted.

    EWhy not this: A different port is obscurity only; telnet still sends credentials in cleartext.

    FWhy not this: Restricting who can connect still leaves telnet sending credentials and sessions in cleartext.

    Disabling the units, removing the packages, blocking the ports, and using SFTP over SSH eliminate the cleartext services and keep file transfer available. Moving telnetd to another port is obscurity only, and limiting it to a subnet still leaves credentials sent unencrypted.

    Open this question
  6. Question 56

    Security

    A security auditor asks an administrator to confirm that the modprobe configuration for freevxfs will block the module, without actually loading it. Which command shows the action modprobe would take?

    Show the answer

    Correct answerC. modprobe -n -v freevxfs

    modprobe -n -v is a verbose dry run that prints the command it would execute, such as the install override, without loading the module. lsmod only lists modules already loaded, so empty output proves nothing about the configuration.

    Open this question
  7. Question 57

    Security

    A hardening baseline requires that the cramfs filesystem module can never be loaded. An administrator adds the line "blacklist cramfs" to /etc/modprobe.d/cramfs.conf. A later test with "modprobe cramfs" still loads the module. Which line should be added to the file so the module cannot be loaded even when requested explicitly?

    Show the answer

    Correct answerB. install cramfs /bin/false

    An install directive replaces the module load with a command that fails, so an explicit modprobe cannot load it. A blacklist entry only stops automatic loading by alias matching. The remove directive runs on unload, so it does not block loading.

    Open this question
  8. Question 58

    Security

    An administrator adds "install udf /bin/false" to a file in /etc/modprobe.d/. Running lsmod shows that udf is already loaded with a use count of 0. Which command removes the module from the running kernel without a reboot?

    Show the answer

    Correct answerB. modprobe -r udf

    modprobe -r (or rmmod) unloads an idle module from the running kernel. Modprobe configuration only affects future loads. Regenerating the initramfs with dracut changes the boot image but does not unload anything already in memory.

    Open this question
  9. Question 59

    Security

    A security auditor asks a Linux administrator to list every regular file on the system that has the SUID bit set, regardless of its other permission bits. Which command produces this list?

    Show the answer

    Correct answerC. find / -type f -perm -4000

    The -perm -4000 form matches any file with the SUID bit set, whatever its other bits, so it finds typical modes such as 4755. The exact form 4000 matches only files whose mode is exactly 4000, so it misses nearly every real SUID binary.

    Open this question
  10. Question 60

    Security

    A hardening scan of a server lists these root-owned SUID files: /usr/bin/passwd, /usr/bin/sudo, /usr/bin/su and /usr/bin/find. The server does not need any of them to run with extra privilege except for normal user logins and privilege escalation. Which SUID bit should the administrator remove first?

    Show the answer

    Correct answerC. /usr/bin/find

    A SUID find can run arbitrary commands as root through -exec, so it gives any user a root shell and has no legitimate need for SUID. The passwd, sudo and su binaries need SUID by design for password changes and privilege escalation.

    Open this question
  11. Question 61

    Security

    An audit shows that /usr/local/bin/report-tool has mode -rwsr-xr-x and is owned by root. The tool does not need elevated privileges. The administrator must remove the SUID bit while keeping all other permissions unchanged. Which command does this?

    Show the answer

    Correct answerD. chmod u-s /usr/local/bin/report-tool

    The u-s symbolic mode clears the set-user-ID bit and leaves the rest of the mode intact. The g-s mode clears only the SGID bit, so the file would still run as root.

    Open this question
  12. Question 62

    Security

    A security engineer is documenting how UEFI Secure Boot protects the boot process on a Linux workstation. Which description is accurate?

    Show the answer

    Correct answerD. The firmware verifies the digital signature of each boot loader against keys stored in its signature databases before running it

    Secure Boot has the UEFI firmware check boot software signatures against trusted keys in its db (and reject those in dbx) before execution. Disk encryption, such as LUKS, is a separate control that protects data at rest and does not verify boot code.

    Open this question
  13. Question 63

    Security

    A systems administrator enables UEFI Secure Boot on a Linux server that uses a distribution-signed shim and GRUB. After installing a third-party kernel module built locally, the module fails to load and the kernel logs a message about a required key not being available. Which statement BEST explains why the module was rejected?

    Show the answer

    Correct answerA. The module is not signed with a key trusted by the kernel, and Secure Boot enforcement restricts loading of unsigned modules

    With Secure Boot, the kernel typically enforces lockdown and loads only modules signed with a key it trusts, such as one enrolled in the MOK list. A version mismatch gives a different error (invalid module format), so it is not the cause of a missing-key message.

    Open this question
  14. Question 64

    Security

    Company policy requires user jsmith to change their password at least every 90 days and to be warned 7 days before it expires. Which command applies this policy to the account?

    Show the answer

    Correct answerC. chage -M 90 -W 7 jsmith

    chage -M sets the maximum number of days a password is valid, and -W sets the warning period before expiry. The -m option is tempting but sets the minimum days between changes, which would stop jsmith from changing the password for 90 days.

    Open this question
  15. Question 65

    Security

    A security audit of a RHEL server finds that users can set 8-character passwords. The administrator must require at least 14 characters for all local accounts that change passwords with passwd. Which change enforces this?

    Show the answer

    Correct answerC. Set minlen = 14 in /etc/security/pwquality.conf

    The pam_pwquality module reads minlen from /etc/security/pwquality.conf and enforces the minimum length when passwords are changed. PASS_MIN_LEN in /etc/login.defs looks plausible but is obsolete and ignored on modern systems that use PAM for password quality.

    Open this question
  16. Question 66

    Security

    Auditors notice that users on a RHEL server cycle between two passwords whenever a change is forced. The administrator must prevent users from reusing any of their last 12 passwords. Which action accomplishes this?

    Show the answer

    Correct answerC. Add pam_pwhistory with remember=12 to the PAM password stack

    pam_pwhistory with remember=12 keeps old password hashes in /etc/security/opasswd and rejects reuse of the last 12. pwquality.conf checks strength, not history, so it has no remember option; maxrepeat only limits consecutive identical characters.

    Open this question
  17. Question 67

    Security

    An administrator is hardening access to a Linux bastion host and wants logins to require two different authentication factors. Which configuration meets this requirement?

    Show the answer

    Correct answerB. A password plus a time-based one-time code from a phone app

    A password is something you know, and a TOTP code from a phone app proves possession of the enrolled device, so two distinct factor types are used. A security question is also knowledge, so pairing it with a password is still a single factor.

    Open this question
  18. Question 68

    Security

    A data center requires administrators to insert a smart card into a reader and type its PIN before they can log in to a Linux console. Which authentication factors does this login use?

    Show the answer

    Correct answerD. Possession and knowledge

    The smart card is something the user has (possession), and the PIN is something the user knows (knowledge), so this is true two-factor authentication. Inherence refers to biometrics such as fingerprints, which are not used here.

    Open this question
  19. Question 69

    Security

    A Linux server's SSH daemon is already configured with PAM and a TOTP module. The administrator wants every SSH login to require both a valid public key and a one-time code. Which sshd_config directive enforces both?

    Show the answer

    Correct answerC. AuthenticationMethods publickey,keyboard-interactive

    A comma in AuthenticationMethods means the methods must succeed in sequence, so both the key and the PAM-driven code are required. A space separates alternative sets, so the space-separated option lets a user pass with either method alone.

    Open this question
  20. Question 70

    Security

    During a quarterly audit, an administrator compares the password hashes of local users against a breached-password list. The password for the account jlopez matches an entry on the list. Which action BEST addresses the exposure right away?

    Show the answer

    Correct answerC. Run chage -d 0 jlopez so a new password must be set at next login

    chage -d 0 sets the last-change date to epoch, which forces jlopez to choose a new password at next login. Editing PASS_MAX_DAYS in /etc/login.defs only affects accounts created afterward and does not expire existing passwords; pwck only verifies file integrity.

    Open this question
  21. Question 71

    Security

    A Linux administrator is writing a script that checks candidate passwords against the Have I Been Pwned Pwned Passwords range API. Security policy forbids sending the password, or anything that identifies it, to a third party. Which value should the script send to the API?

    Show the answer

    Correct answerA. The first five characters of the password's SHA-1 hash

    The range API uses k-anonymity: the script sends only the first five hex characters of the SHA-1 hash, receives matching hash suffixes, and compares them locally. A full hash can be looked up or cracked offline, and any plaintext sent, even partial, discloses the password.

    Open this question
  22. Question 72

    Security

    An organization is adding breached-password screening to its Linux account hardening policy. Which TWO practices apply breach lists correctly? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Reject a new password at set or change time if it appears on a breached-password listC. Re-screen stored credentials periodically against updated lists as new breaches are published

    Screening at set or change time blocks known-compromised passwords, and re-screening against updated lists catches passwords exposed in later breaches. Complexity rules do not prevent breached passwords, since complex strings can still appear in breaches, and one-time screening misses new breaches.

    Open this question
  23. Question 73

    Security

    An administrator sets the login shell of the account appsvc to /sbin/nologin. What is the effect?

    Show the answer

    Correct answerD. Interactive logins fail, but the account can own files and run processes

    AWhy not this: Only the shell changes; the password is not locked and running processes keep running.

    BWhy not this: nologin is the login shell for every interactive login, so console logins are refused as well as SSH.

    CWhy not this: The account stays in /etc/passwd; only its shell field changes to /sbin/nologin.

    DWhy this is right: Nologin ends any interactive login, but the account still exists to own files and run services.

    /sbin/nologin as the login shell ends any interactive login attempt with a message, but the account still exists, so it can own files and run services or jobs. The tempting view that this deletes or disables the account itself is wrong, because only the shell is replaced.

    Open this question
  24. Question 74

    Security

    An administrator creates a contractor account with useradd -m -s /bin/rbash contractor. The contractor logs in and runs several commands with default settings. Which command is rejected by the shell?

    Show the answer

    Correct answerB. cd /var/log

    A restricted bash shell does not allow the cd builtin, so the user cannot change directories. Running ls on an absolute path is tempting, but only command names containing a slash are blocked, not slash-containing arguments, so ls still works.

    Open this question
  25. Question 75

    Security

    A reporting service runs a cron job as the local account svc_report. The account must keep owning its files and running the job, but any interactive login attempt must be refused with a message that the account is not available. Which command meets this requirement?

    Show the answer

    Correct answerB. usermod -s /sbin/nologin svc_report

    Assigning /sbin/nologin as the login shell refuses interactive sessions and prints the not-available message, while the account stays usable for jobs. rbash is tempting, but it still gives the user a working, though restricted, interactive shell.

    Open this question
  26. Question 76

    Security

    A security policy for a Linux server that uses the pam_tally2 module requires an account to be locked after five consecutive failed logins. The account must unlock automatically after 15 minutes. Which line in the PAM authentication stack meets this requirement?

    Show the answer

    Correct answerD. auth required pam_tally2.so deny=5 unlock_time=900

    The deny option sets the failure threshold, and unlock_time is measured in seconds, so 15 minutes is 900. Using unlock_time=15 would unlock the account after only 15 seconds, and root_unlock_time applies only to root with even_deny_root.

    Open this question
  27. Question 77

    Security

    A server uses pam_tally2 to lock accounts after repeated failed logins. The user jsmith is locked out after mistyping a password several times and needs access restored immediately, without waiting for unlock_time to expire. Which command clears the failed-login counter for this user?

    Show the answer

    Correct answerB. pam_tally2 --user jsmith --reset

    pam_tally2 --user jsmith --reset sets the failure count back to zero so the lockout ends. usermod -U only removes a password lock from the shadow entry and does not touch the tally. faillock is the tool for pam_faillock, not pam_tally2.

    Open this question
  28. Question 78

    Security

    A company runs a custom web application as a systemd service on a Linux server. The unit file currently contains User=root, although the application only binds to port 443 and reads files under /srv/app. Which change BEST reduces risk under least privilege?

    Show the answer

    Correct answerC. Create a dedicated unprivileged service account, run the service as it, and grant only the CAP_NET_BIND_SERVICE capability for the port binding

    A dedicated unprivileged account with only the capability needed to bind port 443 limits what a compromised process can do. Changing file permissions or the port while still running as root leaves the process with full root privileges.

    Open this question
  29. Question 79

    Security

    A junior administrator needs to restart the nginx service and view its logs on a production Linux server. The administrator currently logs in directly as root over SSH. Which change BEST applies least privilege while still allowing these tasks?

    Show the answer

    Correct answerB. Create a personal account and add a sudoers rule that permits only systemctl restart nginx and reading the nginx logs

    A named account with a narrowly scoped sudoers rule grants only the needed commands and logs each use. Full wheel membership allows any command as root, which exceeds the need and defeats least privilege.

    Open this question
  30. Question 80

    Security

    An administrator is encrypting a new, empty partition, /dev/sdb1, with LUKS2 and will format and use it manually from the command line. Which four actions are part of this process? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Mount /dev/mapper/secure_data on a directoryD. Run cryptsetup luksFormat --type luks2 /dev/sdb1E. Run mkfs.ext4 on /dev/mapper/secure_dataF. Run cryptsetup open /dev/sdb1 secure_data

    The LUKS2 header is created with luksFormat, the volume is unlocked with open to create a mapper device, the filesystem is created on that mapper device, and it is then mounted. Running mkfs on the raw partition would overwrite the LUKS header and destroy the encryption setup.

    Open this question
  31. Question 81

    Security

    An administrator has imported a colleague's public key into her keyring and must send a file named report.csv so that only the colleague can read it. No passphrase is to be shared between them. Which command meets this requirement?

    Show the answer

    Correct answerA. gpg --encrypt --recipient colleague@example.com report.csv

    Encrypting with --encrypt and --recipient uses the colleague's public key, so only their private key can decrypt the file and no shared passphrase is needed. Symmetric mode is tempting, but it relies on a passphrase that both parties must know, which the scenario rules out.

    Open this question
  32. Question 82

    Security

    A compliance audit requires that an attacker who steals a laptop's drive cannot cheaply brute-force the LUKS passphrase using GPUs. The administrator is creating a new volume with cryptsetup. Which configuration BEST meets this requirement?

    Show the answer

    Correct answerB. LUKS2 with the argon2id PBKDF, which requires a large amount of memory for every guess

    Argon2id, the LUKS2 default PBKDF, is memory-hard, so each guess needs substantial RAM and GPU parallelism becomes expensive. PBKDF2 is the tempting alternative, but it is mainly CPU-bound and uses little memory, so GPUs attack it efficiently.

    Open this question
  33. Question 83

    Security

    An administrator hardens the TLS settings of a Linux web server. Which set of protocol versions follows current IETF guidance?

    Show the answer

    Correct answerD. TLS 1.2 and TLS 1.3 only

    AWhy not this: RFC 8996 deprecated TLS 1.1 along with TLS 1.0, so it should not be offered.

    BWhy not this: RFC 8996 deprecated TLS 1.0, so it should be disabled even when TLS 1.1 is off.

    CWhy not this: SSL 3.0 was deprecated by RFC 7568, and TLS 1.0 and 1.1 by RFC 8996, so only TLS 1.2 and 1.3 remain.

    DWhy this is right: RFC 8996 deprecated TLS 1.0 and 1.1, leaving TLS 1.2 and TLS 1.3 as the versions to allow.

    The IETF deprecated TLS 1.0 and 1.1 in RFC 8996, and current hardening guidance limits servers to TLS 1.2 and TLS 1.3. Allowing the older versions only for legacy client compatibility leaves known protocol weaknesses exposed.

    Open this question
  34. Question 84

    Security

    A Linux administrator needs to confirm from the command line that a web server at app.example.com accepts TLS 1.3 connections on port 443. Which command performs this test?

    Show the answer

    Correct answerC. openssl s_client -connect app.example.com:443 -tls1_3

    The s_client subcommand acts as a TLS client, and -tls1_3 restricts it to TLS 1.3, so a successful handshake confirms support. The s_server subcommand is tempting but it listens for connections (using -accept) rather than connecting out to a remote host.

    Open this question
  35. Question 85

    Security

    Two Linux hosts in different data centers must exchange all traffic, regardless of application, over an encrypted tunnel. The team wants a kernel-integrated solution that uses public-key pairs, runs over UDP and needs minimal configuration. Which tool BEST meets this requirement?

    Show the answer

    Correct answerD. WireGuard

    WireGuard creates a network-layer VPN interface in the kernel, authenticates peers with public keys and carries all traffic over UDP. Stunnel is tempting but it wraps individual TCP services in TLS rather than tunneling every application's traffic. OpenSSL and LibreSSL are cryptographic libraries and toolkits, not VPNs.

    Open this question
  36. Question 86

    Security

    An administrator downloads ubuntu.iso and a SHA256SUMS file from the vendor. The file lists hashes for several ISO images, but only ubuntu.iso is present on the local system. Which command verifies the download without errors about the missing files?

    Show the answer

    Correct answerA. sha256sum -c --ignore-missing SHA256SUMS

    The -c option reads the listed hashes and compares them with the local files, and --ignore-missing skips entries for files that are not present. Running sha256sum on the ISO alone, even with --tag, only prints a digest and never compares it with the published value.

    Open this question
  37. Question 87

    Security

    A script validates values produced by sha256sum before storing them in a database. Which check identifies a well-formed SHA-256 digest in the command's output?

    Show the answer

    Correct answerA. A string of exactly 64 hexadecimal characters

    SHA-256 produces a 256-bit digest, which sha256sum prints as 64 hexadecimal characters. Forty characters matches SHA-1, which sha1sum outputs, and 128 characters matches SHA-512 from sha512sum.

    Open this question
  38. Question 88

    Security

    Two Linux services share a secret key. The receiving service must confirm that each webhook payload was not altered in transit and was produced by the holder of the key. Which approach meets this requirement?

    Show the answer

    Correct answerD. Compute HMAC-SHA256 over the payload with the shared key and compare it to the received tag

    HMAC-SHA256 mixes the secret key into the hash in a keyed construction, so only a key holder can produce a valid tag. A plain SHA-256 digest needs no key, so an attacker can alter the payload and recompute it. Simple key-plus-message hashing is not a proper HMAC.

    Open this question
  39. Question 89

    Security

    A compliance audit of /etc/shadow on a Linux server finds password hashes that begin with four different prefixes. Which prefix indicates a weak hashing algorithm that should be replaced?

    Show the answer

    Correct answerB. $1$ (MD5)

    The $1$ prefix marks MD5-based crypt, which is fast to brute-force and cryptographically broken, so it should be replaced. The $5$ prefix is SHA-256 crypt; it is older than yescrypt but is not considered broken.

    Open this question
  40. Question 90

    Security

    A vulnerability scan of an OpenSSH server lists the symmetric ciphers it offers to clients. Which cipher should be flagged as weak and removed from the Ciphers directive in sshd_config?

    Show the answer

    Correct answerB. 3des-cbc

    3des-cbc uses a 64-bit block size and is vulnerable to birthday attacks such as Sweet32, so it should be disabled. aes128-ctr has a shorter key than AES-256 but is still considered secure.

    Open this question
  41. Question 91

    Security

    An administrator on a RHEL 9 server receives a private root CA certificate in PEM format from the security team. Internal HTTPS services signed by this CA must be trusted by curl and other system tools that use the system trust store. Which procedure BEST accomplishes this?

    Show the answer

    Correct answerC. Copy the certificate to /etc/pki/ca-trust/source/anchors/ and run update-ca-trust

    On RHEL-family systems, custom root CAs go in /etc/pki/ca-trust/source/anchors/, and update-ca-trust rebuilds the consolidated system trust bundle. The /etc/ssl/private/ path with update-ca-certificates is the Debian/Ubuntu tooling and is not the RHEL procedure; private directories hold keys, not trust anchors.

    Open this question
  42. Question 92

    Security

    A Debian administrator copies internal-root-ca.pem into /usr/local/share/ca-certificates/ and runs update-ca-certificates. The command reports that 0 certificates were added, and HTTPS connections to internal services still fail validation. What is the MOST likely cause?

    Show the answer

    Correct answerD. The file lacks the .crt extension that update-ca-certificates requires

    update-ca-certificates only processes files ending in .crt in /usr/local/share/ca-certificates/, so a .pem file is ignored; renaming it to .crt fixes it. The tool expects PEM-encoded content, not DER, and no reboot is needed because the bundle is rebuilt immediately.

    Open this question
  43. Question 93

    Security

    A company runs several Linux servers that call each other's HTTPS APIs. To avoid buying certificates, each server uses its own self-signed certificate, and client scripts run curl with the -k option. A security reviewer objects. What is the primary risk of this setup?

    Show the answer

    Correct answerC. The curl client cannot verify the identity of the server it connects to, so a spoofed server could receive credentials and data

    Using -k disables certificate verification, and a self-signed certificate has no trusted CA vouching for identity, so the client cannot detect an impostor. The connection is still encrypted; -k skips validation rather than downgrading to HTTP.

    Open this question
  44. Question 94

    Security

    A Linux administrator deploys an internal web portal on Nginx using a self-signed certificate. Employees are told to click through the browser warning and continue. Which risk does this practice create?

    Show the answer

    Correct answerD. Users become accustomed to ignoring certificate warnings, so they may also accept a forged certificate presented by an attacker in a man-in-the-middle attack

    Training users to bypass warnings removes the protection that certificate validation offers, so an attacker's substituted certificate looks the same as the legitimate one. A self-signed certificate still encrypts traffic and works with modern TLS, so the plaintext claim is wrong.

    Open this question
  45. Question 95

    Security

    While investigating high outbound traffic, an administrator runs ls -l /proc/2217/exe for a process named sshd. The output shows the link target as /tmp/.cache/sshd (deleted). How should this finding be interpreted?

    Show the answer

    Correct answerA. A likely malicious process masquerading as sshd, run from a temp directory and deleted from disk

    A process whose binary lives in a hidden /tmp path and has been deleted from disk is a strong IOC for malware evading file scans. A legitimate upgrade would show /usr/sbin/sshd (deleted), not a temporary directory path.

    Open this question
  46. Question 96

    Security

    During a routine review of a production server, an administrator checks for signs that an attacker has established persistence. Which finding is the strongest indicator of persistence?

    Show the answer

    Correct answerD. A cron.d entry that runs a hidden script from /tmp every five minutes to fetch and execute a remote file

    A scheduled job that repeatedly downloads and executes code from a temporary directory is a classic persistence mechanism. The other jobs are package-provided or documented maintenance tasks, which are expected and carry no sign of malicious intent.

    Open this question
  47. Question 97

    Security

    A Linux web server begins behaving oddly. The administrator reviews the system and finds several anomalies. Which findings are indicators of compromise? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. An extra account with UID 0 in /etc/passwd that no administrator createdC. An rpm -Va report showing a changed size and digest for /usr/bin/ss with no matching package updateD. A web server process holding an outbound connection to an unfamiliar external address on a high port

    AWhy not this: logrotate compressing old logs on schedule is routine maintenance.

    BWhy this is right: An unknown account with UID 0 has root privileges and is a classic sign of compromise.

    CWhy this is right: A system binary that fails package verification with no update may have been replaced.

    DWhy this is right: An unexpected outbound connection from a web process can be command and control traffic.

    EWhy not this: Scheduled updates from the configured repository are routine and expected.

    FWhy not this: An expected administrator login by key from a known address is normal activity.

    A rogue UID 0 account, unexpected outbound traffic from a web process (possible command and control), and a system binary that fails package verification are all signs of compromise. Scheduled log rotation, automatic updates from the configured repository and an expected administrator login are routine activity, not IOCs.

    Open this question
  48. Question 98

    Security

    A company's patch policy requires Critical findings to be fixed within 72 hours, High within 14 days, Medium within 30 days, and Low at the next maintenance window. A scan reports a CVE on a Linux file server with a CVSS v3.1 base score of 8.1. What remediation deadline applies?

    Show the answer

    Correct answerD. Within 14 days

    CVSS v3.1 rates 7.0–8.9 as High, so the 14-day deadline applies. The 72-hour deadline is tempting because 8.1 is close to the top of the scale, but Critical begins at 9.0.

    Open this question
  49. Question 99

    Security

    A security analyst must identify the software versions behind the open TCP ports on a remote server at 10.0.0.5 so they can be compared against published CVEs. Which command BEST accomplishes this from the analyst's workstation?

    Show the answer

    Correct answerC. nmap -sV 10.0.0.5

    nmap -sV probes open ports and reports service names and versions, which can be matched to CVEs. The -sn option only performs host discovery and does not scan ports, and tcpdump passively captures packets without identifying versions.

    Open this question
  50. Question 100

    Security

    A legacy application is suspected of sending user credentials in cleartext between a client and a Linux server. Which action BEST confirms this?

    Show the answer

    Correct answerB. Capture the traffic with tcpdump and inspect the packet payloads

    A protocol analyzer such as tcpdump or Wireshark shows the actual packet contents, so cleartext credentials are directly visible. A port scan or banner grab shows what is listening and its version but not what data crosses the wire.

    Open this question