Growing up with technology, Millennials have become well-versed in its potential dangers. Now that many members of that generation have become business owners, they're wisely readying for security breaches and other issues that could affect their companies.

According to a survey of small-business owners published Thursday by insurance company Nationwide, Millennial owners are much more likely than their older counterparts to be prepared for a cyberattack. The survey found that 42 percent of Millennials had a response plan in place, compared with 12 percent for baby boomers and 17 percent for Generation X-ers.

Millennials are also the most likely of any generation to train their employees on cybersecurity measures (91 percent), and to understand cybersecurity insurance policies (79 percent).

Far more Millennial entrepreneurs reported being "terrified" their company would become a cyberattack target than their older peers: 18 percent, compared with just 2 percent of Gen X-ers and 1 percent of baby boomers. At the same time, Millennials had the highest percentage of respondents who said they were confident they could fix the problem and recover (78 percent).

The survey results revealed Millennial business owners' superior preparedness in other ways as well. Compared with older owners, they are far more likely to have a disaster recovery plan in place, and to offer employee benefits such as protections against injuries or illness.

Nationwide surveyed small-business owners representing 502 companies--42 percent of the respondents were Millennials, 34 percent Generation X-ers, and 24 percent baby boomers.