tectonic-cyberrange


Nametectonic-cyberrange JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://cyberrange.fing.edu.uy/
SummaryA Python package for the Tectonic project.
upload_time2024-10-14 19:45:59
maintainerNone
docs_urlNone
authorGSI-Fing-Udelar
requires_python<4.0,>=3.10
licenseGPL-3.0-or-later
keywords cyberrange tectonic ansible terraform aws cloud security automation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # Tectonic - An Academic Cyber Range
[![Regression Tests](https://github.com/GSI-Fing-Udelar/tectonic/actions/workflows/test.yml/badge.svg)](https://github.com/GSI-Fing-Udelar/tectonic/actions/workflows/test.yml)

## Overview
Tectonic is a cyber range designed to provide realistic cybersecurity
scenarios for education and training through the deployment of
networks, systems and applications that can be used to train users on
cybersecurity topics. Key functionalities include customizable network
configurations, real-time monitoring and automated attack simulations.

It incorporates existing tools from the infrastructure as code (IaC)
approach, which allows for the specification of all the components of
a cybersecurity scenario in a declarative manner. This specification
is made in a high-level language that can be interpreted and allows
for the automatic generation of scenarios on the laboratory underlying
platform. Declarative descriptions of the scenarios make them easily
versioned, maintained, and shared, facilitating collaboration with
other institutions and laboratories of this type.

The following figure illustrates various components of the cyber range
solution, the technologies used in the implementation, and the
different use cases carried out by student users and instructors. The
components are organized in five layers, each fulfilling a particular
function in the platform's operation.

<p align="center">
    <img src="docs/architecture.png" width="500">
</p>

The underlying infrastructure constitutes the real-world
infrastructure on which the systems and networks that form the basis
of a particular scenario are deployed. Currently deployments on the
AWS cloud or on-premises using Libvirt are supported, with more
planned.

To achieve the deployment of the infrastructure in an automated
manner, \textit{Infrastructrue as Code} (IaC) tools are used, such as
Packer, Terraform and Ansible. These tools manage the resources to be
deployed and the configurations to be applied to them. Ansible
playbooks, in particular, are extensively used for configuration.

A Python component orchestrates these tools and manages the life cycle
of the scenarios, including their deployment, elimination, powering
on, powering off, and listing information. The scenarios themselves
are described by a specification that allows users to declare various
aspects, such as the machines to be deployed, the networks used to
connect them, and the configurations to be applied to the machines,
among others.

## Installation Instructions
The following are the requirements to run Tectonic:

- Linux or Mac OS
- Python 3.11
- Ansible 2.15
- Terraform 1.6
- Packer 1.9
- Python modules (see [pyproject.toml](pyproject.toml))
- [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) 
- GitLab credentials (optional for Terraform state storage)
- Optionally AWS credentials

Please see the [detailed instructions](docs/installation.md) for more
information.

### Terraform state syncronization
Terraform states are stored locally by default. It is possible to
store them in a gitlab repo (see `gitlab_backend_url` option in the
[ini file configuration](docs/ini_config.md)). It is necessary to have
Maintainer privileges on this repo and a GitLab access token. There
are two types of access token: personal or project-based. If the
latter is used, it must be associated with the project where the
states are stored.

### Python environment setup

You can install this module using the following command:

```bash
python3 -m pip install poetry
poetry install
```


## Tectonic Configuration File
Tectonic behaviour can be configured using an ini file with a
`config` section. You can find an example configuration file with the
default values [here](./tectonic.ini). Please see the [ini
file documentation](docs/ini_config.md) for details on the available
options.


## Lab Configuration
The lab configuration is divided in two: a **scenario specification**
that holds a static description of the lab that can be shared and
reused, and information specific to a particular **lab edition** that
defines things such as number of instances to deploy, public SSH keys
for the teachers, etc.

The scenario specification consists of the following resources:

* A scenario description file in YAML syntax (required).
* Ansible playbooks for *base image* installation and *after-clone*
  configurations, and optional files in the `ansible` directory.
* Elastic and kibana policies and resources, in the `elastic`
  directory, if using elastic for evaluation.
* SSH public keys for admin access to the machines in the `ssh`
  directory.

The lab edition file 

Please check the [description documentation](docs/description.md) for
more details. The [examples](examples/) directory contains some
example scenarios.

## Running Tectonic

To deploy a scenario run:
```
tectonic -c <ini_conf_file> <lab_edition_file> deploy
```

To destroy a scenario use the `destroy` command. 

See `tectonic --help` for a full list of options, and `tectonic
<command> -h` for help on individual commands.

## Authors

Tectonic was created by [Grupo de Seguridad
Informática](https://www.fing.edu.uy/inco/grupos/gsi) of [Universidad
de la República Uruguay](https://udelar.edu.uy/).

Please contact us at <tectonic@fing.edu.uy>.

## License

Tectonic is licensed under the GNU General Public License v3.0 or
later. See LICENSE to see the full text.







            

Raw data

            {
    "_id": null,
    "home_page": "https://cyberrange.fing.edu.uy/",
    "name": "tectonic-cyberrange",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "cyberrange, tectonic, ansible, terraform, aws, cloud, security, automation",
    "author": "GSI-Fing-Udelar",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/e0/82/65b5ac5f882ff2bf93c62a852064f5561e05fc0c64a7f636c79c3a061867/tectonic_cyberrange-0.1.0.tar.gz",
    "platform": null,
    "description": "# Tectonic - An Academic Cyber Range\n[![Regression Tests](https://github.com/GSI-Fing-Udelar/tectonic/actions/workflows/test.yml/badge.svg)](https://github.com/GSI-Fing-Udelar/tectonic/actions/workflows/test.yml)\n\n## Overview\nTectonic is a cyber range designed to provide realistic cybersecurity\nscenarios for education and training through the deployment of\nnetworks, systems and applications that can be used to train users on\ncybersecurity topics. Key functionalities include customizable network\nconfigurations, real-time monitoring and automated attack simulations.\n\nIt incorporates existing tools from the infrastructure as code (IaC)\napproach, which allows for the specification of all the components of\na cybersecurity scenario in a declarative manner. This specification\nis made in a high-level language that can be interpreted and allows\nfor the automatic generation of scenarios on the laboratory underlying\nplatform. Declarative descriptions of the scenarios make them easily\nversioned, maintained, and shared, facilitating collaboration with\nother institutions and laboratories of this type.\n\nThe following figure illustrates various components of the cyber range\nsolution, the technologies used in the implementation, and the\ndifferent use cases carried out by student users and instructors. The\ncomponents are organized in five layers, each fulfilling a particular\nfunction in the platform's operation.\n\n<p align=\"center\">\n    <img src=\"docs/architecture.png\" width=\"500\">\n</p>\n\nThe underlying infrastructure constitutes the real-world\ninfrastructure on which the systems and networks that form the basis\nof a particular scenario are deployed. Currently deployments on the\nAWS cloud or on-premises using Libvirt are supported, with more\nplanned.\n\nTo achieve the deployment of the infrastructure in an automated\nmanner, \\textit{Infrastructrue as Code} (IaC) tools are used, such as\nPacker, Terraform and Ansible. These tools manage the resources to be\ndeployed and the configurations to be applied to them. Ansible\nplaybooks, in particular, are extensively used for configuration.\n\nA Python component orchestrates these tools and manages the life cycle\nof the scenarios, including their deployment, elimination, powering\non, powering off, and listing information. The scenarios themselves\nare described by a specification that allows users to declare various\naspects, such as the machines to be deployed, the networks used to\nconnect them, and the configurations to be applied to the machines,\namong others.\n\n## Installation Instructions\nThe following are the requirements to run Tectonic:\n\n- Linux or Mac OS\n- Python 3.11\n- Ansible 2.15\n- Terraform 1.6\n- Packer 1.9\n- Python modules (see [pyproject.toml](pyproject.toml))\n- [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) \n- GitLab credentials (optional for Terraform state storage)\n- Optionally AWS credentials\n\nPlease see the [detailed instructions](docs/installation.md) for more\ninformation.\n\n### Terraform state syncronization\nTerraform states are stored locally by default. It is possible to\nstore them in a gitlab repo (see `gitlab_backend_url` option in the\n[ini file configuration](docs/ini_config.md)). It is necessary to have\nMaintainer privileges on this repo and a GitLab access token. There\nare two types of access token: personal or project-based. If the\nlatter is used, it must be associated with the project where the\nstates are stored.\n\n### Python environment setup\n\nYou can install this module using the following command:\n\n```bash\npython3 -m pip install poetry\npoetry install\n```\n\n\n## Tectonic Configuration File\nTectonic behaviour can be configured using an ini file with a\n`config` section. You can find an example configuration file with the\ndefault values [here](./tectonic.ini). Please see the [ini\nfile documentation](docs/ini_config.md) for details on the available\noptions.\n\n\n## Lab Configuration\nThe lab configuration is divided in two: a **scenario specification**\nthat holds a static description of the lab that can be shared and\nreused, and information specific to a particular **lab edition** that\ndefines things such as number of instances to deploy, public SSH keys\nfor the teachers, etc.\n\nThe scenario specification consists of the following resources:\n\n* A scenario description file in YAML syntax (required).\n* Ansible playbooks for *base image* installation and *after-clone*\n  configurations, and optional files in the `ansible` directory.\n* Elastic and kibana policies and resources, in the `elastic`\n  directory, if using elastic for evaluation.\n* SSH public keys for admin access to the machines in the `ssh`\n  directory.\n\nThe lab edition file \n\nPlease check the [description documentation](docs/description.md) for\nmore details. The [examples](examples/) directory contains some\nexample scenarios.\n\n## Running Tectonic\n\nTo deploy a scenario run:\n```\ntectonic -c <ini_conf_file> <lab_edition_file> deploy\n```\n\nTo destroy a scenario use the `destroy` command. \n\nSee `tectonic --help` for a full list of options, and `tectonic\n<command> -h` for help on individual commands.\n\n## Authors\n\nTectonic was created by [Grupo de Seguridad\nInform\u00e1tica](https://www.fing.edu.uy/inco/grupos/gsi) of [Universidad\nde la Rep\u00fablica Uruguay](https://udelar.edu.uy/).\n\nPlease contact us at <tectonic@fing.edu.uy>.\n\n## License\n\nTectonic is licensed under the GNU General Public License v3.0 or\nlater. See LICENSE to see the full text.\n\n\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "GPL-3.0-or-later",
    "summary": "A Python package for the Tectonic project.",
    "version": "0.1.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/GSI-Fing-Udelar/tectonic/issues",
        "Documentation": "https://readthedocs.org",
        "Homepage": "https://cyberrange.fing.edu.uy/",
        "Repository": "https://github.com/GSI-Fing-Udelar/tectonic.git"
    },
    "split_keywords": [
        "cyberrange",
        " tectonic",
        " ansible",
        " terraform",
        " aws",
        " cloud",
        " security",
        " automation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9484a978a06592fcbe49876036b7f68e739ee5af06dd7a62d68ebf0a953a3629",
                "md5": "96d686d6fa61ae85286e96c02bbf7f88",
                "sha256": "a09ae7c4f36fa90a8e0ecd3b15c27c5c204fb7d107a0650be42dce830b79e383"
            },
            "downloads": -1,
            "filename": "tectonic_cyberrange-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "96d686d6fa61ae85286e96c02bbf7f88",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 141884,
            "upload_time": "2024-10-14T19:45:57",
            "upload_time_iso_8601": "2024-10-14T19:45:57.599703Z",
            "url": "https://files.pythonhosted.org/packages/94/84/a978a06592fcbe49876036b7f68e739ee5af06dd7a62d68ebf0a953a3629/tectonic_cyberrange-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e08265b5ac5f882ff2bf93c62a852064f5561e05fc0c64a7f636c79c3a061867",
                "md5": "51080663595851d2295b2192ad77f10b",
                "sha256": "89b0dc15191002018941396f7b4bc018b7aa0f4d159201528f69fb1ae103a6dc"
            },
            "downloads": -1,
            "filename": "tectonic_cyberrange-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "51080663595851d2295b2192ad77f10b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 93051,
            "upload_time": "2024-10-14T19:45:59",
            "upload_time_iso_8601": "2024-10-14T19:45:59.440353Z",
            "url": "https://files.pythonhosted.org/packages/e0/82/65b5ac5f882ff2bf93c62a852064f5561e05fc0c64a7f636c79c3a061867/tectonic_cyberrange-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-14 19:45:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "GSI-Fing-Udelar",
    "github_project": "tectonic",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "tectonic-cyberrange"
}
        
Elapsed time: 0.35471s