Exact same thing happened to me a few years back. Yes, it was moisture. My sunroof drain on the driver side plugged up and flooded the seat well. Somehow it screwed up the BCM/ECU. For me, it was a near disaster, nothing could stop the engine. I had it in my driveway and it overheated and blew a water hose, steam/coolant spewing all over the place. Luckily the ECU must have seen the temperature and shut the engine down before any engine damage.
I fixed the sunroof leak, drained and dried the seat well and fixed the blown hose (sure enough Nissan used a plastic coupler that split). Everything works fine now, except the seat and mirror adjustments no longer work. I did a lot of work debugging, tracing signals and think its the BCM that's faulty now. I've got a junk yard BCM and key and will try to replace it someday, but concerned that I'll have to get my other key fobs reprogrammed. The tech package on the EX35 is cool to use, but a real pain to debug. I can't afford a 2 way diagnostic box...
Anyhow, I've put in a kill switch under the hood from the fuel pump fuse just in case this happens again. Suggest you might consider that too