Easy as pie, and fun if not particularly profitable (thanks stolen goods nerf!). The above poster has it correct as I understand it, grab something illicit if you’re feeling especially naughty, get a nice cool-running ship (the DBX is a perfect small cargo smuggler for me), hit the mail-slot smooth and fast and if you get a scan warning pop a heatsink or go silent running, get yourself down on the pad and do some shady dealings at the local black market.
If you’re hitting random systems you might want to check the controlling faction’s government type to make sure the black market is open, but for bonus points you can do it in systems where you want to negatively affect system security. I found a haul of commodities marked stolen at a wreck at a signal source, you only need to trade one unit at each market for it to count so you can spread your minor felonies around.
As ever, if I’m a total goomba and wrong about any of this feel free to correct me!