How safe is demat account

How secure is my investment in a demat account?,