Giter Site home page Giter Site logo

hardening's Introduction

ERNW Repository of Hardening Guides

This repository contains various hardening guides compiled by ERNW for various purposes. Most of those guides strive to provide a baseline level of hardening and may lack certain hardening options which could increase the security posture even more (but may have impact on operations or required operational effort).

The hardening guides are structured into various categories, represented by folders. Every hardening guide must be used in combination with hardening guides of the parent folders. Let's use the following fictional structure as an example:

  • web_application
  • ERNW_Hardening_Web_Application.md
  • wordpress
    • ERNW_Hardening_Wordpress.md
    • 4.4.2
    • ERNW_Hardening_Wordpress_4.4.2.md

In this structure, all three files 'ERNW_Hardening_Web_Application.md', 'ERNW_Hardening_Wordpress.md', and 'ERNW_Hardening_Wordpress_4.4.2.md' need to be taken into account for comprehensive hardening. If there are conflicting options, the most specific option (in this case, from 'ERNW_Hardening_Wordpress_4.4.2.md') must be used.

Contact us!

Feel free to contact us for questions, additions, spotted mistakes, or -- you name it.

Other Hardening Sources

The following incomplete list contains several other high quality hardening resources:

hardening's People

Contributors

adewald avatar freezingdaniel avatar nschiess avatar takeshixx avatar traxes 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hardening's Issues

/etc/hosts and /private/etc/hosts

Since /etc/ is a symbolic link to /private/etc/ on OS X, aren't /etc/hosts and /private/etc/hosts the same file? I'm not sure what is meant by:

! But there is local per User hosts file "/private/etc/hosts"

Lockdown is somewhat outdated

Minor note, but Lockdown.app has many false-postive/negatives on OS X 10.11.6. It doesn't seem to be updated for El Capitan.

Here are two examples of confusing results for an audit:

jb7iuj04
v9jyd8g4

sudoers instruction wrong

Never edit the sudoers file directly. Always use visudo and work on a file in /etc/sudoers.d/ or you will suffer great pain as you mangle the file and suddenly have to reload the OS because of a typo causing invalid syntax. Using visudo checks before installing your changes, and working on a separate file means you can remove the offending file in worst case to recover. Multiple files are also much easier for cfgmgmt to work with.

Also, disabling caching is a pretty sure way to guarantee users add in entries like:

Defaults:%group !authenticate

which completely bypasses reauthentication.

Automatically Lock the Login Keychain

I did the Automatically Lock the Login Keychain thing. It makes me crazy, asking for my loooong passphrases way too frequently. I went to Keychain Access selected the login Keychain, and turned it off. I still get prompted for ssh passphrases, ScanSnap, blah blah blah. How do I really stop this?

[OSX Mojave 10.14.*] pwpolicy command (deprecated features)

Hello,

For two updates or so on Mojave I've encountered an issue regarding the part about the use of the pwpolicy command. For example the option setpolicy is now deprecated and even though I tried to bypass it by playing with other options in many ways to figure out how to kind of properly set up the same command as the one show in the guide:

pwpolicy -u -setpolicy "minChars=8 requiresAlpha=1 requiresNumeric=1 maxMinutesUntilChangePassword=259200 usingHistory=5 usingExpirationDate=1 passwordCannotBeName=1 requiresMixedCase=1 requiresSymbol=1"

It didn't work and the related file that the command writes in isn't updated as it was before. Did some of you figured out a way yet to enforce such a policy on recent Mojave updates?

Thank you!

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.