Ubuntu Security ยท 4.3
๐ฆ Package Management (apt)
Install, remove, and update software safelyโฑ ~2 min
Ubuntu uses apt (Advanced Package Tool) to manage software. apt downloads software from trusted repositories and handles dependencies automatically. In competition, you'll remove unauthorized software and install security tools.
Core apt Commands
bash
# Update the local package list (always run this first)sudo apt update # Upgrade all installed packages to latest versionsudo apt upgrade # Install a packagesudo apt install package-name # Remove a package (keeps config files)sudo apt remove package-name # Remove package AND its config filessudo apt purge package-name # Remove unnecessary dependenciessudo apt autoremove # Search for a packageapt search keyword # List installed packagesdpkg --listdpkg --list | grep nmap # check if nmap is installedCompetition โ Packages to Remove
- โขnmap / zenmap โ network scanners; competition prohibits them:
sudo apt purge nmap zenmap - โขnetcat (nc) โ can be used as a backdoor:
sudo apt purge netcat netcat-traditional netcat-openbsd - โขjohn / hashcat โ password crackers:
sudo apt purge john hashcat - โขwireshark โ packet sniffer:
sudo apt purge wireshark - โขnikto, aircrack-ng โ vulnerability scanners:
sudo apt purge nikto aircrack-ng
Competition โ Packages to Install
- โข
sudo apt install ufwโ firewall (if not already installed) - โข
sudo apt install auditdโ audit daemon for logging - โข
sudo apt install libpam-pwqualityโ password complexity enforcement - โข
sudo apt install fail2banโ blocks IPs after repeated failed logins
๐ SecurityBefore removing any package, read the competition scenario. Some programs listed above might be part of the authorized software stack. Only remove what the scenario says is unauthorized.
๐ง Quick Checkfirst try = +5 XP
Which command updates all installed packages on Ubuntu?
๐ฎ Practice what you learned
โญ 0 XP๐ฅ 0 days