A picture of a woman in lingerie, posing in a suggestive position was tweeted from Sports Minister Fikile Mbalula's account.
The minister then sent out another tweet to say his account had been hacked.
Legal expert Ben Wicks says that although it is not easy to hack into a Twitter profile, a person's account can be compromised through unsecured websites.
According to Wicks, only a forensic investigation could reveal whether Mbalula's account was truly breached.
Listen to the full conversation from The Midday Report with Stephen Grootes:
The security of your social media accounts can be compromised by clicking on certain sites while logged in or using your mobile device.— Ben Wicks, Associate at Herbert Smith Freehills
You can find that you are posting a lot of spam or other unwanted content without your knowledge.— Ben Wicks, Associate at Herbert Smith Freehills