Git Product home page Git Product logo

shield's Introduction


Logo
Shield:

Photo Source: https://image.freepik.com/free-vector/golden-shield-retro-design_12454-5380.jpg

Shield is a single file bash script, made to harden and secure your Debian or Debian based OS. This project has been thoroughly tested and checked for errors.

If you liked it:

Feel free to star my project, I have worked quite hard on this project.

Usage:

Clone the script and follow these instruction below, and then run it as root and select which sections to run when prompted.

   1. git clone https://github.com/TheOnodrim/Shield.git
   2. cd Shield
   3. chmod +x Shield.sh
   4. ./Shield.sh

Warning:

This shell script restricts the ssh key to the admin user.

Supported OS types:

  • Debian 10
  • Debian 8
  • Debian based OS's

What does the hardening script do?

  • Adds a legal banner to /etc/motd, /etc/issue and /etc/issue.net
  • Adds an automatic updater
  • Adds a daily cronjob to update system packages on the server
  • Configures the iptables
  • Configures the kernel
  • Disables core dumps
  • Disables firewire and usb storage
  • Disables uncommon filesystems
  • Disables uncommon network protocols
  • Enables process accounting
  • Installs and configures auditd with reasonable rules
  • Installs and sets up aide
  • Installs fail2ban
  • Installs packages recommended by lynis
  • Moves /tmp to /tmpfs
  • Purges old and removed packages
  • Remounts /dev, /tmp, /run and /proc to be more restrictive
  • Restricts access to compilers
  • Restricts access to /root
  • Restrics ssh key to admin user
  • Restricts logins
  • Restricts ssh, and enables ssh only for the admin user
  • Updates system packages and the package list
  • Sets up rkhunter and chkrootkit
  • Disables thunderbolt
  • Sets up psad
  • Protects physical console access
  • Sets up shorewall
  • Installs logwatch
  • Enables disk quotas
  • Enables process accounting
  • Restricts core file access
  • Creates a daily cronjob that runs certain security based applications and opens security related log files.
  • Installs and sets up SElinux
  • Sets up Two-Factor Authentication
  • Sets up email notifications when sudo is run
  • Installs and sets up Open VPN

Contributing:

Please open issues and pull requests on anything you come across.

Reaching out to me:

If you have anything you would like to tell me, simply create an issue with the title To Repository Owner.

Screenshots:

alt text

Note

As of Wednesday, November 17th, 2021 this repository has been archive. On Monday, May 30th, 2022 I have unarchived this repository for a few minor changes and will rearchive it again.

shield's People

Contributors

theonodrim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shield's Issues

error

./Shield.sh: line 1238: syntax error near unexpected token Shield' ./Shield.sh: line 1238: for example Shield purges old and removed packages to remove'

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.