You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Post-install SHA-256 file integrity verification with auto-restore.
4
+
5
+
## Gifted Install Tech ID
6
+
7
+
This system operates under the **Gifted Install Tech ID** designation — not the Max Rupplin MEARVK LLC Installer Tech ID. It verifies software integrity against trusted GitHub commits and restores corrupted files automatically.
8
+
9
+
## How It Works
10
+
11
+
1.**Cron runs every 2 days** (`0 6 */2 * *`) via `cron/integrity-check.sh`
12
+
2.**Self-integrity first** — verifies its own scripts haven't been tampered with
13
+
3.**Full scan** — SHA-256 + MD5 for all git-tracked files
14
+
4.**Compare** — checks digests against stored database (same commit = must match)
15
+
5.**On corruption** — fetches original from trusted repo, restores, backs up corrupted file
16
+
6.**On software update** — preserves previous digests in `integrity/history/`
17
+
7.**Non-blocking** — program continues running; concerns logged to `integrity/concerns/`
18
+
19
+
## Files
20
+
21
+
| File | Purpose |
22
+
|------|---------|
23
+
|`post-install-integrity-check.sh`| Main integrity script |
24
+
|`integrity-schema.sql`| MySQL schema (`nwe_integrity` database) |
25
+
|`digest.db`| Current file digests (auto-generated) |
26
+
|`self.sha256`| SHA-256 of integrity scripts themselves |
-- Security principles: immutable audit log, no deletes, timestamped
4
+
--
5
+
-- Security: read-only digest table locked by honor_oath table.
6
+
-- Originals preserved on update. Self-integrity stored in DB.
5
7
6
8
CREATEDATABASEIF NOT EXISTS nwe_integrity
7
9
CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
8
10
9
11
USE nwe_integrity;
10
12
11
-
-- File digest records (append-only)
13
+
-- Honor oath — locks the integrity tables. Must be intact for digests to be trusted.
14
+
-- Swears honor to process and country.
15
+
CREATETABLEIF NOT EXISTS honor_oath (
16
+
id INTPRIMARY KEY DEFAULT 1,
17
+
oath TEXTNOT NULL DEFAULT 'I swear honor to process and country. This integrity system serves truth, transparency, and the preservation of trusted software.',
0 commit comments