Lab 8
Chapter 15
🐧 Linux

Bash Security Audit Script

Write a Bash script that performs a basic security audit of a Linux system.

0 / 4 tasks completed

📋 Tasks

1 Create the audit script file
cat > audit.sh << 'EOF'
2 Make the script executable
chmod +x audit.sh
3 Run the security audit
sudo ./audit.sh
4 Save the report to a dated file
sudo ./audit.sh > audit_report_$(date +%F).txt

💻 Interactive Terminal

bash — cyber-lab
Welcome to Lab 8: Bash Security Audit Script
Type commands below to complete each task. Type 'help' for available commands.
──────────────────────────────────────────────
student@cyber-lab:~$
💡 Complete task 1: Create the audit script file

🤔 Reflection

What additional checks would you add to make this a comprehensive audit tool?

← Lab 7 Lab 9 →