Coder Social home page Coder Social logo

adaptiveintelligence / single-user-mode-ids Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jacobsalmela/single-user-mode-ids

0.0 1.0 0.0 260 KB

(OS X) Intrusion Detection System for Single User Mode (EFI Password alternative)

License: MIT License

Shell 100.00%

single-user-mode-ids's Introduction

BTC donations: 1DzPaoarz8pCV8wMg96hAGYgW2coJd798K

SUM-IDS

Requirements

  1. Admin computer running OS X 10.8-10.9
  2. terminal-notifier installed on the admin computer
  3. GeekTool running on a server (it can be any OS X machine; it is just acting as the server).
  4. Static IPs set on the admin and server computers (preferred) or at least a DHCP reservation
  5. An available static IP for the computers that will have the IDS installed
  6. .profile installed on to each computer you want to monitor for Single-user Mode intrustion--very important!
  7. SSH keys for passwordless-login between the admin computer and the server

What does it do?

When a computer with the .profile script is booted into Single-user Mode, it will assign itself a static IP. This IP is constantly being pinged by another computer (the server) via a GeekTool script. If it successfully pings that address, it sends a Notification Center message to an admin over ssh using terminal-notifier.

The .profile script will also log all commands entered into /var/log/system/log (timestampped). In addition, a plist with the date Single-user mode was accessed is created in /Library/Preferences/. Customize the plist name and key in the .profile script.

This works great if your organization does not use EFI passwords. This way, you at least always know when someone boots into this mode.

How it Works

This is a geeklet that runs in GeekTool every 2-10 seconds. It needs to be used in conjunction with the /var/root/.profile script that assigns the computer an IP address when it is booted into Single-user Mode.

Usage

  1. Set up a new GeekTool shell module and have it execute once every 2-10 seconds
  2. Copy and paste the code in and save it (modifying it per your enviornment)
  3. Any time that IP address is pingable, it will send a Notification to the admin 10.8+ computer
  4. If the alert it triggered, the admin can then click the Notification to copy the MAC address to the clipboard
  5. From there, they can manually paste it into a DB to find which computer it is

Customizing

Make Changes to the Variables

Modify the variables to suit the environment (specific IP addresses, usernames, etc.)

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.