{"id":25531923,"url":"https://github.com/m-ah07/linux-system-security-checker","last_synced_at":"2026-01-20T13:30:18.525Z","repository":{"id":269140987,"uuid":"906550598","full_name":"m-ah07/linux-system-security-checker","owner":"m-ah07","description":"A simple Bash script for performing quick security audits on Linux systems, including checks for firewall status, sensitive file permissions, inactive user accounts, and running services. Generates detailed security reports.","archived":false,"fork":false,"pushed_at":"2025-01-01T16:41:35.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T16:52:46.796Z","etag":null,"topics":["audit","bash","linux","linux-tools","security","security-checker"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-ah07.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"security-checker.sh","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-21T07:59:19.000Z","updated_at":"2025-01-01T16:41:38.000Z","dependencies_parsed_at":"2024-12-21T08:33:40.629Z","dependency_job_id":"2cfa39c5-aac6-43fa-9958-d755525de119","html_url":"https://github.com/m-ah07/linux-system-security-checker","commit_stats":null,"previous_names":["marwan-ahmed-23/linux-system-security-checker","m-ah07/linux-system-security-checker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2Flinux-system-security-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2Flinux-system-security-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2Flinux-system-security-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2Flinux-system-security-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-ah07","download_url":"https://codeload.github.com/m-ah07/linux-system-security-checker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239763601,"owners_count":19692794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audit","bash","linux","linux-tools","security","security-checker"],"created_at":"2025-02-20T01:42:18.692Z","updated_at":"2026-01-20T13:30:18.462Z","avatar_url":"https://github.com/m-ah07.png","language":"Shell","readme":"# 🛡️ Linux System Security Checker\n\nA lightweight and powerful **Bash script** designed to perform a quick security audit of your Linux system. This tool checks for firewall status, sensitive file permissions, inactive users, running services, and available updates, then generates a detailed security report in both text and HTML formats.\n\n\n## 🚀 Features\n- 🔥 **Firewall Status**: Checks if UFW is active and lists current rules.\n- 🔐 **Sensitive File Permissions**: Verifies permissions for critical files like `/etc/passwd`, `/etc/shadow`, and `/etc/hosts`.\n- 👤 **Inactive User Accounts**: Detects unused or suspicious accounts based on login shells.\n- 🛠️ **Service Monitoring**: Lists top 10 running services by memory usage.\n- ⬆️ **System Updates**: Checks for available package updates to keep your system secure.\n- 📄 **Detailed Report**: Automatically generates a comprehensive security report in both **text** and **HTML** formats for better visualization.\n\n\n## 📂 Directory Structure\n```plaintext\nlinux-system-security-checker/\n├── security-checker.sh\n├── README.md\n├── LICENSE\n├── security-report.txt\n├── security-report.html\n└── example-report.txt\n```\n\n## 📖 Usage\n1. Clone this repository:\n\n    ```bash\n    git clone https://github.com/m-ah07/linux-system-security-checker.git\n    cd linux-system-security-checker\n    ```\n\n2. Make the script executable:\n\n    ```bash\n    chmod +x security-checker.sh\n    ```\n\n3. Run the script:\n\n    ```bash\n    ./security-checker.sh\n    ```\n    \n4. View the generated report:\n\n    - Text Report:\n        ```bash\n        cat security-report.txt\n        ```\n    - HTML Report: Open `security-report.html` in your favorite browser.\n\n## 🖼️ Example Report\n\nHere's an example of the output generated by the script:\n\n```plaintext\nSecurity Report - Thu Dec 21 2024\n---------------------------------------\nFirewall Status:\nStatus: active\n\nTo                         Action      From\n--                         ------      ----\n22                         ALLOW       Anywhere\n---------------------------------------\nFile Permissions:\n/etc/passwd -rw-r--r--\n/etc/shadow -rw-------\n/etc/hosts -rw-r--r--\n---------------------------------------\nInactive Users:\nroot\nadmin\n---------------------------------------\nTop 10 Running Services by Memory Usage:\nUSER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND\nroot         1  0.0  0.1 102400  9280 ?       Ss   12:00   0:03 /sbin/init\nmysql      172  0.5  1.5 125000 11000 ?       Ssl  12:00   0:30 /usr/sbin/mysqld\n---------------------------------------\nSystem Updates:\napt package-manager is up-to-date.\n```\n\n### HTML Format:\n\nOpen `security-report.html` for a visually styled version of the report with structured sections and improved readability.\n\n\n## 🛠️ Contributing\n\nWe welcome contributions to improve this tool! Here's how you can help:\n\n- 🐛 **Report issues:** Found a bug? Open an issue and let us know.\n- 🌟 **Suggest features:** Have an idea for improvement? We'd love to hear it.\n- 🔧 **Submit pull requests:** Contribute code directly to the repository.\n\n## 🛠️ Future Improvements\n- 📅 **Task Scheduling:** Add cron job integration for automated periodic checks.\n- 🕵️ **Vulnerability Scanner:** Integrate CVE vulnerability scanning.\n- 🎨 **Enhanced HTML Report:** Include charts and visual statistics.\n- 🛡️ **Customizable Rules:** Allow users to define custom rules for security checks.\n\n\n\n\n## 🌟 Show Your Support\nIf you found this project helpful, please consider giving it a ⭐ on GitHub. Your support means the world to us!\n\n\n\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-ah07%2Flinux-system-security-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-ah07%2Flinux-system-security-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-ah07%2Flinux-system-security-checker/lists"}