forked from mtusi2026/mtusi2026lab7
fix: address container-hardening re-verify findings
Recheck processes with a privilege sign in hardening-check and fail only when the same process (PID and start time) keeps the sign in every scan, so the transient runc process of any docker exec no longer gives a false FAIL; run the root-write probe after the process probes. Name the second Loki retention error form, fix the exit-code wording in the threat model and record the live Loki retention probe in the evidence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1400,3 +1400,14 @@ design, «Уточнения verify» (номера те же), evidence — `ev
|
||||
6. **Журнал в `hardening-check`**: `read-only file system`, `operation not permitted`, `eacces` с `StartedAt`
|
||||
контейнера; `permission denied` не входит (отказы, которые вызывают сами проверки прав).
|
||||
7. **Tempo, код 137 при `docker stop`** — `KNOWN_ISSUES.md`, вне change.
|
||||
|
||||
Правки повторного verify (2026-11-27, рабочее дерево поверх `273d7ce`, автономно; design, «Уточнения verify»,
|
||||
п. 8–10; evidence — раздел 15):
|
||||
|
||||
8. **Перепроверка процессов в `hardening-check`**: процесс с признаком (UID 0, capabilities, `NoNewPrivs` ≠ 1,
|
||||
`Seccomp` ≠ 2) — до трёх повторных сканов через 0,3 с; FAIL — только тот же PID с тем же временем старта во
|
||||
всех сканах (а не «любой процесс с признаком в каждом скане»: частые `docker exec` давали бы ложный FAIL).
|
||||
Имя процесса не учитывается. Проба записи в корень — после проб процессов.
|
||||
9. **`THREAT_MODEL.md`** — «команда драйвера — код 1 (make — ненулевой)»; снимки evidence не трогаются.
|
||||
10. **Вторая форма ошибки Loki** (`failed to create marker writer … read-only file system`) — в комментарии
|
||||
compose и `docker.md`; живая проба — раздел 14 evidence.
|
||||
|
||||
Reference in New Issue
Block a user