Giter Club home page Giter Club logo

chain-reactor's Introduction

Chain Reactor

Chain Reactor is an open-source tool for testing detection and response coverage on Linux machines. The tool generates executables that simulate sequences of actions like process creation and network connection. Chain Reactor assumes no prior engineering experience; the tool consumes JSON, so customizing its behavior is as simple as editing a file.

Get started

For installation and usage instructions, see the Getting started page of the wiki.

Learn more

The Chain Reactor documentation is available as a wiki.

For information about the philosophy and development of the atomic family of projects, visit our website at https://atomicredteam.io.

Check the license for information regarding the distribution and modification of Chain Reactor.

chain-reactor's People

Contributors

adam-mashinchi avatar int5-grey avatar marshall-hallenbeck avatar pinealservo avatar rctgardner 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

chain-reactor's Issues

New Quark idea: sleep

Having a built-in sleep quark would be useful for certain scenarios, such as after adding a cron and simulating enough time for the scheduled task to execute. We can currently do this with execve: ["sleep", "<time>"], but the call already exists, and it'd be nice not to have yet another CLI to sift through

Fix README quotations

The examples in the READMEs have incorrect quotation characters, which cause execve to treat what should be multiple arguments as a single argument.

Request: Provide parameters to reactions on execution

It would be nice to be able to provide simple string parameters to the compiled binaries on execution, either in the form of CLI parameters or environment variables. My existing use case is developing a reaction for generic DDoS botnets like Mirai, and providing a fake binary filename on the command line, like so:

Example atom

[
  {
    "name": "EXECUTE-BOT",
    "fork-and-rename": [ "./${1}" ]
  }
]
$ ./reaction x86_64
...
atom: EXECUTE-BOT
        quark: fork-and-rename("./x86_64")

$ ./reaction arm7
...
atom: EXECUTE-BOT
        quark: fork-and-rename("./arm7")

$ ./reaction mips
...
atom: EXECUTE-BOT
        quark: fork-and-rename("./mips")

Request: allow disabling of Red Canary banner on binary execution

When executing the created binary, a massive Red Canary banner is output every time, taking up well over half my screen on a large monitor. It would be nice if we could have the option during binary creation to disable this to save screen space on execution.

Example execve mkdir reaction throwing missing dependency error

I am just running the example from README.md and I get this error:

cat reaction.json && cat atoms.json && python3 compose_reaction atoms.json reaction.json test_reaction && ./test_reaction                                                                                      
{                                                                                                                                                                                                                 
    "name": "simple_reaction",                                                                                                                                                                                    
    "atoms": [                                                                                                                                                                                                    
        "HIDDEN-PROCESS-EXEC"                                                                                                                                                                                     
    ]                                                                                                                                                                                                             
}                                                                                                                                                                                                                 
[                                                                                                                                                                                                                 
    {
        "name" : "HIDDEN-PROCESS-EXEC",
        "execve" : [ "mkdir”, “-p", "/tmp/.hidden" ],
        "copy" : [ "/proc/self/exe", "/tmp/.hidden/.chain_reactor_hidden" ],
        "execveat" : [ "/tmp/.hidden/.chain_reactor_hidden", "exit" ],
        "remove" : [ "/tmp/.hidden" ]
    }
]
[...CUT BANNER...]
chain reaction "simple_reaction" 1000 1000
atom: HIDDEN-PROCESS-EXEC
        quark: execve("mkdir”, /tmp/.hidden")
                "mkdir”," one of the dependencies is missing from this system
        failed
chain reaction complete

When I run something such as "id" it properly runs, but mkdir throws a dependency error, which is weird, because I definitely have mkdir on my system:

whereis mkdir
mkdir: /bin/mkdir /usr/share/man/man1/mkdir.1.gz /usr/share/man/man2/mkdir.2.gz

I also tried setting the command as the absolute path (/bin/mkdir) and that didn't work either.
Any idea on why this specific binary wouldn't be working?

"You must `make` chain_reactor first"

Hi
I'm using a straight out of the box Ubuntu build and I get the following when trying to build the illustrative example:

:/code/chain-reactor$ python3 compose_reaction atoms.json reaction.json ./example
Traceback (most recent call last):
File "compose_reaction", line 70, in
assert os.path.exists(os.path.join(script_directory, 'build/_X86_64/chain_reactor')), "You must make chain_reactor first"
AssertionError: You must make chain_reactor first

$ uname -mrs
Linux 5.8.0-55-generic x86_64

$ cat /etc/issue.net
Ubuntu 20.04.2 LTS

$ python3 --version
Python 3.8.5

Feature: Ability to Execute Atomic Red Team Atomics

Request is for the ability to read in and execute Atomic Red Team (ART) YAML/tests in Chain Reactor.

It is likely that a given Atomic Red Team atomic/command does not map 1:1 with the Chain Reactor reaction/atom/quark; however the usability gained from being able to execute a given ART atomic by specifying Technique ID and/or GUID would assist with the usability and automation of using Chain Reactor as a ART execution framework.

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.