Especulación sobre cómo se modificó EFI:
Simplemente teniendo Ring 0 (modo kernel) se pueden colocar variables EFI en NVRAM mediante los servicios de tiempo de ejecución EFI. Si una de esas variables se escanea como un FFV válido, eso otorga ejecución a nivel de Ring -1, desde allí modificar el contenido SPI del chip flash para re‑escribir el Intel ME / Intel Gigabit Ethernet es posible. Al flashear una versión antigua del Intel ME (o mejor del Intel AMT) se puede aprovechar CVEs conocidos en el Intel ME que otorgan Ring -3. Desde aquí se puede inyectar cualquier SMBios que se desee y mantener Ring -2 en cada arranque. Esto permite a un actor malicioso ejecutar su propia pila durante cualquier carga o reinstalación del SO. Usando ramdisks AMT, controladores EFI y modificando las tablas ACPI pueden entonces vivir en Ring 0 cooperativamente con cualquier SO instalado.
Arrancando en una Shell Decente
Después de sortear varios problemas finalmente llegué a una shell EFI v2.2 decente. Las primeras cinco entradas en la tabla de manejadores eran lo que se conoce como “FFV” o entradas de volumen de firmware flash. Esto implica que la mayor parte de esto está ocurriendo de una de dos maneras: el chip flash se ha actualizado de alguna forma a una versión de EFI que no debería contener, o algo está persistiendo en disco y realizando una restauración de una forma que no es posible resetear simplemente desconectando el cable de alimentación del dispositivo. Claramente está ejecutando vPro y la pila AMT, y ha creado una entrada de ramdisk (se muestra en la tabla) además de cargar una serie de controladores y Dxe que, por decir lo menos, son inesperados. Desde una vista de Linux en ejecución se observaron las siguientes variables EFI, que no coinciden en nada con lo extraído de la shell: https://gist.githubusercontent.com/rickmark/21059379ab65c11bfcb2f3b339bdbea1/raw/7a0d2a60f38cdc1bf7887df1e7e461474dced25c/refi_var_list.txt
-
PlatformLangCodes = en-US;x-UQI
-
ItkModifiedSetup = 0
-
MeInfoSetup
-
SIO_DEV_STATUS_VAR
-
VV_SIO_LD0
-
DriverHlthEnable
-
TpmServFlatgs
-
OptaneState
-
FPDT_Volatile
-
NBPlatformData
-
E770BB69-BCB4-4D09-9E97-23FF9456FEAC:SystemAccess = 0
-
BootDebugPolicyApplied
-
CurrentPolicy
-
CurrentActivePolicy
-
1C697A091199_IAIDPXE
-
Ip6Config:16697A091199
-
IPv4Config2:1C697A091199
-
SetupCpuFetures
-
StandardGUID 8BE4DF61-93CA-11D2-AA0D-00E098032B9C
-
ACA9F304-21E1-4852-9875-7FF488AD67A5
-
PCI_COMMON
-
7B59104A-C00D-4158-87FF-F03D6396A915
-
SecureBootSetup
-
EC87D643-EBA4-4BB5-A1E5-3F3E36B20DA9
-
SdioDevConfiguration
-
64192DCA-D034-49D2-A6DE-65A829EB4C74
-
`IccAdvancedSetupDataVar
-
5432122D-D034-29D2-A6DE-65A829EB4C74
-
MeSetupStorage
-
90D93E09-4E91-4B3D-8C77-C82FF10E3C81
-
CpuSmm
-
05A798EA-39EE-40FC-92C5-622582FA634B
Solicitar al dispositivo la lista de dispositivos muestra
| Seg:Bus:Dev:Func | Ven:Dev | Descripción |
| 00:00:00:00 | 8086:3ED0 | Dispositivo puente - puente Host/PCI |
| 00:00:02:00 | 8086:3EA5 | Controlador de pantalla - VGA/8514 |
| 00:00:08:00 | 8086:1911 | Otro periférico del sistema (¿Modelo de mezcla gaussiana?) |
| 00:00:12:00 | 8086:9DF9 | Otros controladores DAQ y SP |
| 00:00:14:00 | 8086:9DED | Controlador USB |
| 00:00:14:02 | 8086:9DED | Controlador de memoria RAM (Interfaz 30) |
| 00:00:16:00 | 8086:9DE0 | Controlador de comunicaciones simple |
| 00:00:17:00 | 8086:9DD3 | Almacenamiento masivo SATA (interfaz 1) |
| 00:00:1D:00 | 8086:9DB0 | Dispositivo puente PCI/PCI |
| 00:00:1F:00 | 8086:9D84 | Dispositivo puente PCI/ISA |
| 00:00:1F:04 | 8086:9DA3 | Controlador SMBus |
| 00:00:1F:05 | 8086:9DA4 | Controladores de bus serie |
| 00:00:1F:06 | 8086:15BE | Controlador de red |
| 00:01:00:00 | 144D:A808 | Controlador de almacenamiento masivo - subsistema de memoria NV |
Lo siguiente omite algunas entradas ya que no hay una forma fácil de copiar y pegar esto, y los UDID son difíciles…
- Imagen cargada DxeCore
- 5CB5C776-
- Descomprimir
- FirmwareVolume2 -B9A42172CE53
- FirmwareVolume2 -EC40C23C5916
- FirmwareVolume2 -DC1671C10F36
- FirmwareVolume2 -E48809A7ACE3
- FirmwareVolume2 -2A4FF6CA6FE5
- EE4E5898-
- LoadedImage StatusCodeDxe
- 36232936-
- SmartCardReader RscHandler
- LoadedImage PcdDxe
- GetPcdInfo GetPcdInfoProtocol Pcd Pcd
- LoadedImage CpuIo2Dxe
- CpuIo2
- LoadedImage FlashDriver
- 755B6596-
- LoadedImage NvramDxe
- VariableWriteArch VariableArch
- MonotonicCounterArch
- LoadedImage CrbDxe
- LoadedImage FastBootRuntime
- LoadedImage DxeBoardConfigInit
- LoadedImage WdtDxe
- LoadedImage CmosDxe
- 9851740C-
- LoadedImage RomLayoutDxe
- HiiPackageList LoadedImage Bds
- BdsArch
- LoadedImage DataHubDxe
- AE80D021-
- LoadedImage DevicePathDxe
- DevicePathFromText DevicePathToText DevicePathUtilities
- DebugSupport EBCInterpreter LoadedImage EbcDxe
- LoadedImage HiiDatabase
- HIIImage ConfigKeywordHandler HIIConfigRouting HIIDatabase HIIString HIIFont
- LoadedImage SecurityStubDxe
- SecurityArch Security2Arch
- LoadedImage TimestampDxe
- Timestamp
- LoadedImage CpuDxe
- LoadedImage CpuIoDxe
- B0732526-
- LoadedImage AmiCpuFeaturesDxe
- LoadedImage AmiPciPlatform
- PciPlatform
- DebugPort LoadedImage GopDebugDxe
- LoadedImage WdtAppDxe
- LoadedImage PlatformInfoDxe
- LoadedImage PolicyInitDxe
- LoadedImage AmiSyncSetupData
- LoadedImage CpuInitDxe
- E223CF65-
- LoadedImage SmmAccess
- SmmAccess2
- LoadedImage LegacyInterrupt
- 31CE593d-
- LoadedImage PchSmbusDxe
- SmbusHc
- LoadedImage FspWrapperNotifyDxe
- LoadedImage Aint31
- LoadedImage Acoustic
- 10E9D800-
- LoadedImage S3SaveStateDxe
- S3SaveState
- LoadedImage SioDxeInit
- 9D36F7EF-
- LoadedImage IdeBusBoard
- LoadedImage PciDxeInit
- EC63428D-
- LoadedImage RdspPlus
- ComponentName2 DriverBinding LoadedImage Uhcd
- 2AD8E2D2-
- ComponentName2 DriverBinding
- ComponentName2 DriverBinding
- LoadedImage DpcDxe
- 480F8AE9-
- LoadedImage AmiBoardInfo2
- 4FC0733F-
- LoadedImage FanDxe
- LoadedImage HddSecurity
- CE6F86BB-
- LoadedImage EsrtDxe
- A340C064-
- LoadedImage OpalSecurity
- 59AF16B0-
- LoadedImage RngDxe
- Rng
- LoadedImage AmiRedFishApi
- B5E7C7AF-
- LoadedImage AmiDeviceGuardApi
- DAEEAFC8-
- LoadedImage TpmSmbiosDxe
- LoadedImage TpmNvmeSupport
- LoadedImage TcgStorageSecurity
- 734AA01D-
- LoadedImage UpdateDriverProtocol
- LoadedImage CpuDxe
- CpuArch
- MpService
- LoadedImage DxeSignBiosAuthenticate
- 24400798-
- LoadedImage EventLog
- DAED23EC-
- LoadedImage IntelVBios2
- HIIFormBrowser2
- 49374A18-
- HIIFormBrowser2
- 1F73B18D-
- 348C4D62-
- BEBF428C-
- LoadedImage FsDxe
- LoadedImage DnsrDxe
- ComponentName2 DriverBinding LoadedImage NTFS
- LoadedImage CapsuleRuntimeDxe
- CapsuleArch
- LoadedImage RuntimeDxe
- RuntimeArch
- MetronomeArch LoadedImage SbRun
- RealTimeClockArch
- SmmControl2 LoadedImage SmmControl
- LoadedImage MePlatformReset
- ResetArch
- LoadedImage CryptoDXE
- ComponentName2 DriverBinding LoadedImage NTFS
- DriverBinding LoadedImage MouseDriver
- LoadedImage StdDefaultsUpdate
- LoadedImage Achi
- 83: CompnentName2 DriverBinding
- LoadedImage HttpUtilitiesDxe
- HttpUtilities
- LoadedImage Nvme
- ComponentName2 DriverBinding
- LoadedImage SecureBootDXE
- LoadedImage TcgPlatformSetupPolicy
- LoadedImage ITK50
- LoadedImage CISDWdtDxe
- LoadedImage OCDxe
- LoadedImage OemGop
- LoadedImage NbDxe
- LoadedImage AmiTxtDxe
- LoadedImage HstiIhvDxe
- LoadedImage TxtDxe
- LoadedImage PciHostBridgeDxe
- PciHostBridgeResourceAllocation
- PCIRootBridgeIO DevicePath(PciRoot(0x0))
- LoadedImage AmiUpdateCspResources
- 27CFAC87-
- LoadedImage PchSpiRuntime
- 00C7D289-
- LoadedImage SiInitDxe
- IncompatiblePciDeviceSupport
- LoadedImage HpetTimerDxe
- TimerArch
- HiiPackageList LoadedImage AmiHsti
- AdapterInfo(AdapterInfo)
- LoadedImage ACPI
- AcpiSdt AcpiTable
- 01FA319E-
- LoadedImage AcpiS3SaveDxe
- HiiPackageList LoadedImage PciOutOfResourcesSetupPage
- LoadedImage UsbRtDxe
- HiiPackageList LoadedImage HddSmart
- 9401BD4F-
- HiiPackageList LoadedImage PauseKey
- LoadedImage SmbiosBoard
- HiiPackageList LoadedImage Tpm20PlatformDxe
- LoadedImage CpuS3DataDxe
- LoadedImage PlatformConfigDxe
- C298B206-
- 23F2D944-
- HiiPackageList ICBDTSEPopupMenu
- HiiPackageList LoadedImage HkUpdate
- E2E6CF23-
- HiiPackageList LoadedImage PlatformIdPage
- HIIConfigAccess
- LoadedImage OemBoardDxe
- BA8D58AB-
- LoadedImage PiSmmIpl
- LoadedImage PiSmmCore
- SmmCommunication SmmBase2
- LoadedImage Tcg2Dxe
- LoadedImage StatusCodeDxe
- LoadedImage FlashDriverSmm
- ECB867AB-
- LoadedImage CpuIo2Smm
- LoadedImage SmmLockBox
- BD445d79-
- LoadedImage PchSmbusSmm
- LoadedImage SraSmmStub
- LoadedImage AhciSmm
- LoadedImage CryptoCMM
- 91ABC830-
- LoadedImage SmmS3SaveState
- LoadedImage RuntimeSmm
- 395C33FE-
- LoadedImage PiSmmCpuDxeSmm
- SmmConfig
- LoadedImage NvramSmm
- CD3D0A05-
- LoadedImage PchSpiSmm
- LoadedImage SmmPcieSataController
- LoadedImage SbDxe
- WatchdogTimerArch
- 17706D27-
- PciHotPlugInit
- 377E6D6B-
- LoadedImage CnvUefiVariables
- C77AE557-
- LoadedImage Dptf
- LoadedImage HstiResultDxe
- LoadedImage TbtDxe
- 4D6A54D1-
- LoadedImage PlatoformVTdSampleDxe
- 3D17E448-
- LoadedImage PlatformSetup
- D5E1268B- D4D2F201-
- LoadedImage PowerMgmtDxe
- D71DB106-
- LoadedImage BdatAccessHandler
- LoadedImage PchInitDxe
- LoadedImage SraDxe
- 7AE12E27-
- LoadedImage HeciInit
- EC7BC880-
- 1498D127-
- LoadedImage BootScriptExecutorDxe
- LoadedImage HardwareSignatureEntry
- 43169678-
- ComponentName DriverBinding LoadedImage RtkSdCardDxe
- LoadedImage Smbios
- LoadedImage OEMActivation
- LoadedImage OemUsbPort
- LoadedImage OemEventDxe
- LoadedImage SaInitDxe
- LegacyRegion2
- 9E67AECF-
- 603DF7CA-
- LoadedImage AcpiPlatform
- C77AE556-
- LoadedImage AcpiDebugDxe
- LoadedImage RamDiskDxe
- HIIConfigAccess DevicePath -BB1A4F94081E
- HIIConfigAccess DevicePath -2B769AAA30C5
- F7: 28A03FF4- RamDisk
- LoadedImage ItkSmmVarsDxe
- LoadedImage ItkSmmVarsDxe
- LoadedImage PchSmiDispatcher
- LoadedImage CpuSpSMI
- LoadedImage NbSmi
- LoadedImage PowerButton
- LoadedImage SbRunSmm
- LoadedImage SleepSmi
- FF: LoadedImage PeriodicSmiControl
- LoadedImage TcoSmi
- LoadedImage AcpiModeEnable
- LoadedImage PepBccdSmm
- LoadedImage TbtSmm
- LoadedImage OverClockSmiHandler
- LoadedImage PowerMgmtSmm
- LoadedImage SaLateInitSmm
- 0D66A1CF- LoadedImage PchInitSmm
- LoadedImage UsbRtSmm
- LoadedImage CmosSmm
- LoadedImage SmmHddSecurity
- LoadedImage NvmeSmm
- LoadedImage SdioSmm
- LoadedImage TpmClearOnRollbackSmm
- LoadedImage SmmTcgStorageSec
- LoadedImage CrbSmi
- LoadedImage PiSmmCommunicationSmm
- LoadedImage RtcWakeup
- LoadedImage ItkSmmVars
- LoadedImage OemBoardSmi
- LoadedImage SmmPlatoform
- ImageDevicePath -AB74D2C1A600 LoadedImage EnglishDxe
- UnicodeCollation2 UnicodeCollation
- LoadedImage SmbiosUpdateData
- LoadedImage AmiMemoryInfoConfig
- LoadedImage MeSmbiosDxe
- ComponentName2 ComponentName DriverBinding ImageDevicePath -CD92CFB7D362 LoadedImage SataController
- LoadedImage PlatofrmInitDxe
- LoadedImage VtioDxe
- LoadedImage DxeOverClock
- LoadedImage MeFwDowngrade
- 3EA824D1-
- LoadedImage ConSplitter
- ComponentName2 DriverBinding
- ComponentName2 DriverBinding
- AbsolutePointer SimplePointer SimpleTextInEx SimpleTextIn SimpleTextOut
- LoadedImage GraphicsConsole
- ComponentName2 DriverBinding
- ComponentName2 ComponentName DriverBinding LoadedImage DiskIoDxe
- ComponentName2 ComponentName DriverBinding LoadedImage PartitionDxe
- LoadedImage RstOneClickEnable
- LoadedImage RstuefiDriverSupport
- 5B10CDC8-
- SupportedEfiSpecVersion(0x0002001E) ComponentName2 ComponentnName DriverBinding LoadedImage IntegratedTouch
- LoadedImage GenericSio
- 7576CC89- ComponentName2 DriverBinding
- LoadedImage IdeBusSrc
- 132: ComponentName2 DriverBinding
- LoadedImage PciBus
- ComponentName2 DriverBinding
- LoadedImage Ps2Main
- ComponentName2 DriverBindding
- ComponentName2 ComponentName DriverBinding LoadedImage SnpDxe
- ComponentName2 ComponentName DriverBinding LoadedImage MnpDxe
- ComponentName2 ComponentName DriverBinding LoadedImage ArpDxe
- ComponentName2 ComponentName DriverBinding LoadedImage IpSecDxe
- IpSec2 IpSecConfig
- ComponentName2 ComponentName DriverBinding
- ComponentName2 ComponentName DriverBinding LoadedImage TcpDxe
- ComponentName2 ComponentName DriverBinding
- 13F:
- ComponentName2 ComponentName DriverBinding LoadedImage UefiPxeBcDxe
- ComponentName2 ComponentName DriverBinding
- ComponentName2 ComponentName DriverBinding LoadedImage DnsDxe
- ComponentName2 ComponentName DriverBinding
- LoadedImage TlsDxe
- TlsServiceBinding
- ComponentName2 ComponentName DriverBinding LoadedImage Dhcp4Dxe
- ComponentName2 ComponentName DriverBinding LoadedImage Ip4Dxe
- ComponentName2 ComponentName DriverBinding LoadedImage Mtftp4Dxe
- ComponentName2 ComponentName DriverBinding LoadedImage Udp4Dxe
- ComponentName2 ComponentName DriverBinding LoadedImage Ip6Dxe
- ComponentName2 ComponentName DriverBinding LoadedImage Udp6Dxe
- ComponentName2 ComponentName DriverBinding LoadedImage Mtftp6Dxe
- LoadedImage AtaPassThru
- C6734411-
- LoadedImage AudioPlayback
- ComponentName2 ComponentName DriverBinding LoadedImage Fat
- AuthenticationInfo iSCSIInitiatorName ComponentName2 ComponentName DriverBinding LoadedImage IScsiDxe
- ComponentName2 ComponentName DriverBinding
- HIIConfigAccess DevicePath(-CCAD2E0F4CF9)
- ComponentName2 ComponentName DriverBinding LoadedImage ScsiBus
- ComponentName2 ComponentName DriverBinding LoadedImage ScsiDisk
- LoadedImage PcieSataController
- ComponentName2 DriverBinding
- ComponentName2 DriverBinding
- ComponentName2 DriverBinding LoadedImage SdioDriver
- LoadedImage AcpiPlatformFeatures
- LoadedImage CustomSMBIOS
- HiiPackageList LoadedImage AMITSE
- HiiPopup
- 160: LoadedImage SmmGenericSio
- LoadedImage UpdateMemoryRecord
- EDIDOverride
- PciEnumerationComplete
- 30249499- C7D4703B-
- 651B7EBD- DBCB2FCD- ComponentName2 DriverBinding ImageDevicePath((0x3,0x75F5A018,0x75F6BA98)) LoadedImage MemoryMapped
- 3279A703-
- AD77AE29- 1FD29BE6- AtaPassThru
- 1FD29BE6- AD77AE29
- FA20568B-
- 6DE538E4-
- A33319B5-
- A33319B5-
- DevicePath LoadFile
- ImageDevicePath LoadedImage SmbiosMisc
- ImageDevicePath LoadedImage FileExplorerLite
- 088C3203-
- HiiPackageList ImageDevicePath LoadedImage DpsdSetup
- HIIConfigAccess DevicePtah
- BootManagerPolicy
- A68D1FDE-
- 4622F942-
- HIIConfigAccess DevicePath
- 3A3300AB-
- F8DD3A9D-
- F31FCBB5-
- 348C4D62-
- 18F: 348C4D62-
- 348C4D62-
- AdapterInfo(AdapterInfo)
- 0F500BE6-
- 8D9B3387-
- Shell ShellParameters SimpleTextOut ImageDevicePath LoadedImage()
- PciEnumerationComplete F42A009D-
- USBHostController2 USBHostController 3279A703- DevicePath(PciRoot(0x0)/Pci(0x14,0x0)) PCIIO
- 0ADFB62D- SimpleTextInEx SimpleTextIn 1FEDE521- DevicePath(…)/Pci(0x14,0x0)/USB(0x0,0x0)) USBIO
- 198: SimplePointer 1FEDE521- DevicePath(…)/Pci(0x14,0x0)/USB(0x0,0x1)) USBIO
- DevicePath(…)/Pci(0x014,0x0)/USB(0x0,0x2)) USBIO
- 30249499- C7D3703B- LoadFile2 BusSpecificDriverOverride DevicePath(PciRoot(0x0)/Pci(0x2,0x0)) PCIIO
- E1E4A857- SimpleTextOut EDIDActive(EDIDActive GraphicsOutput(GraphicsOutput) EDIDDiscovered(EDIDDiscovered) 39487C79- DevicePath(…0x2,0x0)/AcpiAdr(0x80013310))
- DevicePath(PciRoot(0x0)/Pci(0x0,0x0)) PCIIO
- DevicePath(PciRoot(0x0)/Pci(0x8,0x0)) PCIIO
- DevicePath(PciRoot(0x0)/Pci(0x12,0x0)) PCIIO
- DevicePath(PciRoot(0x0)/Pci(0x14,0x0)) PCIIO
- DevicePath(PciRoot(0x0)/Pci(0x16,0x0)) PCIIO
- FDB29BE6- AD77AE29- AtaPassThru B2FA4764- IdeControllerInit DevicePath(PciRoot(0x0)/Pci(0x17,0x0)) PCIIO
- DevicePath(PciRoot(0x0)/Pci(0x1D,0x0)) PCIIO
- 4B235191- 1FD29BE6- AD77AE29- F4F63529- NvmExpressPassThru AFA4CF3F-DevicePath(…)/Pci(0x1D,0x0)/Pci(0x0,0x0)) PCIIO
- DevicePath(PciRoot(0x0)/Pci(0x1F,0x0)) PCIIO
- DevicePath(PciRoot(0x0)/Pci(0x1F,0x4)) PCIIO
- DevicePath(PciRoot(0x0)/Pci(0x1F,0x5)) PCIIO
- DevicePath(PciRoot(0x0)/Pci(0x1F,0x6)) PCIIO
- DiskIO F4F63529- BlockIO DickInfo DevicePath(…17,0x0)/Sata(0x2,0xFFFF,0x0))
- 1A1: DickIO E6D6D379- PartitionInfo BlockIO DevicePath(…49E6173E12,0x800,0x7470658F))
- DiskIO BlockIO DiskInfo DevicePath(…0x1,8D-73-B0-91-55-38-26-00)) StorageSecurityCommand
- SimpleFileSystem DiskIO EFISystemPartition PartitionInfo BlockIO DevicePath(…-FFC0339F3A57,0x800,0xEE000))
- DiskIO 0FC63DAF- PartitionInfo BlockIO DevicePath(…78C7D5369,0xEE800,0x12A0800))
- 1A7: DiskIO E6D6D379- PartitionInfo BlockIo DevicePath(… 18EF8D,0x138F000,0x38FF6800))
Preguntas abiertas:
- ¿Cómo se pasa el puntero de EFI Runtime Services desde los cargadores de arranque EFI al kernel? ¿O se vuelve a escanear ACPI para detectarlo?
- ¿Por qué el kernel tiene una opción para aplicar una superposición ACPI SSDT desde una variable EFI?
- ¿Se detectará una variable EFI que contenga un EFI FFV (flash firmware volume) o FFS (flash file system) como parte de la carga EFI? ¿Permitiría esto la inyección temprana de DXE adicionales en el entorno de ejecución antes de salir de EFI al cargador de arranque?
- ¿Por qué alguien consideró buena idea tener NVMe sobre TCP y otros protocolos de tejido? Parece estar en uso ya que el dispositivo también apareció con un wwn o “World Wide Name” al estilo iSCSI.
- ¿Qué se requiere para habilitar AMT en un dispositivo que no estaba destinado a ello?
- ¿Por qué un módulo del kernel para firewire y cdrom se inyectaría en initrd?
- ¿Por qué habría un script en initrd que crea unidades systemd que luego se eliminan?
- ¿Por qué un controlador de red se levantaría 3 veces con el nombre de identidad WMI cuando no se está usando virtualización del adaptador?
- ¿Por qué las familias de direcciones de red se activan tan temprano en el proceso si no es para acceder al sistema de archivos raíz a través de un tejido de red sintético?
- ¿Por qué seccomp estaría creando ejecutables eBPF LSM sin ningún otro registro de auditoría?
- ¿Por qué alguien sobrescribiría las tablas ACPI para la compatibilidad WiFi de Intel si no es para usar bandas de frecuencia de otros países en EE. UU. y evadir detección?
- ¿Por qué un TTY braile basado en bluetooth intentaría iniciarse si no es un canal lateral para acceder a la máquina?
- ¿Por qué los objetos del kernel en una instalación limpia de Arch (*.zko) estarían firmados con una clave efímera si no han sido manipulados?
- ¿Por qué existe un controlador de “bluetooth meshing”?
- ¿Por qué el EC puede pausar y reanudar interrupciones – durante la operación normal del Intel ME no interfiere con el sistema operativo de esta manera?
- ¿Por qué habría dos objetos tpm si no es uno raíz y otro sintético? ¿O tal vez un dTPM mientras el sistema también tiene habilitado un fTPM (ambos aparecen en la ruta ACPI LNXSYSTM:00-LNXSYBUS:00-MSFT0101:00 que hace referencia a la tabla ACPI de Microsoft)?
- ¿Puede dleyna usarse como una forma de escritorio remoto?
- ¿Qué es slsh?
- ¿Por qué el dispositivo SATA aparece como ata3-host2-target2 – y por qué ata1/2 es “DUMMY”?
- ¿Por qué el dispositivo de red aparece en la dirección PCI 0000:00-0000:00:1f.6 y no .0? ¿Son estas funciones virtuales IO‑SRV?
- ¿Por qué los TTY son platform-serial8250, que es un dispositivo respaldado por hardware, en lugar de un pseudo terminal?
- ¿Por qué se montó /var/lib/machines y luego desapareció?
- ¿Por qué hay un binfmt_misc que se activa con el sistema?
- ¿Por qué existen montajes del sistema de archivos de trazas del kernel?
- Qué es systemd-ask-password-console.path y systemd-ask-password-wall.path
- ¿Por qué existiría un servicio de apagado mkinitcpio-generate-shutdown-ramfs.service si esto solo debería ocurrir al actualizar el kernel mediante pacman? Se ejecuta con TMPDIR=/run y /usr/bin/mkinitcpio -A sd-shutdown -k none -c /dev/null -d /run/initramfs
- Qué es shaddow.service y por qué tiene que ejecutarse para cambiar o verificar passwd y shaddow, ambos claramente editados ya que contienen un par de guiones “-” al final. Parece ejecutar
/usr/binpwck -r || r=1; /usr/bin/grpck -r - ¿Qué hace systemd-boot-system-token.service?
- ¿Qué hacen los getty-pre.target?
- ¿Por qué existe remote-fs.target, también incluye verity y cryptsetup?
- De alguna forma “RealtimeKit” es una colisión de nombres en los ecosistemas Linux y Apple? ¿Qué pasó con remoteproc para el Intel EC?
- ¿Por qué se usa udisks2 como ayudante fuse para la mayoría de cosas?
- ¿Por qué mi initrd tiene un montaje /usr (initrd-usr-fs.target) – claramente se está cargando a través de otro bus porque no tengo /usr pero sí tengo /usr/local en mi fstab?
- Qué es request-key.conf y por qué tiene demasiados valores definidos para debug y dns_resolver, también parece hacer una consideración especial de debug:loop:*
- Qué es “Rygel Remote UI Server”
- La configuración Secure TTY hace referencia a hvc0 – probablemente un canal basado en hipervisor
- también permite tty[1-6], ttyS0 y console
Canales útiles que no son de red
Usar sistemas de accesibilidad como brltty por Bluetooth puede dar acceso a la terminal sin necesidad de una red fiable (WiFi o Ethernet).
Inyección temprana usando Firewire Serial
Manipular las tablas ACPI
La gente a menudo olvida que los sistemas operativos pueden recopilar datos de ACPI, incluido el código AML. Esto suele ejecutarse durante eventos de energía como suspensión y reanudación y se ha abusado en el pasado mediante ataques de “dark wake”.
Ocultarse del root usando el LSM BPF de Linux
Uno de los avances más recientes en el árbol de Linux es reutilizar eBPF (sí, notable porque se ha usado durante años para firewalls de red) como agente de políticas. eBPF se eligió porque es un lenguaje Turing‑completo que ya compilamos y ejecutamos en el kernel mediante ip_tables/x_tables, etc. Cuando la auditoría está habilitada, la carga y descarga de estos programas BPF formará parte de la salida de depuración del kernel para que puedan observarse. De hecho puedes “montar” esto para ver las entradas BPF ejecutando mount bpffs /mnt/bpffs/ -t bpf, lo que proporcionará maps.debug y progs.debug. Otra herramienta útil para obtener más información es bpftool prog show
La para‑virtualización Xen sigue siendo una realidad
Incluso sin usar VT de Intel, sigue siendo muy posible que un atacante haga kexec a un kernel basado en Xen, dándose una forma de controlar el anillo‑0 no virtual mientras permite que un invitado Linux arbitrario se ejecute pensando que es el kernel del sistema. Incluso sin kexec se puede lograr prácticamente lo mismo usando kgdb después de transferir una imagen a la memoria.
Manipulación durante la compilación
- sync_regs()
- mce_setup()
- do_machine_check()
- rcu_nmi_enter()