They were only "caught" using the .NES header which is a public standard that many NES emulators implement. There is no evidence that they used a pirated ROM.