A federal judge has meted out a civil penalty to a Staten Island man accused of running a scam with a virtual currency.

The decision by U.S. District Judge Jack Weinstein of the Eastern District of New York gave the U.S. Commodity Futures Trading Commission one of its first trial wins in its aggressive approach to crack down on virtual currency fraud.

Weinstein found that, through a company called CabbageTech Corp., Patrick McDonnell ran a “bold and vicious” fraud by holding himself out as an investment adviser in virtual currencies, slapping him with a civil penalty of more than $871,000.