···5050* [DrSchottky's X360 Reversing tutorials](https://www.razielconsole.com/forum/guide-e-tutorial-xbox-360/943-%5Bx360-reversing%5D-intro.html)
5151* [TEIR1plus2's Xbox-Reversing](https://github.com/TEIR1plus2/Xbox-Reversing)
5252* [ihatecompvir's x360-hv-notes](https://github.com/ihatecompvir/x360-hv-notes)
5353+* [Grimdoomer's Xbox 360 hypervisor article](https://icode4.coffee/?p=1047)
53545455I likely wouldn't know nearly as much as I do if not for all the great open source
5556projects detailing how parts of this system work, and all the people behind them.
+6
homebrew/README.md
···11+**Emma's Xbox 360 Research Notes - Homebrew**
22+33+# Table of Contents
44+55+* xeBuild
66+ * Patch Format
+34
homebrew/xebuild/patch_format.md
···11+**Emma's Xbox 360 Research Notes - Homebrew - xeBuild**
22+33+Updated 7th March 2025.
44+55+Stub page.
66+77+# Patch Format
88+99+| Offset | Type | Description |
1010+| ------ | -------- | ----------------------------------- |
1111+| `0x0` | uint32 | Address in boot section to patch |
1212+| `0x4` | uint32 | Number of 4-byte words to patch |
1313+| `0x8` | uint32[] | Array of words to insert at address |
1414+1515+Patch sets are delimited by `0xFFFFFFFF` to signify the end of the current
1616+section.
1717+1818+For SMC hacked images, patches are structured in this order:
1919+* 1BL patches
2020+* CB patches
2121+* CD patches
2222+* Hypervisor/kernel patches
2323+2424+For RGH images, patches are structured in this order:
2525+* CB_B patches
2626+* CD patches
2727+* Hypervisor/kernel patches
2828+2929+## Recommended reading
3030+3131+* `about_patches.S` included in xeBuild.
3232+3333+* DrSchottky's "X360 Reversing" guide about xeBuild's hacked images:
3434+https://www.razielconsole.com/forum/guide-e-tutorial-xbox-360/943-%5Bx360-reversing%5D-intro.html
+9-7
official-software/networking/system_link.md
···11**Emma's Xbox 360 Research Notes - Networking**
2233-Updated 24th October 2024.
33+Updated 7th March 2025.
4455Stub page.
66···125125with a source IP of 0.0.0.1 and a destination IP address of 255.255.255.255.
126126The destination MAC address is FF:FF:FF:FF:FF:FF.
127127128128-**Cross-Platform:** TODO
128128+**Cross-Platform:** (From GfWL) Broadcast messages are sent over IPv4 UDP
129129+port 3074, with a source IP of the local network adapter and a desination
130130+address off 255.255.255.255.
129131130132### General Structure
131133132132-| Offset | Type / Size | Description |
133133-| -------- | ----------- | ----------------------------------- |
134134-| `0x0` | uint32 | Header flags *(TODO: Check?)* |
135135-| `0x4` | variable | Encrypted packet data |
136136-| variable | Footer | Metadata about the packet |
134134+| Offset | Type / Size | Description |
135135+| -------- | ----------- | ----------------------------- |
136136+| `0x0` | uint32 | Header flags *(TODO: Check?)* |
137137+| `0x4` | variable | Encrypted packet data |
138138+| variable | Footer | Metadata about the packet |
137139138140Note that parts of the footer will be encrypted depending on the length of the
139141packet data.
+37-3
official-software/system/security_overview.md
···11**Emma's Xbox 360 Research Notes - System Software**
2233-Updated 12th September 2024.
33+Updated 7th March 2025.
4455"Stub" page, not in-depth, just trying to put some notes and thoughts here:
66···1212As of 2024, every console manufactured before 2011 is subject to trivial
1313piracy, and cheating online in many games is possible with savegame exploits,
1414patched game files on burned DVDs, or network exploits.
1515-The last method to run homebrew without soldering a modchip was patched in 2007.
1515+1616+As of 2025, there have been two demonstrated vulnerabilities allowing for
1717+software-only hypervisor mode code execution:
1818+- "King Kong" syscall handler exploit in 2007 (4532/4548), patched in 2007
1919+ - https://free60.org/Hacks/King_Kong_Hack/
2020+ - Patched in kernel version 4552.
2121+ - Hypervisor versions 4532/4548 blacklisted in the bootloader with 8498.
2222+- "Xbox360BadUpdate" exploit chain in 2025 (??-17559), **unpatched**
2323+ - https://github.com/Grimdoomer/Xbox360BadUpdate
2424+ - https://icode4.coffee/?p=1047 - "System Overview"
2525+ - https://icode4.coffee/?p=1081 - "The Bad Update Exploit"
16261727## Security Features
18282929+* Very small and simple boot chain
3030+ * Several stages, each one small and very easy to analyse.
3131+ * All are RSA signature checked by secure code burned into the CPU (1BL).
3232+ * Execution is done from within either SRAM or encrypted and hashed main
3333+ memory, preventing any outside attacks.
3434+ * Vulnerable hypervisor versions are blacklisted, even if an exploit is used
3535+ to attempt a downgrade.
3636+ * E-fuses prevent any and all attempts at downgrading the bootloader,
3737+ permanently.
1938* Small hypervisor, small attack surface
2039 * Hypervisor exposes only 120 syscalls to the kernel (as of 17559), each of
2140 them serve a specific purpose and are easy to audit and analyse. None are
···5372 * Random AES keys are chosen at startup by 2BL, with help from hardware RNG.
5473 The 2BL also checks to make sure there's sufficient randomness so the RNG
5574 can't be rigged or disabled in hardware.
7575+* (2014+) Hardware protection against glitching
7676+ * "Winchester" motherboards have POST output disabled by e-fuses, and the
7777+ reset line is latched to prevent RGH.
56785779## Security Pitfalls
5880···80102 meaning it can be replaced to modify the behaviour or be used to attack the
81103 CPU (see: SMC Hack, RGH3 - as well as all other RGH variants rebooting rather
82104 than RRoD on failed boots)
105105+* The hypervisor does not check userland page permissions before writing data
106106+ to a user-controlled pointer, allowing for userland exploits to overwrite the
107107+ (unencrypted view of) memory in any write-protected page. Related ...
108108+* ... the memory management unit only hashes the hypervisor's memory space,
109109+ allowing for userland exploits to corrupt kernel, XAM and game ciphertext in
110110+ ways that may result in a favourable plaintext when decrypted. (See:
111111+ Xbox360BadUpdate's "Stage 2" - as well as yet-to-be-disclosed kernel patching
112112+ by [ihatecompvir](https://wetdry.world/@ihatecompvir/113359460700460045))
8311384114## References
851158686-* Memory encryption/hashing:
116116+* Free60 wiki:
117117+ https://free60.org/
118118+* Memory encryption/hashing information:
87119 https://github.com/GoobyCorp/Xbox-360-Crypto/blob/master/MemCrypto.py
120120+* Ryan Miceli's "Hacking the Xbox 360 Hypervisor Part 1: System Overview":
121121+ https://icode4.coffee/?p=1047
8812289123I must've got some more of this info from other places, but I can't remember.