I know for a fact that Mexico tried to send oil to Germany during WWII.
They claimed in both WWI and WWII that they were neutral, but they gave German and Japan agents free rein.
And the "Zimmerman Note" intercept in WWI was one of the reasons the US got involved.