Porous object, texture or geometry?
Solved!

I followed this tutorial https://www.youtube.com/watch?v=1gM8yEMFMjg, where the author is using a sphere as a volume container, and then sets up a particle system emitting from the volume.  I haven't managed to run the physics simulation to avoid particle overlapping, but in my case should be good enough.