Coder Social home page Coder Social logo

hac's Introduction

HaC

HaC Logo

Overview

This Linux hardening script is designed to enhance the security of a Linux system by implementing recommendations from the ANSSI (Agence nationale de la sécurité des systèmes d'information) V2 guidelines. The script follows a modular structure, with each security recommendation represented as a separate module.

Project Structure

The project structure is organized as follows:

  • modules/ Directory: Contains individual modules, each addressing specific security recommendations. Each module has its own bash script (*.sh) with functions for hardening, evaluation, and help.

  • modules.sh File: Central configuration file mapping each module to its score and path. This file is sourced in the main script (run.sh) for dynamic module loading.

  • run.sh Script: The main script that orchestrates the execution of module functions. It handles scoring, report generation, and the overall project workflow.

  • reports/ Directory: Intended for storing generated reports on the hardening status of the server.

Modules

  • Each module is designed to address a specific ANSSI recommendation.
  • Modules are modular, allowing for easy addition or removal.
  • Module scripts follow a consistent structure with hardening, evaluation, and help functions.

Usage

Clone the Repository:

git clone https://github.com/Eljakani/HaC.git
cd HaC

Review Modules:

Explore the modules/ directory to understand each module's purpose and functionality.

Configure Modules:

Update the modules.sh file with module scores and paths.

Run the Script:

Execute the main script to initiate the hardening process.

   sudo ./run.sh

Review Reports:

Generated reports can be found in the reports/ directory.

Disclaimer

This script is provided as-is and should be tested in a controlled environment before applying to production systems.

hac's People

Contributors

eljakani avatar

Stargazers

 avatar Saaida Hnais avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.