Giter Site home page Giter Site logo

netflix-skunkworks / diffy Goto Github PK

View Code? Open in Web Editor NEW
635.0 143.0 60.0 1.13 MB

:no_entry: (DEPRECATED) Diffy is a triage tool used during cloud-centric security incidents, to help digital forensics and incident response (DFIR) teams quickly identify suspicious hosts on which to focus their response.

License: Apache License 2.0

Python 100.00%
security dfir forensics

diffy's Introduction

Diffy (DEPRECATED) =====

Diffy has been deprecated at Netflix. This software is no longer maintained or supported.

image

No Maintenance Intended

image

image

PyPi version

Supported Python versions

License

Status

RTD

Diffy is a digital forensics and incident response (DFIR) tool that was developed by Netflix's Security Intelligence and Response Team (SIRT).

Diffy allows a forensic investigator to quickly scope a compromise across cloud instances during an incident, and triage those instances for followup actions. Diffy is currently focused on Linux instances running within Amazon Web Services (AWS), but owing to our plugin structure, could support multiple platforms and cloud providers.

It's called "Diffy" because it helps a human investigator to identify the differences between instances, and because Alex pointed out that "The Difforensicator" was unnecessarily tricky.

See Releases for recent changes. See our Read the Docs site for well-formatted documentation.

Supported Technologies

  • AWS (AWS Systems Manager / SSM)
  • Local
  • osquery

Each technology has its own plugins for targeting, collection and persistence.

Features

  • Efficiently highlights outliers in security-relevant instance behavior. For example, you can use Diffy to tell you which of your instances are listening on an unexpected port, are running an unusual process, include a strange crontab entry, or have inserted a surprising kernel module.
  • Uses one, or both, of two methods to highlight differences:

    • Collection of a "functional" baseline from a "clean" running instance, against which your instance group is compared, and
    • Collection of a "clustered" baseline, in which all instances are surveyed, and outliers are made obvious.
  • Uses a modular plugin-based architecture. We currently include plugins for collection using osquery via AWS Systems Manager (formerly known as Simple Systems Manager or SSM).

Installation

Via pip:

pip install diffy

Roadmap

Diffy has been deprecated at Netflix. This software is no longer maintained or supported.

Why python 3 only?

Please see Guido's guidance regarding the Python 2.7 end of life date.

diffy's People

Contributors

dependabot[bot] avatar forestmonster avatar kevgliss avatar maxbachmann avatar pyup-bot 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  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

diffy's Issues

Issue warning for smaller host counts.

If no baseline is available, diffy will attempt to cluster the hosts. Diffy should issue a warning that the results of this cluster may not be meaningful when the number of hosts is low, e.g. <30.

Create baseline based on tags?

It looks like diffy only supports creating baselines based on auto-scaling groups.

Unfortunately, I'm not using auto-scaling groups, and it's not an option for me to do so... but I do have tags.

Would it be possible/desirable to allow diffy to work based on tags in addition to ASGs?

I'm writing some PoC code to experiment with this but would love your feedback.

Thanks!

Video for OSDFCon talk

I really would like to understand how Diffy works, and noticed that you gave a talk at OSDFCon. I've checked out the slides, just wanted to know if a video will be released.

Thanks

getting error while executing $ pip install -r dev-requirements.txt

The Error is

`compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Command "/home/harry/diffy/env/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-xihzs_85/python-levenshtein/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-0losak7n/install-record.txt --single-version-externally-managed --compile --install-headers /home/harry/diffy/env/include/site/python3.6/python-levenshtein" failed with error code 1 in /tmp/pip-install-xihzs_85/python-levenshtein/`

Update Jinaj2 due to security issue.

Jinja < 2.10.1 has a security vulnerability. We pull this in via flask, we should roll our web-requirements.in and pickup a newer version for the library with the vulnerability fixed.

Support local baseline capture

Allow users to capture a local baseline of their system, store it, and then compare system state to that baseline at a later date. Useful for demo and test purposes. One example would be to baseline a VM, infect it in someway, and then run analysis to confirm detection of the infection.

Allow the comparison of multiple commands.

We allow multiple commands to be specified by:
https://github.com/Netflix-Skunkworks/diffy/blob/master/diffy/config.py#L199

and
https://github.com/Netflix-Skunkworks/diffy/blob/master/diffy/config.py#L194

These are then issued in series on the host. However when multiple commands are passed the output is not properly collected in a valid json format. Moreover we have no way to separate out multiple outputs.

We should allow for multiple collection commands is a format like:

{
    "<command1>": {"some": "output"},
    "<command2>": {"some": "output"}
}

This will likely mean that instead of having the commands executed directly we will need some script to execute and collect the output of multiple commands in the above format.

Add background processing to diffy API.

Today diffy attempts to send all commands within the request window. For larger clusters completion time may exceed a reasonable request limit.

The api should background analysis requests such that it does not block additional web requests. It should return a worker ID that can be queried for status.

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.