Skip to main content

Replaces script, tmux-logging, log spreadsheets

Red Team Operator Logging on the Engagement Timeline

The Neuron CLI records every command, scan and C2 task to the engagement as it happens, so the operator log is complete the day the testing ends.

The job today

Every action on an engagement needs a record: what was run, when, from which box and against which host. Today that is a terminal log per operator per box, plus a spreadsheet filled in at the end of the day. At report time, someone stitches the two together.

Today

Where it breaks

  1. 01

    The log stays on the box.

    A terminal log is a file on whichever box the operator worked from. When the jumpbox is torn down, the log goes with it unless someone copied it off first.

  2. 02

    The spreadsheet is written after the fact.

    Times, hosts and outcomes are typed up at the end of the day from memory and shell history, a little differently by each operator.

  3. 03

    Evidence is dug out at report time.

    Finding the command that proved a finding means searching hours of output across several logs, then pasting it into the write-up.

In Neuron

How Neuron does it

  1. 01

    Your own shell, recorded

    Work in your normal shell on your laptop or on a box over ssh. Each command lands on the engagement timeline, titled with the command line and carrying its output. Nothing is installed on the box.

  2. 02

    Scans logged and imported in one step

    Put neuron in front of nmap, masscan or nuclei and the run is logged and its results imported. When a command writes a scanner output file, the shell offers to import it.

  3. 03

    C2 and phishing activity streamed in

    Collectors for Mythic, Sliver, Metasploit, GoPhish and Evilginx put tasks, sessions, credentials, loot and phishing results on the timeline for as long as they run.

  4. 04

    Who, where and when on every event

    Each event carries the operator, the source it came from, the box a command ran on, and the ATT&CK technique when the C2 recorded one.

  5. 05

    What only people know

    Add milestones, client calls and blue-team detections by hand, backdated to when they happened, beside everything logged automatically.

  6. 06

    Events become evidence

    Raise a finding from one event, a selection or an event chain, and the events are written into its evidence as one story, in order.

How red team operator logging works in Neuron

If your team logs with script, tmux-logging and a shared activity spreadsheet, the log lives apart from the engagement. In Neuron, the log is the engagement's timeline.

  1. 1

    Pair the CLI with the engagement

    Run neuron pair and approve the code in your browser. The pairing reaches that one engagement and nothing else.

  2. 2

    Open the recording shell

    Run neuron shell on your laptop, or neuron --ssh jumpbox shell to record on the box you test from. Your own SSH config, agent and jump hosts apply.

  3. 3

    Run your scans as usual

    When a command writes a scanner output file, the shell offers to import it as it finishes. Or put neuron in front of the tool to run it and import the result in one step.

  4. 4

    Start a collector beside it

    Type :collector mythic or :collector evilginx in the shell. It runs in the background against the box you are working on, over the same SSH connection.

  5. 5

    Add what the tools can't see

    Log the client call, the blue-team detection or the milestone on the same timeline, at the time it really happened.

Command logging and C2 activity logging

Two sources feed the same timeline. Use either on its own, or both at once on the same operation.

The recording shell

For the commands your operators type.

  • Each command is its own event, with its output and exit code
  • A command run on another box over ssh shows where it ran, and that host is added to the engagement
  • Housekeeping commands such as clear and exit stay off the timeline, and an administrator chooses which
  • The shell warns you when Neuron can't be reached, because commands aren't logged until that is fixed

Collectors

For what your C2 and phishing servers record.

  • Mythic and Sliver tasks, callbacks, credentials and downloaded files, with the C2 operator on each
  • Metasploit module runs, sessions, credentials and loot
  • GoPhish emails sent, opened, clicked and reported, and every set of credentials submitted
  • Evilginx lure visits, submitted credentials and captured sessions
  • Host artifacts the C2 recorded for cleanup, each as its own event
  • Reach a server that only a jumpbox can see, over your own SSH
  • Everything is held on the operator's machine until Neuron confirms it, so a dropped connection loses nothing

One activity log for every operator

Every operator, every box and every tool writes to one timeline, grouped by day and searchable as the work goes on.

  • Filter by event type, source, operator, captured output, date and text
  • An activity chart of the matching events, narrowed to any day you click
  • Every host, port and web app shows its own events timeline
  • Link events into named attack chains that read step by step
  • Export the events that match your filters
Sample timeline Today
  1. 14:32
    Blue Team

    SOC isolated ws01.acme.example

    Dana · Neuron

  2. 14:05
    Artifact

    File written on ws01.acme.example

    Bob · Mythic · flagged for cleanup

  3. 13:51
    Credential Capture

    [email protected]

    Evilginx

  4. 13:20
    Command Execution

    nmap -sV -oX scan.xml 203.0.113.0/24

    Alice · Neuron CLI · ran on jumpbox

  5. 11:00
    Client Interaction

    Kickoff call with Carol at Acme

    Alice · Neuron

An example of an engagement timeline with fictional events from the recording shell, collectors and team members.

From the operator log to the report

The events that proved a finding become its evidence, written in the order they happened.

  • A finding raised from several events opens with a timeline table, then each step written up in order
  • Command runs show where they ran, who ran them, the exit code and the output
  • Passwords, hashes and session tokens are never written into the evidence
  • Hosts, ports and web requests linked to the events are linked to the finding
  • Copy the same story as markdown without creating a finding
  • Artifact events give the report's cleanup section its list of what was left on each host

Every recording shell session is also saved in full on the operator's own machine as a standard asciinema recording, ready to replay in any asciinema player.

See the Neuron CLI →

What you keep

Your terminal, your shell configuration and your tools. Your C2 server, phishing server and jumpbox stay where they are, and the CLI reaches them over your own SSH.

Bringing it in

Scanner output you already have imports from the terminal with neuron import, one file, a glob or piped output at a time. Earlier activity can be added by hand as events, backdated to when it happened.

Frequently asked questions

Does the recording shell install anything on the box?

No. Nothing is installed on the box you test from, and the hook that does the logging is removed when you exit the shell.

Do operators have to change how they work?

No. The recording shell starts your normal shell and behaves like your usual terminal. Commands are logged as you run them, with nothing to remember at the end of the day.

Which C2 and phishing tools stream into the timeline?

Mythic, Sliver, Metasploit, GoPhish and Evilginx each have a collector in the Neuron CLI. A collector runs for as long as you leave it running, and reaches a server that only a jumpbox can see over your own SSH.

What happens if the connection to Neuron drops?

Collectors hold everything on the operator's machine until Neuron confirms it, so nothing is lost. The recording shell warns you when Neuron can't be reached or no longer accepts the pairing, because commands are not logged until that is fixed.

Can we keep noisy commands off the timeline?

Yes. Housekeeping commands such as clear and exit are left off from the start, and an administrator chooses which commands stay off. Every session is also saved in full on the operator's own machine as an asciinema recording.

Can the operator log go into the report?

Yes. Raise findings from events with the evidence written in, and include events in your report template as a chronological record of the testing.

Which parts need a module?

The recording shell and scan imports need no extra module. The collectors need the optional Red Team module, and copying files to the File Share from the CLI needs the File Shares module.

See an operation logged as it runs

A walkthrough of Neuron on your own workflow.

Request a Demo