Invoking the fibratus binary without any parameters reveals available CLI commands. You can obtain help information for each available command by appending the --help or -h option after the command name. Let's briefly describe available commands.
The main command for bootstrapping Fibratus (either in rule engine or event forwarder mode) or running a filament. It accepts an optional filter expression. Examples:
-
collect all events
$ fibratus run --forward -
run the
watch_filesfilament$ fibratus run -f watch_files -
collect fs events originated from the
cmd.exeprocess$ fibratus run --forward kevt.category = 'file' and ps.name = 'cmd.exe' -
collect fs events and enable PE introspection
$ fibratus run --forward kevt.category = 'file' --pe.enabled=true
Dumps the event flow to specialized kcap (capture) file. It accepts an optional filter expression. Examples:
-
capture all events to
events.kcapcapture file$ fibratus capture -o events -
capture network events from the specific destination IP address
$ fibratus capture kevt.category = 'net' and net.dip = 172.17.2.3 -o events
Replays the event flow from the kcap file. It accepts an optional filter expression. Examples:
-
replay all events from the
events.kcapcapture file$ fibratus replay -k events -
replay events that contain a specific resource name in the PE resource directory
$ fibratus replay pe.resources[Company] contains 'blackwater' -k events
The root command that exposes various subcommands for listing/validating rules and creating detection rule templates.
List all rules present in the Rules directory.
Validates rules for structural and syntactic correctness.
Create a new rule template. The command requires a rule name and an optional MITRE tactic identifier (e.g. TA0001) that can be passed via --tactic-id flag.
Prints the options loaded from configuration sources including files, command line flags or environment variables. Sensitive data, such as passwords are masked out.
This is the root command that exposes multiple subcommands for interacting with the Windows Service Control Manager.
Starts the Fibratus service that was previously registered within the Windows Service Control Manager.
Stops the Fibratus Windows service.
Restarts the Fibratus Windows service.
Removes the Fibratus service from the Windows Service Control Manager.
Checks the status of the Fibratus Windows service.
Launches the default web browser and opens the Fibratus documentation site.
The command consists of various subcommands:
Displays available filaments. Filaments live in the %PROGRAMFILES\Fibratus\Filaments directory, but you can override this location with the --filament.path flag or the corresponding key in the yaml configuration file.
Shows all field names that can be used in filter expressions.
Shows available event types.
Returns the runtime metrics that are exposed through the expvar HTTP endpoint. Useful for debugging.
Displays the Fibratus version along with the commit hash and the Go compiler version.