An important class of drug used to treat cancer patients could be used to treat brain aneurysms, according to new research.