Pegasystems (PEGA) investors are having a great year. 

Shares of the tech hardware and services provider have skyrocketed 28% this year, dusting the 5% gain for the Nasdaq Composite . Pegasystems founder and CEO Alan Trefler tells TheStreet the market is rewarding the company for being in the right place, at the right now. For example, the company -- which Trefler founded in 1983 -- is a player in artificial intelligence that helps improve the workflow of businesses.

Trefler also discussed the need for tech companies to protect customer data and how cyber threats remain a real issue.