Anticipate Pickpockets
As others have mentioned in the comments: sleeping on a long-haul night train makes you a target for pickpockets/thieves, especially if you don't have the extra safety of being inside a private/locked compartment. To be fair there is not much you can do to make yourself, and your stuff, completely 100% thieve-proof. More so if you are sleeping in an unlocked, unsupervised space. What you can do however is make sound assumptions on thieve behaviour and plan ahead. Your objective should be to make your stuff less appealing for thieves because it requires more effort on their part to take it.
Here and here are some general pickpocket-prenvention tips. Here is some advice on sleeping in couchettes on Italian trains. Below is a summary of what I think are the most relevant points for the purpose of sleeping in a train:
Keep your money/documents/phone/valuables on you, either in your pockets or in dedicated supports (for example money belts). Clothes and other less-valuable items can go in your rucksack/suitcase.
If you have a small backpack/laptop bag, strap/clip/tie it to some fixed support. This can be either your leg, the seat itself, the table between seats, etc. The point is that anchoring the bag to a fixed support makes it harder to be snatched away.
Similarly, you can also strap/clip/tie your rucksack/suitcase to, for example, the luggage rack. Once again this makes it harder to snatch.
Lock the zippers on all your bags with padlocks/zip-ties/key-ring/paper-clips. This will obviously make the bag harder to get into.
Make sure that the topmost item in your backpack/rucksack/suitcase is something that a thief would have no interest in taking. My personal favourite are dirty underwear and socks, kept in a plastic bag with its opening towards the opening of the backpack. This way its content is the fist thing a potential thief would see, when accessing the bag. I always laugh when picturing what their face would look like.
Final Remarks
This is especially true in case of long-haul train journeys such as the one you mention. Moreover, couchette compartments can be locked from the inside adding an extra level of safety for you and your belongings.