The keyword to look for is CFC (controlled foreign corporation). The details depend on the country.