It should get here today, but curiosity got to me. I have been thinking about what
@PoManNox said about resisters. BTW, thanks for sending me down a deep rabbit hole.
When you need to know if a switch is open and if a wire is broken, you use a resistor. Depending on how the switch pulls the line, the only way it would max out (high/low) is open wire otherwise the voltage swing will be somewhere in between.
Using the information provided, which is for 2024, looks like there are two signals one for theft/remote start safety (BN/GN). The other is to disable auto stop/start (YE). So pin 1 gets switched from 732-ohnms to around 2.3k-ohms when the hood is open and the switch is toggled. So the only one it needs to interrupt is the wire on pin 1. Just need a diode for protection and a 2.3K-ohm (732+1580) resistor to ground. Now the question is, does 2025 operate the same way?
Hood Ajar Operation – Body Control Module
The BCM applies B+ to the hood ajar signal circuit and monitors the voltage to determine the position of the hood. The hood ajar switch contains a multiplexed resistor. This resistor will vary the voltage seen by the BCM by pulling down the applied voltage based on the position of the switch. The body control module uses to hood ajar input as a means to determine if unauthorized access has been gained to the underhood area during a theft attempt. The body control module will also disable remote vehicle starting (if equipped) when the hood is ajar.
Hood Ajar Operation – Engine Control Module (with KL9)
The engine control module applies B+ to the hood ajar signal circuit and monitors the voltage to determine the position of the hood. The hood ajar switch contains a multiplexed resistor. This resistor will vary the voltage seen by the engine control module by pulling down the applied voltage based on the position of the switch. The engine control module monitors the hood ajar input as a disabling condition for a 12 V stop/start event.
I saw it talking about KL9, I thought it had something to do with Auto Stop/Start. In searching I found a description of the sequence. It can restart a stopped engine in .3 seconds. It engages the starter gear into the flywheel as the engine is spinning down. The article describing it is for a 2028, but I bet it is the same on newer cars.
https://gm-techlink.com/wp-content/uploads/2017/12/GM_TechLink_22_Mid-November_2017.pdf
Here is a screen capture of the relevant information.