When a celebrity starts to post crazy things on Twitter there are a small number of possibilities.

Either they are just seeking some attention, tweeting things without thinking, or they have been hacked.

The problem is that when it comes to publicity-seeking celebrities, often it's hard to decide what is most likely. Many times it's tricky to tell the difference, and although a celebrity might later claim that they have been hacked - it's hard to know if that's just being used as an excuse for some ill-advised tweeting.

And sometimes it's just a lame April Fool's joke.

But in the case of Kendall Jenner, I think we can be fairly confident that her account was hijacked by an unauthorised party.

Kendall Jenner, one of the stars of the "Keeping up with the Kardashians" reality TV show, appears to have been the latest celebrity to fall foul of Twitter hackers after her account began posting some out-of-character messages to her 10.2 million followers.

Here are some of the out-of-character tweets, one of which refers to her father's much-rumoured gender reassignment:

Tweets from Kendall Jenner's account

Just got down slobbing on @justinbieber's nob #SloppyToppy #KKK.

My dad got the sex change, he’s officially a woman now, we can finally have lesbian sex #sweg

Some of the messages referred to two other Twitter accounts, which one presumes belonged to the hackers. Both of those accounts have since been suspended by Twitter's security team.

All in all, it's pretty juvenile stuff.

Kendall JennerI guess we should be grateful that whoever hacked Kendall Jenner's account didn't use the opportunity to spam out links to webpages pushing financial scams, miracle diets or - worst of all - malware.

After all, with over 10 million followers there are probably many people who could have followed a malicious link if it was worded convincingly, and ended up infecting their computer or having their passwords phished.

The mistake Kendall Jenner has probably made is not being careful enough with her account security.

We don't know precisely how the hackers commandeered control of her account, but it's possible that she was using an easy-to-guess password, had been phished, or made the classic mistake of reusing passwords in multiple places on the net.

The best way to harden your Twitter account is to not just use a unique, hard-to-guess, hard-to-crack password, but to also enable an additional level of authentication.

For instance, you can configure Twitter to send an SMS message with a random number to your mobile phone whenever you try to login. All you need to do is enter that number alongside your password, in order to gain access to your account.

Alternatively, you can set up login verifications, and from then on a login confirmation request will be sent to the official Twitter app on your iPhone or Android.

Twitter Login Verifications

It's a sensible idea, because the chances that a hacker who has grabbed your password also has access to your phone is pretty low.

Having such security in place would, I suspect, have prevented Kendall Jenner's account from telling the world that her father had changed his sex or that she had had an intimate entanglement with bad boy Justin Bieber.

It does appear that the Kardashian Klan suffers its fair share of security issues with its online accounts, with matriarch Kris Jenner claiming to have had her nude videos stolen from the iCloud, Kim and Khloe Kardashian having their Twitter accounts hijacked in an apparent prank by Nicole Richie, and naked photos of Kim Kardashian leaking online.