Coder Social home page Coder Social logo

breakid / redreaper Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 1.0 59 KB

This tool is designed to simplify and automate the extraction and organization of useful data from Cobalt Strike logs.

License: GNU General Public License v3.0

Python 100.00%

redreaper's People

Contributors

breakid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

redreaper's Issues

Match command output with command input (beacon_commands)

Due to the way Cobalt Strike works (i.e., out-of-order execution and logging output with no information linking it to it's associated input), it is non-trivial to link input and output during post-processing. That said, it should be possible to limit the potential matches, potentially down to one in some cases.

Case 1:

  • Error output reported by Cobalt Strike appears immediately after an invalid command. This would be an easy win.

Case 2:

  • If there is only one input queued before a check-in, all output before the next input should be related to that one input (even if there are multiple output chunks).

Case 3:

  • There is only one input of each output type before a check-in. In this case, with accurate output parsing, it should be possible to link the outputs to the inputs, even if they are executed out of order.

If there are multiples of each command, such as multiple dsqueries, it becomes extremely difficult to match input to output.

Automatically map DNS domain to NT domain

Figure out how to automatically map a DNS domain to an NT domain. Ideally this would be done using only information available via Cobalt Strike's built-in tools to eliminate the need to run specific commands on target systems. The less we have to rely on users to run specific commands, the better.

Re-categorize remote dirs

Remote dirs are currently logged under the source host rather than the destination. However, the data is related to the destination so it makes more sense to record it there.

Eliminate all 'unknown' data

Post-process host and domain data before printing. Prompt user for any missing DNS or NT domain data and re-categorize the data eliminate all 'unknowns'.

Fix how credentials are merged

The way credentials are merged now, it's possible for more recent data to be overwritten by older data when re-categorizing "Unknown" data. This was known at the time, but the re-categorization code was particularly complex, and this was deemed "good enough" for a prototype.

Improve object type recognition (dsquery)

The dsquery module currently relies on specific unique fields to be present per object type. Add logic to check for 'objectclass'; this should improve recognition when users run "-attr *".

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.