Storing sensitive data in keychain is a best practice in iOS. But using a jailbroken device an attacker can dump all the keychain data. (keychain-dumper)
Can anyone help me understand how to protect the data in a keychain, in case of a jailbroken device.
It's not possible. If the device is jailbroken all data can be easily accessed.