-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (29 loc) · 969 Bytes
/
Copy pathMakefile
File metadata and controls
43 lines (29 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
LAB = lab-environment
.PHONY: up down ps simulate simulate-lateral simulate-process ids-log compliance test lint scan
up:
cd $(LAB) && docker compose up -d
down:
cd $(LAB) && docker compose down
ps:
cd $(LAB) && docker compose ps
simulate:
docker exec ot_attacker python3 /attacker/simulate_attack.py
simulate-lateral:
docker exec ot_attacker python3 /attacker/simulate_lateral_movement.py
simulate-process:
docker exec ot_attacker python3 /attacker/simulate_process_violation.py
ids-log:
docker exec ot_gateway sh -c "cat /detection/logs/*.out"
compliance:
python3 governance/testing/run_security_tests.py --reset
test:
python3 -m pytest tests -q
lint:
ruff check detection automation governance tests plc lab-environment
bandit -q -r detection automation governance -x governance/testing
scan:
pip-audit -r requirements-dev.txt
policy:
conftest test -p tests/policy lab-environment/docker-compose.yml
precommit:
pre-commit run --all-files