Giter Club home page Giter Club logo

quick-secure's Introduction

Quick NIX Secure Script

Quick NIX Secure Script is used to harden and secure basic permissions and ownership on the fly. This script can be used during boot up, cron, bootstrapping, kickstart, jumpstart and during other system deployments. I recommend using CM tools like Puppet or Ansible, but this is still nice.

Why use this?

Many times in (prod)uction world prior admins harden without automation or towards an industry baseline. This is to help get to a point of standardization and quickly set or reset basic system security.

Use before or after app deploymentz. I don't set umasks, so everything should work regardless ^_^

Industry Compliance

This is influenced from DISA STIGs, ODAA, NSA and NIST/FIPs. This does not enforce towards those baselines, but helps minimize CAT I-III findings.

Requirements

  • RHEL 5-6, Fedora 17-20, Ubuntu 10-13, Solaris 9-10 and OpenSolaris
  • root or equivalent
  • basic /bin /sbin /usr/bin executables

Installation

(Easiest method to get going)

curl -sfO https://raw.githubusercontent.com/marshyski/quick-secure/master/quick-secure && bash quick-secure

(Alternative)

git clone https://github.com/marshyski/quick-secure.git
chmod 0700 ./quick-secure/quick-secure

Securing Docker Containers

(Easiest method)

RUN cd / && curl -sfO https://raw.githubusercontent.com/marshyski/quick-secure/master/quick-secure && bash /quick-secure -f

(Alternative method)

ADD quick-secure /quick-secure
RUN bash /quick-secure -f

Usage

-c argument reviews what's commented out in quick-secure.

./quick-secure/quick-secure -c

-u argument reviews what's being applied to your current system.

./quick-secure/quick-secure -u

-f argument forces settings without being prompt with "are you sure" question.

./quick-secure/quick-secure -f

Run quick-secure for the first time: ./quick-secure/quick-secure in CLI.

Setup quick-secure to run every sunday at 11PM via root's cron:

00 23 * * 0 /root/quick-secure/quick-secure -f

Help & Feedback

You can email ([email protected]) me directly if you need help, submit an issue or pull request. Fork it.

Looking for better hardening for Ubuntu so pull request quick-secure.

quick-secure's People

Contributors

ferronrsmith avatar jasonodonnell avatar marshyski avatar safinsingh avatar

Stargazers

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

Watchers

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

quick-secure's Issues

Script disables SELinux.

Disabling during configuration is ok, but reintialise it after.

SELinux is working /for/ us, not against.

Explanation of what it is this script does

I can read bash, but it might be nice to provide a little explanation for how this script works? What is the industry baseline, and how does this script get you there? Whose standards are these? Why does this work?

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.