Giter Club home page Giter Club logo

porcupine's Introduction

Porcupine:

Software to prevent unauthorized physical access to your machine.
It listens for udev events and could take 3 different actions when certain storage devices are detected:

  1. Defense (Reboot PC)
  2. Freeze PC (Launch a fork bomb to freeze PC and fill all RAM in short time)
  3. Offense (If it's a USB drive, it'll be overwritten, if it's a CD/DVD ROM it'll be eject)
  4. Offense + Defense (The previus modes, combined)
  5. Learning (Learning mode to populate trusted devices list)

The software is composed also by a "Emergency Wipe List": when an action like defense or offense is erased,
porcupine will also wipe the file in this list through secure-delete software by THC

I suggest you (it's quite a must...) to use Full Disk Encryption in order to obtain the best results
(e.g. What happens if someone try to stick his USB pendrive in your PC? In defensive mode, the PC will reboot and
the intruder will be redirected to FDE password prompt)

This program is created with int0x80 talk "Anti-Forensic for the Louise" from Derbycon 2012 in mind.
For every reference about the original concept by int0x80 please look at:

Requirements:

Must:

  • A PC with a Linux distribution installed (preferred: Ubuntu, Mint)
  • Python interpreter, pyudev library and wxwidget bindings for python.
    • python >= 2.7
    • python-wxgtk2.8 >= 2.8.12.1
    • pyudev >= 0.16.1
    • secure-delete (this is the name on ubuntu repos, check for your own distribution)
      e.g. On Ubuntu 11.04: sudo apt-get install python-wxgtk2.8 python
      About pyudev >= 0.16.1 on ubuntu systems look at:
      https://launchpad.net/ubuntu/raring/i386/python-pyudev/0.16.1-1

Should:

  • HD with Full Disk Encryption enabled e with a sifficient strong password. This permits to maximize the effets

Usage:

  • In main folder add an ampty folder called configs
  • Simply run it with superadmin privileges.

e.g. To run and detach from console: sudo nohup ./porcupine.py &

ToDo:

  • Add MMC/SD/others controls
  • Add a checksum system for personal pendrives
  • Add the options to run custom actions when device is detected
  • Add Shortcut and menu option to hide the trayicon (partially implemented. At the moment
    only hide is possible, no resume from hide)
  • Password protect Quit action (maybe)
  • Password protect Settings menu (maybe)
  • Password protect Stop action (maybe)
  • Password protect Show trayicon action (maybe)
  • More Tests

Known bugs:

  • None from the last tests, but please help me to improve the software. More testers are better than me alone!

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.