How are you? How’s it going?
Not bad = not too bad = not too shabby = not so bad
All of the above actually have positive meanings e.g. ok or good
Focus is on “not” rather than “bad”.
Very common British expressions so important not to get confused: