Skip to content

Advanced Linux/Unix System Security ​

FieldValue
Module ID470
DifficultyHard
TierTier I
CategoryDefensive
Estimated Time2 hours
Cubes Earned10
Experience Points1100
Creatorsletsdefendio
Last Updated2026-03-31T09:05:27.000000Z
URLhttps://academy.hackthebox.com/app/module/470

Module Includes ​

  • 8 Sections
  • 5 Interactive Exercises
  • 0 Assessments
  • 10 Cubes

Module Description ​

The "Advanced Linux/Unix System Security" module is designed to empower participants with the advanced knowledge and skills required to effectively detect and defend against cyberattacks in Linux and Unix environments. Through in-depth training, you will learn to secure critical assets, data, and systems from evolving threats, making you a proficient guardian of your digital infrastructure.

Module Summary ​

The Advanced Linux/Unix System Security module is designed for detection engineers specializing in identifying and responding to cyber threats, Cybersecurity experts and enthusiasts seeking advanced knowledge in detecting and mitigating cyber threats, and Advanced Linux/Unix users and network administrators looking to enhance system security. Throughout this module, students will develop advanced Cyber Attack Detection: Develop expertise in recognizing and mitigating sophisticated cyber threats in Linux and Unix systems and robust Security Configuration: Learn to implement advanced security configurations to fortify your digital assets against vulnerabilities.

Recommended prior knowledge:

  • Completion of a foundational Linux/Unix system security module or equivalent knowledge in the field
  • Familiarity with basic cybersecurity concepts, including threat detection and incident response

Sections ​

8 sections - 5 Interactive

#GroupTypeTitle
1NonetheoryLinux Log Infrastructure
2interactiveSyslog and Rsyslog
3interactiveRotation and Management of Log Files
4theorySElinux/Apparmor-1
5interactiveSElinux/Apparmor-2
6interactiveLinux Firewall
7interactiveUncomplicated Firewall (UFW)
8theoryAdvanced Linux/Unix System Security Quiz

Conclusion ​

In this module, we covered advanced Linux and Unix security hardening techniques including centralized log infrastructure, syslog/rsyslog configuration, log rotation management, mandatory access control with SELinux and AppArmor, and host-based firewall management with iptables, firewalld, and UFW.

Module key takeaways:

  • The Linux log infrastructure routes messages through syslog facilities and severity levels; /etc/rsyslog.conf controls where log messages from different sources are written
  • rsyslog supports remote log forwarding over UDP/TCP, enabling centralized logging for SIEM ingestion and tamper-resistant audit trails
  • logrotate manages log file lifecycle (rotation frequency, compression, retention count, post-rotate actions) to prevent disk exhaustion while preserving evidence
  • SELinux operates in three modes — enforcing, permissive, and disabled — with targeted and MLS policy types; setenforce, getenforce, and sestatus manage and query state
  • SELinux contexts (user:role:type:level) on files and processes enforce mandatory access control beyond standard DAC permissions; chcon and restorecon adjust file contexts
  • AppArmor uses profile-based confinement in enforce or complain mode; profiles are managed with aa-enforce, aa-complain, and apparmor_status
  • iptables filters traffic via chains (INPUT/OUTPUT/FORWARD) and tables (filter/nat/mangle); rules are specified with -m, -j, -s, -d, --dport flags
  • firewalld provides zone-based dynamic firewall management; ufw offers a simplified interface for managing netfilter rules suitable for servers and workstations