did you recently install an app?
i had similar experience when i installed an app (forgot the name) that lets me change the login background window. Upon running this app for the first time, it asked to index or perform some kind of set up on my hdd. I decided against it and when I quit it mid indexing, I noticed the boxes like yours.
deleting the app via cleanmymac got rid of the problem and it hasn't appeared since.