'Bad faith' (and it's corollary, 'good faith') and the closely associated concept of 'malice' are used in a number of unrelated legal contexts. Generally though 'bad faith' is a heightened standard of liability (more than negligence), or particularly egregious behaviour or intent. 'Malice' is used in various contexts, including in defamation law to void the defence of 'fair comment'.