Under planned new laws, tech companies could be grilled by authorities over dodgy practices.