Glimlach Documentation

Table of Contents

  1. Introduction
  2. Features
  3. Usage
  4. Configuration File
  5. Placeholder Replacement
  6. Running the Script
  7. Error Handling
  8. Logging
  9. Notes and Considerations

1. Introduction

Glimlach is a cybersecurity automation tool designed to streamline the execution of multiple open-source security tools in a single scan. The Glimlach Python script, represented by the file cli.py, is an essential component of Glimlach. It automates the execution of Docker images based on a provided JSON configuration file, making it easy to run cybersecurity tools in parallel.

2. Features

3. Usage

The program is hosted on Pypi on Glimlach PyPI page. It is executed from the command line, and it requires a path to a JSON configuration file as an argument. Install Glimlach using pip:

        
            pip install glimlach
        
    

4. Configuration File

The configuration file is a JSON file that contains the following sections:

5. Placeholder Replacement

To make the configuration file more dynamic, placeholders can be used and replaced with actual values. Placeholders should be enclosed in <> brackets, and corresponding values are provided in the values section of the configuration file. In the provided configuration file example:

        <ip> is replaced with the value 123.456.101.1.
        <out_dir> is replaced with the value /Users/your-username/Desktop/.
        <web> is replaced with the value https://example.com.
    

6. Running the Script

The proggram is executed from the command line using the glimlach command, followed by the path to the configuration file.

        glimlach path/to/your_config_file.json
    

7. Error Handling

Errors during the execution of Docker images are caught, logged, and the script continues with the remaining images. This ensures that the script does not terminate prematurely due to a single failure.

8. Logging

The script uses Python's logging module to provide detailed information about the execution process. Information is logged at the INFO level, while errors are logged at the ERROR level.

9. Notes and Considerations

This documentation provides an overview of the features and usage of the Glimlach. For more detailed information, refer to the inline comments in the script and the provided configuration file example. Customize the configuration file according to your specific Docker image execution requirements.