Hernandez joined the resistance movement when the Japanese invaded in the Philippines in 1941. He was an intelligence operative of the guerilla outfit of Marking and Anderson, whose operations covered Bulacan and the Sierra Madre mountains, throughout the Second World War.