The present invention pertains to a compound represented by general formula (I) (wherein, all symbols represent the same meanings as the signs set forth in the description), or a salt, a solvate or an N-oxide thereof, or a prodrug of those. Since the compound has Brk inhibitory activity, the compound is useful as a medical agent component for the prevention and/or treatment of Brk-related diseases such as cancer, for example.