Skip to content

Commit 733abca

Browse files
authored
Merge pull request #345 from ppplbngth/attack-profiler
MITRE ATT&CK profiler
2 parents d9fd28c + 852b39d commit 733abca

File tree

163 files changed

+541552
-351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+541552
-351
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: python-csle-attack-profiler-build
2+
run-name: ${{ github.actor }} python-csle-attack-profiler-build
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
# pull_request:
8+
# branches:
9+
# - "master"
10+
11+
jobs:
12+
test:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest]
17+
python-version: ['3.9']
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install python build dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install tox tox-gh-actions
29+
- name: Tox tests csle-attack-profiler
30+
run: cd simulation-system/libs/csle-attack-profiler; tox
31+
- name: Upload coverage reports to Codecov
32+
uses: codecov/codecov-action@v3
33+
env:
34+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
35+
files: simulation-system/libs/csle-attack-profiler/coverage.yml

README.md

+18-17
Original file line numberDiff line numberDiff line change
@@ -101,23 +101,24 @@ features. We currently support each release for a window of 6 months.
101101

102102
## 📈 Build Status
103103

104-
| Workflow | Status |
105-
|------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
106-
| [csle-agents](https://github.com/Limmen/csle/actions/workflows/python-csle-agents-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-agents-build.yml/badge.svg) |
107-
| [csle-attacker](https://github.com/Limmen/csle/actions/workflows/python-csle-attacker-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-attacker-build.yml/badge.svg) |
108-
| [csle-collector](https://github.com/Limmen/csle/actions/workflows/python-csle-collector-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-collector-build.yml/badge.svg) |
109-
| [csle-common](https://github.com/Limmen/csle/actions/workflows/python-csle-common-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-common-build.yml/badge.svg) |
110-
| [csle-defender](https://github.com/Limmen/csle/actions/workflows/python-csle-defender-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-defender-build.yml/badge.svg) |
111-
| [csle-ryu](https://github.com/Limmen/csle/actions/workflows/python-csle-ryu-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-ryu-build.yml/badge.svg) |
112-
| [csle-base](https://github.com/Limmen/csle/actions/workflows/python-csle-base-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-base-build.yml/badge.svg) |
113-
| [csle-system-identification](https://github.com/Limmen/csle/actions/workflows/python-csle-system-identification-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-system-identification-build.yml/badge.svg) |
114-
| [gym-csle-stopping-game-build](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-stopping-game-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-stopping-game-build.yml/badge.svg) |
115-
| [gym-csle-intrusion-response-game-build](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-intrusion-response-game-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-intrusion-response-game-build.yml/badge.svg) |
116-
| [python-linter](https://github.com/Limmen/csle/actions/workflows/python-linter.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-linter.yml/badge.svg) |
117-
| [csle-tolerance-build](https://github.com/Limmen/csle/actions/workflows/python-csle-tolerance-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-tolerance-build.yml/badge.svg) |
118-
| [gym-csle-apt-game-build](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-apt-game-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-apt-game-build.yml/badge.svg) |
119-
| [gym-csle-cyborg-build](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-cyborg-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-cyborg-build.yml/badge.svg) |
120-
| [management-system](https://github.com/Limmen/csle/actions/workflows/js-management-system-build) | ![status](https://github.com/Limmen/csle/actions/workflows/js-management-system-build.yml/badge.svg) |
104+
| Workflow | Status |
105+
|----------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|
106+
| [csle-agents](https://github.com/Limmen/csle/actions/workflows/python-csle-agents-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-agents-build.yml/badge.svg) |
107+
| [csle-attacker](https://github.com/Limmen/csle/actions/workflows/python-csle-attacker-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-attacker-build.yml/badge.svg) |
108+
| [csle-collector](https://github.com/Limmen/csle/actions/workflows/python-csle-collector-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-collector-build.yml/badge.svg) |
109+
| [csle-common](https://github.com/Limmen/csle/actions/workflows/python-csle-common-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-common-build.yml/badge.svg) |
110+
| [csle-defender](https://github.com/Limmen/csle/actions/workflows/python-csle-defender-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-defender-build.yml/badge.svg) |
111+
| [csle-ryu](https://github.com/Limmen/csle/actions/workflows/python-csle-ryu-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-ryu-build.yml/badge.svg) |
112+
| [csle-base](https://github.com/Limmen/csle/actions/workflows/python-csle-base-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-base-build.yml/badge.svg) |
113+
| [csle-system-identification](https://github.com/Limmen/csle/actions/workflows/python-csle-system-identification-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-system-identification-build.yml/badge.svg) |
114+
| [gym-csle-stopping-game-build](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-stopping-game-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-stopping-game-build.yml/badge.svg) |
115+
| [gym-csle-intrusion-response-game-build](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-intrusion-response-game-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-intrusion-response-game-build.yml/badge.svg) |
116+
| [python-linter](https://github.com/Limmen/csle/actions/workflows/python-linter.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-linter.yml/badge.svg) |
117+
| [csle-tolerance-build](https://github.com/Limmen/csle/actions/workflows/python-csle-tolerance-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-tolerance-build.yml/badge.svg) |
118+
| [gym-csle-apt-game-build](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-apt-game-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-apt-game-build.yml/badge.svg) |
119+
| [gym-csle-cyborg-build](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-cyborg-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-gym-csle-cyborg-build.yml/badge.svg) |
120+
| [csle-attack-profiler-build](https://github.com/Limmen/csle/actions/workflows/python-csle-attack-profiler-build.yml) | ![status](https://github.com/Limmen/csle/actions/workflows/python-csle-attack-profiler-build.yml/badge.svg) |
121+
| [management-system](https://github.com/Limmen/csle/actions/workflows/js-management-system-build) | ![status](https://github.com/Limmen/csle/actions/workflows/js-management-system-build.yml/badge.svg) |
121122

122123
## Supported Platforms
123124

docs/_docs/code_analysis.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To run the Python linter on the CSLE code base, execute the command:
1717
```
1818

1919
<p class="captionFig">
20-
Listing 137: Command to run the Python linter.
20+
Listing 139: Command to run the Python linter.
2121
</p>
2222

2323
Alternatively, the following commands can be executed for the same effect as the command above:
@@ -30,7 +30,7 @@ flake8 examples/
3030
```
3131

3232
<p class="captionFig">
33-
Listing 138: Commands to run the Python linter.
33+
Listing 140: Commands to run the Python linter.
3434
</p>
3535

3636
To run the Python static type checker, execute the command:
@@ -40,7 +40,7 @@ simulation-system/libs/type_checker.sh
4040
```
4141

4242
<p class="captionFig">
43-
Listing 139: Command to run the Python static type checker.
43+
Listing 141: Command to run the Python static type checker.
4444
</p>
4545

4646
To run the JavaScript linter, run the commands:
@@ -51,5 +51,5 @@ cd management-system/csle-mgmt-webapp/; npm run lint:fix
5151
```
5252

5353
<p class="captionFig">
54-
Listing 140: Commands to run the JavaScript linter.
54+
Listing 142: Commands to run the JavaScript linter.
5555
</p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: f334d883d6af5d3118233314b62b5928
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
csle\_attack\_profiler package
2+
==============================
3+
4+
Submodules
5+
----------
6+
7+
csle\_attack\_profiler.attack\_profiler module
8+
----------------------------------------------
9+
10+
.. automodule:: csle_attack_profiler.attack_profiler
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
csle\_attack\_profiler.hmm\_profiling module
16+
--------------------------------------------
17+
18+
.. automodule:: csle_attack_profiler.hmm_profiling
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
Module contents
24+
---------------
25+
26+
.. automodule:: csle_attack_profiler
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
csle\_attack_profiler package
2+
======================
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
csle_attack_profiler.dao
10+
11+
Module contents
12+
---------------
13+
14+
.. automodule:: csle_attack_profiler
15+
:members:
16+
:undoc-members:
17+
:show-inheritance:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
csle_attack_profiler
2+
====================
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
csle_attack_profiler

0 commit comments

Comments
 (0)