Skip to content

Commit

Permalink
work in progress for idaholab#329, improve documentation for extracte…
Browse files Browse the repository at this point in the history
…d_files download page
  • Loading branch information
mmguero committed Feb 5, 2024
1 parent ed6cd76 commit c6ead7e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Malcolm can also easily be deployed locally on an ordinary consumer workstation
+ [YARA](custom-rules.md#YARA)
+ [Other Customizations](custom-rules.md#Other)
- [Automatic file extraction and scanning](file-scanning.md#ZeekFileExtraction)
+ [User interface](file-scanning.md#ZeekFileExtractionUI)
- [OpenSearch index management](index-management.md#IndexManagement)
- [Event severity scoring](severity.md#Severity)
+ [Customizing event severity scoring](severity.md#SeverityConfig)
Expand Down
19 changes: 19 additions & 0 deletions docs/file-scanning.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# <a name="ZeekFileExtraction"></a>Automatic file extraction and scanning

* [Automatic file extraction and scanning](#ZeekFileExtraction)
- [User interface](#ZeekFileExtractionUI)

Malcolm can leverage Zeek's knowledge of network protocols to automatically detect file transfers and extract those files from PCAPs as Zeek processes them. This behavior can be enabled globally by modifying the `ZEEK_EXTRACTOR_MODE` [variable in `zeek.env`](malcolm-config.md#MalcolmConfigEnvVars), or on a per-upload basis for PCAP files uploaded via the [browser-based upload form](upload.md#Upload) when **Analyze with Zeek** is selected.

To specify which files should be extracted, the following values are acceptable in `ZEEK_EXTRACTOR_MODE`:
Expand Down Expand Up @@ -44,3 +47,19 @@ The `EXTRACTED_FILE_HTTP_SERVER_…` [environment variables in `zeek.env` and `z
- downloaded files are downloaded as-is, without archival or compression:
+ `EXTRACTED_FILE_HTTP_SERVER_ZIP=false`
+ `EXTRACTED_FILE_HTTP_SERVER_KEY=`

## <a name="ZeekFileExtractionUI"></a>User interface

The files extracted by Zeek and the data about those files can be accessed through several of Malcolm's user interfaces.

* The [Files dashboard](dashboards.md#PrebuiltVisualizations) summarizes the file transfers observed in network traffic:

![The files dashboard displays metrics about the files transferred over the network](./images/screenshots/dashboards_files_source.png)

* Viewing logs from Zeek's `files.log` (e.g., `event.provider == zeek && event.dataset == files`), the Arkime [session](arkime.md#ArkimeSessions) detail's **Extracted Filename** field can be clicked for a context menu item to **Download** the extracted file, if it was preserved as described above.

![Arkime's session details for files.log entries](./images/screenshots/arkime_sessions_files_log_dl.png)

* Malcolm provides an extracted files directory listing to browse and download Zeek-extracted files. This interface is available at at **https://localhost/extracted-files/** if connecting locally. The Zeek `uid` and `fuid` values associated with these files and the sessions from which they were extracted are listed in the **IDs** column as filter links back into Dashboards.

![The extracted files directory interface](./images/screenshots/extracted_files_dl_ui.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/screenshots/dashboards_files_source.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c6ead7e

Please sign in to comment.